Create a new item in the queue
POST/social-media-posting/category/queues/:queueId/create/item
Adds a new post item to a queue. Use sessionId for edit session or directToQueue for immediate addition.
Request
API Version
v3Category queue ID
- application/json
- Body
- Example (auto)
Bodyrequired
- A number: explicit order value calculated by FE as midpoint between adjacent items
- "top": place at cyclic top (first to be scheduled next)
- "bottom": place at cyclic bottom (last to be scheduled)
Location ID
Edit session ID
New post details
Order for the new item in the queue (cyclic-aware). Accepts:
For positions between items, FE calculates: Math.floor((prevItem.order + nextItem.order) / 2) Defaults to end if not provided. Note: This field is ignored when directToQueue is true - the order will be automatically calculated based on the queue's prioritizeNewContent setting.
Variations
Primary media URL (image) for the post. Falls back to modifiedPostPayload.primaryImage if not set.
When true, creates the queue item directly without requiring an edit session, even for active/paused queues. The order field is ignored and the item position is determined by the queue's prioritizeNewContent setting: if true, the item is added to the top of the queue; if false, it is added to the bottom.
{
"locationId": "609e126a1c4ae1001291e1b5",
"sessionId": "60af88475f1b2c001f5d5f4b",
"modifiedPostPayload": {
"summary": "New queued post content",
"media": []
},
"order": "top",
"variations": [
{
"content": "Try this variation",
"mentions": [],
"ogTags": {
"metaLink": "https://example.com"
}
}
],
"primaryImage": "http://example.com/media.png",
"directToQueue": false
}
Queue item created successfully.
- application/json
- Schema
- Example (auto)
Schema
Success or Failure
Status Code
Response payload
Trace ID for debugging
{
"success": true,
"statusCode": 201,
"results": {
"message": "Queue item created successfully",
"queueItem": {
"_id": "60af88475f1b2c001f5d5f4b",
"order": 1000,
"variations": [
{
"_id": "60af88475f1b2c001f5d5f4c",
"content": "Check out our latest blog post! #marketing #socialmedia",
"mentions": [
{
"platform": "instagram",
"username": "example_user",
"offset": 10,
"length": 12
}
],
"ogTags": {
"metaLink": "https://example.com",
"metaImage": "https://example.com/image.png",
"ogTitle": "Example Title"
}
}
],
"primaryImage": "https://example.com/images/post-image.png",
"postId": "60af88475f1b2c001f5d5f4d",
"post": {
"_id": "60af88475f1b2c001f5d5f4d",
"summary": "Scheduled queue post",
"media": [],
"type": "post"
},
"errors": [],
"scheduledDateTime": "2023-10-15T10:00:00.000Z",
"scheduledVariationIndex": 0,
"isSkipped": false,
"currentVariation": 0
}
},
"traceId": "TRACE-abc123-def456"
}