Create a post
Changed onCreates a draft post, or publishes/schedules it immediately when publish_now, scheduled_at or queue is set.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
Per-platform overrides keyed by platform name. For Pinterest, pinterest.board_id names the target board (list them with GET /socials/accounts/{id}/boards). Send ids (pinterest.board_id, pinterest.board_section_id, twitter.reply_to_tweet_id) as strings: they are too long for a JSON number, which JavaScript rounds, so a number above 9007199254740991 answers 400.
Public media URLs uploaded on publish
Previously uploaded media IDs
Publish immediately instead of saving a draft
Schedule the post in the next free posting time set with PUT /socials/queue. The response's scheduled_at is the time it got. Cannot be combined with publish_now or scheduled_at. Answers 422 with code social_queue_empty when no posting time is free.
Target account IDs (sacct_ prefix ids). Optional for a platform with one connected account; when a platform in platforms has several, name the ones to post from or the request answers 422 listing them.
Response
Post created
The connected accounts (sacct_...) it goes out on. Empty means the only connected account on each of its platforms; a platform with several needs its ids named.
Each account the post went out to and how it fared there; empty until it is sent. A post that went live on some accounts and failed on the rest has status partial, and error names the accounts that failed.
Only in the reply to creating or editing a draft, and only when there is something to fix: the problems it would hit going out, such as missing media or a platform with no connected account.
Changes
- warning
added the new
partialenum value to thestatusresponse property for the response status - info
added the required property
targetsto the response with the status
- warning
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
8 more changes in this revision
- warning