Social Posts
Create and manage social media posts across all connected platforms.
Create a post
Publish or schedule a post to one or more social accounts.
POST /social-posts
Request body
{
"accountIds": ["clp1234567890", "clp0987654321"],
"content": "Main post content for all platforms",
"platformContent": {
"twitter": "Short tweet version",
"linkedin": "Professional LinkedIn version with more detail"
},
"scheduledDate": "2025-12-25T10:00:00Z",
"autoSchedule": false,
"mediaUrl": "https://example.com/image.jpg",
"idempotencyKey": "unique-request-id-123"
}Request fields
| Field | Type | Required | Description |
|---|---|---|---|
accountIds | string[] | Yes | Social account IDs to post to |
content | string | Yes | Main post content |
platformContent | object | No | Platform-specific content overrides (see Media & Content) |
scheduledDate | string | No | ISO 8601 date. Defaults to now |
autoSchedule | boolean | No | Find optimal posting time automatically |
autoScheduleInterval | number | No | Custom interval in hours (1–168) for auto-scheduling |
mediaUrl | string | No | URL of media to attach (auto-downloaded and stored) |
mediaBase64 | string | No | Base64-encoded media file |
mediaFileName | string | No | Filename when using mediaBase64 |
idempotencyKey | string | No | Prevent duplicate posts on retries |
timezone | string | No | IANA timezone for scheduling (default: UTC) |
Response
{
"id": "clp2222222222",
"status": "SCHEDULED",
"scheduledDate": "2025-12-25T10:00:00Z",
"platforms": ["twitter", "linkedin"],
"mediaUrl": "https://cdn.crelio.app/uploaded-image.jpg",
"message": "Post scheduled for: 2025-12-25T10:00:00Z"
}Get a post
Retrieve the status and full details of a specific post.
GET /social-posts/{id}
Response
{
"id": "clp2222222222",
"content": "Main post content",
"scheduledDate": "2025-12-25T10:00:00Z",
"status": "SCHEDULED",
"platforms": ["twitter", "linkedin"],
"mediaUrl": "https://cdn.crelio.app/image.jpg",
"published": false,
"createdAt": "2025-12-20T08:00:00Z",
"updatedAt": "2025-12-20T08:00:00Z",
"accounts": [
{
"platform": "twitter",
"actualAccountId": "clp1234567890",
"username": "yourbrand",
"name": "Your Brand",
"profileImageUrl": "https://..."
}
],
"platformContent": {
"twitter": "Twitter-specific content",
"linkedin": "LinkedIn-specific content"
},
"platformPosts": []
}List posts
Get a paginated list of all posts for your brand.
GET /social-posts
Query parameters
| Parameter | Type | Description |
|---|---|---|
limit | number | Posts to return (default: 20, max: 100) |
offset | number | Posts to skip for pagination |
status | string | Filter: QUEUED, SCHEDULED, IN_PROGRESS, PUBLISHED, FAILED |
Response
{
"posts": [
{
"id": "clp2222222222",
"content": "Post content",
"scheduledDate": "2025-12-25T10:00:00Z",
"status": "SCHEDULED",
"platforms": ["twitter", "linkedin"],
"mediaUrl": "https://...",
"published": false,
"createdAt": "2025-12-20T08:00:00Z",
"updatedAt": "2025-12-20T08:00:00Z"
}
],
"pagination": {
"total": 50,
"limit": 20,
"offset": 0,
"hasMore": true
}
}Update a post
Update a scheduled post that hasn't been published yet.
PATCH /social-posts/{id}
Request body
{
"content": "Updated content",
"scheduledDate": "2025-12-26T10:00:00Z",
"platformContent": {
"twitter": "Updated Twitter content"
}
}All fields are optional — only include what you want to change.
Delete a post
Cancel and delete a scheduled post. Only works for unpublished posts.
DELETE /social-posts/{id}
Response
{
"message": "Post deleted successfully",
"id": "clp2222222222"
}Post status values
| Status | Description |
|---|---|
QUEUED | Queued for processing |
SCHEDULED | Scheduled for future publishing |
IN_PROGRESS | Currently being published |
PUBLISHED | Successfully published |
FAILED | Publishing failed |