List publishing logs
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.
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
Filter by log status
"success" | "failed" | "pending" | "skipped" | "all"Filter by platform
"tiktok" | "instagram" | "facebook" | "youtube" | "linkedin" | "twitter" | "threads" | "pinterest" | "reddit" | "bluesky" | "googlebusiness" | "telegram" | "snapchat" | "all"Filter by action type
"publish" | "retry" | "media_upload" | "rate_limit_pause" | "token_refresh" | "cancelled" | "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/posts/logs"{
"logs": [
{
"_id": "675f1c0a9e2b5af0012ab34cd",
"postId": {
"_id": "65f1c0a9e2b5af0012ab34cd",
"content": "Check out our new feature!",
"status": "published"
},
"userId": "64e1f0a9e2b5af0012ab34de",
"platform": "instagram",
"accountId": "64e1f0a9e2b5af0012ab34ef",
"accountUsername": "@acmecorp",
"action": "publish",
"status": "success",
"statusCode": 200,
"endpoint": "graph.facebook.com/me/media_publish",
"request": {
"contentPreview": "Check out our new feature!",
"mediaCount": 1,
"mediaTypes": [
"image"
],
"mediaUrls": [
"https://storage.getlate.dev/abc123.jpg"
]
},
"response": {
"platformPostId": "17895695668004550",
"platformPostUrl": "https://www.instagram.com/p/ABC123/"
},
"durationMs": 2340,
"attemptNumber": 1,
"createdAt": "2024-11-01T10:00:05Z"
}
],
"pagination": {
"total": 150,
"limit": 50,
"skip": 0,
"pages": 3,
"hasMore": true
}
}{
"error": "Unauthorized"
}List connection logs GET
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.
Get post logs GET
Retrieve all publishing logs for a specific post. Shows the complete history of publishing attempts for that post across all platforms.