Create Social Post
Social
Create Social Post
Publish or schedule a social post.
POST
Create Social Post
Publishes immediately or schedules a social post and returns a post ID. This endpoint writes a tracking record toDocumentation Index
Fetch the complete documentation index at: https://docs.mosaic.so/llms.txt
Use this file to discover all available pages before exploring further.
scheduled_social_posts_v2 for every request.
post_idis the provider post ID returned by Ayrshare.tracking_idis Mosaic’sscheduled_social_posts_v2.idvalue for the tracked record.
Request
Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
post | string | No | Post text (defaults to empty string). |
platforms | array | Yes | One or more target platforms (x, linkedin, instagram, facebook, tiktok, youtube). |
media_urls | array | No | Public media URLs to attach. Mosaic validates URL format; provider/platform validation happens downstream. |
schedule_date | string | No | ISO timestamp to schedule instead of posting immediately. |
workspace_id | string (uuid) | No | Workspace to associate with the tracked record. Defaults to the organization’s primary workspace. |
Link Behavior
- URLs in
posttext are forwarded as plain text. media_urlsaccepts any syntactically valid URL, but the media must be reachable by Ayrshare/platforms at publish time.- Expired, private, or blocked media links can cause platform-level posting failures.
Response
Response Notes
statusanderrorcome from Ayrshare’s response for this request.resultscontains provider per-platform outcomes when available.tracking_idandtracked_statuscome from Mosaicscheduled_social_posts_v2.- If posting fails at request time, Mosaic returns an API error payload (
{"detail":"..."}). - To check downstream platform outcomes later, call
GET /social/post/{post_id}. - To read the tracked Mosaic record directly, call
GET /social/post/track/{tracking_id}.