Back to docs

API reference

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

MethodPathScope
GET/v1/postsposts:read
POST/v1/postsposts:write
GET/v1/posts/calendarposts:read
GET/v1/posts/:idposts:read
PATCH/v1/posts/:idposts:write
DELETE/v1/posts/:idposts:delete
POST/v1/posts/:id/rescheduleposts:write
POST/v1/posts/:id/cancelposts:write
POST/v1/posts/:id/duplicateposts:write
POST/v1/posts/:id/delete-from-networksposts:delete
GET/v1/posts/:id/live-previewposts:read
POST/v1/posts/:id/approval/:actionapproval_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"
}

Join the beta waitlist

By signing up you agree to receive marketing email. See our Privacy Policy.