Posts
Schedule, publish, and manage social posts via the REST API.
Schedule, publish, and manage social content.
Plan requirement: API access requires Team or Agency. See pricing.
Base URL: https://api.styrar.com/v1
Routes
| Method | Path | Scope |
|---|---|---|
| GET | /v1/posts | posts:read |
| POST | /v1/posts | posts:write |
| GET | /v1/posts/calendar | posts:read |
| GET | /v1/posts/:id | posts:read |
| PATCH | /v1/posts/:id | posts:write |
| DELETE | /v1/posts/:id | posts:delete |
| POST | /v1/posts/:id/reschedule | posts:write |
| POST | /v1/posts/:id/cancel | posts:write |
| POST | /v1/posts/:id/duplicate | posts:write |
| POST | /v1/posts/:id/delete-from-networks | posts:delete |
| GET | /v1/posts/:id/live-preview | posts:read |
| POST | /v1/posts/:id/approval/:action | approval_tasks:* |
Pass companyId for company workspaces. Use mediaFileIds from the media library for attachments. List connected accounts with Social accounts before setting targets[].socialAccountId.
Create a scheduled post
RequestPOST
Authorization: Bearer sty_live_your_api_key
Content-Type: application/json
{
"companyId": "clxyz_company",
"content": "Summer launch. Book now.",
"status": "SCHEDULED",
"scheduledAt": "2026-08-01T14:00:00.000Z",
"mediaFileIds": ["clmf_media_abc123"],
"targets": [
{
"socialAccountId": "clsa_instagram_1"
}
]
}Response201 Created
{
"id": "clpost_abc",
"status": "SCHEDULED",
"scheduledAt": "2026-08-01T14:00:00.000Z"
}Related
- Endpoints - route catalog by resource
- Media - upload and library
- Authentication - scopes and API keys