queue
Get next available slot
Returns the next available queue slot for preview purposes. To create a queue post, use POST /v1/posts with queuedFromProfile instead of scheduledFor.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
profileIdstring
queueId?string
Specific queue ID (optional, defaults to profile's default queue)
Response Body
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/queue/next-slot?profileId=string"{
"profileId": "64f0a1b2c3d4e5f6a7b8c9d0",
"nextSlot": "2024-11-04T09:00:00-05:00",
"timezone": "America/New_York",
"queueId": "64f0a1b2c3d4e5f6a7b8c9d1",
"queueName": "Morning Posts"
}Empty
{
"error": "Unauthorized"
}Empty
Create schedule POST
Create an additional queue for a profile. The first queue created becomes the default. Subsequent queues are non-default unless explicitly set.
Update schedule PUT
Create a new queue or update an existing one. Without queueId, creates/updates the default queue. With queueId, updates a specific queue. With setAsDefault=true, makes this queue the default for the profile.