Batch Posts
Create multiple posts in a single request. Each post in the batch is processed independently — if one fails, the others still succeed.
Create batch
POST /social-posts/batch
Request body
{
"posts": [
{
"accountIds": ["clp1234567890"],
"content": "First post content",
"scheduledDate": "2025-12-25T10:00:00Z"
},
{
"accountIds": ["clp0987654321"],
"content": "Second post content",
"autoSchedule": true
},
{
"accountIds": ["clp1234567890", "clp0987654321"],
"content": "Cross-platform post",
"platformContent": {
"twitter": "Short version for X",
"linkedin": "Detailed version for LinkedIn"
},
"autoSchedule": true,
"autoScheduleInterval": 24
}
]
}Each item in posts accepts the same fields as Create a post.
Response
Returns 207 Multi-Status with individual results:
{
"message": "Batch processing complete: 3 succeeded, 0 failed",
"results": [
{
"index": 0,
"success": true,
"id": "clp3333333333",
"status": "SCHEDULED",
"scheduledDate": "2025-12-25T10:00:00Z",
"platforms": ["twitter"]
},
{
"index": 1,
"success": true,
"id": "clp4444444444",
"status": "SCHEDULED",
"scheduledDate": "2025-12-25T14:30:00Z",
"platforms": ["linkedin"]
},
{
"index": 2,
"success": true,
"id": "clp5555555555",
"status": "SCHEDULED",
"scheduledDate": "2025-12-26T14:30:00Z",
"platforms": ["twitter", "linkedin"]
}
],
"summary": {
"total": 3,
"succeeded": 3,
"failed": 0
}
}Partial failures
If some posts fail, you get a mix:
{
"results": [
{
"index": 0,
"success": true,
"id": "clp3333333333",
"status": "SCHEDULED"
},
{ "index": 1, "success": false, "error": "No valid account IDs provided" }
],
"summary": { "total": 2, "succeeded": 1, "failed": 1 }
}Rate limits
Batch requests count as a single request against the batch rate limit (20/minute), but each post within the batch is processed individually.
Best practices
- Keep batches under 50 posts for optimal performance
- Use
idempotencyKeyper post to safely retry failed batches - Check individual
results[].success— the overall request may succeed while individual posts fail