logs
Get post logs
Retrieve all publishing logs for a specific post. Shows the complete history of publishing attempts for that post across all platforms.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Path Parameters
postIdstring
The post ID
Query Parameters
limit?integer
Maximum number of logs to return (max 100)
Default
50Range
1 <= value <= 100Response Body
application/json
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/posts/string/logs"{
"logs": [
{
"_id": "675f1c0a9e2b5af0012ab34cd",
"postId": "65f1c0a9e2b5af0012ab34cd",
"userId": "64e1f0a9e2b5af0012ab34de",
"platform": "instagram",
"accountUsername": "@acmecorp",
"action": "publish",
"status": "success",
"statusCode": 200,
"durationMs": 2340,
"createdAt": "2024-11-01T10:00:05Z"
},
{
"_id": "675f1c0a9e2b5af0012ab34ce",
"postId": "65f1c0a9e2b5af0012ab34cd",
"userId": "64e1f0a9e2b5af0012ab34de",
"platform": "twitter",
"accountUsername": "@acme",
"action": "publish",
"status": "failed",
"statusCode": 429,
"response": {
"errorMessage": "Rate limit exceeded",
"errorCode": "RATE_LIMITED"
},
"durationMs": 150,
"attemptNumber": 1,
"createdAt": "2024-11-01T10:00:03Z"
}
],
"count": 2,
"postId": "65f1c0a9e2b5af0012ab34cd"
}{
"error": "Unauthorized"
}Empty
{
"error": "Not found"
}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.
Get FB persistent menu GET
Get the persistent menu configuration for a Facebook Messenger account.