List connection logs
Retrieve connection event logs showing account connection and disconnection history. Event types: connect_success, connect_failed, disconnect, reconnect_success, reconnect_failed. Logs are automatically deleted after 7 days.
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
Filter by platform
"tiktok" | "instagram" | "facebook" | "youtube" | "linkedin" | "twitter" | "threads" | "pinterest" | "reddit" | "bluesky" | "googlebusiness" | "telegram" | "snapchat" | "all"Filter by event type
"connect_success" | "connect_failed" | "disconnect" | "reconnect_success" | "reconnect_failed" | "all"Filter by status (shorthand for event types)
"success" | "failed" | "all"Number of days to look back (max 7)
71 <= value <= 7Maximum number of logs to return (max 100)
501 <= value <= 100Number of logs to skip (for pagination)
00 <= valueResponse Body
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/connections/logs"{
"logs": [
{
"_id": "675f1c0a9e2b5af0012ab34cd",
"userId": "64e1f0a9e2b5af0012ab34de",
"profileId": "64e1f0a9e2b5af0012ab34ef",
"accountId": "64e1f0a9e2b5af0012ab3500",
"platform": "instagram",
"eventType": "connect_success",
"connectionMethod": "oauth",
"success": {
"displayName": "Acme Corp",
"username": "acmecorp",
"profilePicture": "https://...",
"permissions": [
"instagram_basic",
"instagram_content_publish"
],
"tokenExpiresAt": "2024-12-01T10:00:00Z",
"accountType": "business"
},
"context": {
"hasCustomRedirectUrl": false
},
"createdAt": "2024-11-01T10:00:00Z"
},
{
"_id": "675f1c0a9e2b5af0012ab34ce",
"userId": "64e1f0a9e2b5af0012ab34de",
"profileId": "64e1f0a9e2b5af0012ab34ef",
"platform": "twitter",
"eventType": "connect_failed",
"connectionMethod": "oauth",
"error": {
"code": "oauth_denied",
"message": "OAuth error: access_denied"
},
"context": {
"hasCustomRedirectUrl": true
},
"createdAt": "2024-11-01T09:00:00Z"
}
],
"pagination": {
"total": 25,
"limit": 50,
"skip": 0,
"pages": 1,
"hasMore": false
}
}{
"error": "Unauthorized"
}Send test webhook POST
Send a test webhook to verify your endpoint is configured correctly. The test payload includes event: "webhook.test" to distinguish it from real events.
List publishing logs GET
Retrieve publishing logs for all posts with detailed information about each publishing attempt. Filter by status, platform, or action. Logs are automatically deleted after 7 days.