Socialync Drafts API
The Drafts API from Socialync — 3 operation(s) for drafts.
The Drafts API from Socialync — 3 operation(s) for drafts.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/socialync-io:socialync-io-drafts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Socialync Drafts API
version: 1.0.0
summary: Publish, schedule and read social posts from your own code.
description: 'The same publishing engine as the Socialync MCP server, over plain JSON. Your API key is the one from https://www.socialync.io/api-keys. Rate limit: 60 requests per minute per key (429 with Retry-After). List endpoints return 20 items by default and at most 100. Browsers cannot call this API (no CORS headers). Keep keys on servers and in CI secrets.'
servers:
- url: https://mcp.socialync.io/v1
security:
- bearerAuth: []
tags:
- name: Drafts
paths:
/drafts:
post:
operationId: createDraft
summary: Hold a post for approval
description: Same body as POST /v1/posts. Nothing is sent. Approve it with POST /v1/drafts/{id}/approve. A draft nobody approves expires after 24 hours.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostCreate'
parameters:
- name: Idempotency-Key
in: header
required: false
description: 'A unique string (1 to 255 characters: letters, digits, _ . : -). Repeating a request with the same key and the same body returns the first response instead of doing the work again, for 24 hours. The same key with a different body is 422 idempotency_key_reuse. A refused request (4xx) frees the key, so it can be corrected and retried with the same key. A request that ends in 500 or 504 may still have completed, so the key keeps returning that answer: check GET /v1/posts, then use a new key. If a request started and its result could not be recorded, the key answers 409 idempotency_outcome_unknown until it expires and the request is not run again with it.'
schema:
type: string
pattern: ^[A-Za-z0-9_.:-]{1,255}$
responses:
'201':
description: The draft.
content:
application/json:
schema:
$ref: '#/components/schemas/Draft'
'400':
description: The request is not valid. error.code is invalid_request, invalid_json or payload_too_large.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The plan or the API key does not allow this.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: The request is well formed but the post cannot be made as asked. error.message says why.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: A cap or rate limit was reached. Retry-After says how many seconds to wait.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Drafts
/drafts/{id}:
get:
operationId: getDraft
summary: A draft and its state
parameters:
- name: id
in: path
required: true
description: The draft id.
schema:
type: string
pattern: ^[A-Za-z0-9_-]{1,128}$
responses:
'200':
description: The draft.
content:
application/json:
schema:
$ref: '#/components/schemas/Draft'
'401':
description: Missing, malformed or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such resource on a profile this key can use.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: A cap or rate limit was reached. Retry-After says how many seconds to wait.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Drafts
/drafts/{id}/approve:
post:
operationId: approveDraft
summary: Publish or schedule a draft
description: 'Publishes an immediate draft now, or moves a scheduled draft into the queue. Send scheduledAt to give a scheduled draft whose time has passed a new time. If the account has the publish confirmation setting on, this answers 403 direct_publish_disabled: turn the setting off to publish through the API.'
parameters:
- name: id
in: path
required: true
description: The draft id.
schema:
type: string
pattern: ^[A-Za-z0-9_-]{1,128}$
- name: Idempotency-Key
in: header
required: false
description: 'A unique string (1 to 255 characters: letters, digits, _ . : -). Repeating a request with the same key and the same body returns the first response instead of doing the work again, for 24 hours. The same key with a different body is 422 idempotency_key_reuse. A refused request (4xx) frees the key, so it can be corrected and retried with the same key. A request that ends in 500 or 504 may still have completed, so the key keeps returning that answer: check GET /v1/posts, then use a new key. If a request started and its result could not be recorded, the key answers 409 idempotency_outcome_unknown until it expires and the request is not run again with it.'
schema:
type: string
pattern: ^[A-Za-z0-9_.:-]{1,255}$
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/DraftApprove'
responses:
'200':
description: Published or scheduled.
content:
application/json:
schema:
$ref: '#/components/schemas/PostResult'
'207':
description: Some platforms published and some did not.
content:
application/json:
schema:
$ref: '#/components/schemas/PostResult'
'400':
description: The request is not valid. error.code is invalid_request, invalid_json or payload_too_large.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The plan or the API key does not allow this.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such resource on a profile this key can use.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: The request conflicts with the current state, or an identical request is still running.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: The request is well formed but the post cannot be made as asked. error.message says why.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: A cap or rate limit was reached. Retry-After says how many seconds to wait.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: No platform accepted the post.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'504':
description: The request timed out and may still have completed. Check before retrying.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Drafts
components:
schemas:
Draft:
type: object
required:
- id
- status
properties:
id:
type: string
status:
type: string
description: pending, approved, rejected, expired or published.
type:
type: string
enum:
- post_now
- scheduled
payload:
type: object
additionalProperties: true
createdAt:
type:
- string
- 'null'
format: date-time
expiresAt:
type:
- string
- 'null'
format: date-time
description: A draft nobody approves expires 24 hours after it is created.
approvedAt:
type:
- string
- 'null'
format: date-time
publishedAt:
type:
- string
- 'null'
format: date-time
result:
description: Per platform results once published.
additionalProperties: true
PostCreate:
type: object
properties:
platforms:
type: array
items:
type: string
enum:
- facebook
- instagram
- tiktok
- youtube
- linkedin
- twitter
- threads
- bluesky
minItems: 1
maxItems: 8
caption:
type: string
minLength: 1
maxLength: 50000
scheduledAt:
type: string
format: date-time
title:
type: string
minLength: 1
maxLength: 200
mediaId:
type: string
pattern: ^upload:[A-Za-z0-9_-]{1,128}$
imageUrls:
type: array
items:
type: string
format: uri
maxLength: 2048
pattern: ^https:\/\/
minItems: 1
maxItems: 10
videoUrl:
type: string
format: uri
maxLength: 2048
pattern: ^https:\/\/
firstComment:
type: string
minLength: 1
maxLength: 2200
platformSpecificSettings:
type: object
additionalProperties: {}
instagramTrialReel:
type: string
enum:
- MANUAL
- AUTO
tiktokPrivacyLevel:
type: string
enum:
- PUBLIC_TO_EVERYONE
- MUTUAL_FOLLOW_FRIENDS
- FOLLOWER_OF_CREATOR
- SELF_ONLY
profileId:
type: string
pattern: ^[A-Za-z0-9_-]{1,128}$
required:
- platforms
- caption
additionalProperties: false
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- docs
properties:
code:
type: string
description: Stable. Switch on this. The message can change.
message:
type: string
description: For people. May change.
docs:
type: string
format: uri
details:
description: 'Extra structure for some errors: validation issues, per platform results, skipped entries.'
PlatformResult:
type: object
properties:
platform:
type: string
success:
type: boolean
postId:
type: string
postUrl:
type: string
error:
type: string
PostResult:
type: object
required:
- id
- status
description: An immediate publish returns status published or partial with per platform results. A scheduled post returns status scheduled, its id (the groupId when it goes to several platforms) and scheduledPostIds. Other fields from the publish pipeline, such as dailyDraftsRemaining, are passed through.
properties:
id:
type: string
description: Use this id with GET, PATCH and DELETE /v1/posts/{id}.
groupId:
type: string
status:
type: string
enum:
- published
- partial
- scheduled
draftId:
type: string
profileId:
type: string
profileName:
type: string
scheduledAt:
type: string
format: date-time
scheduledPostIds:
type: array
items:
type: string
results:
type: array
items:
$ref: '#/components/schemas/PlatformResult'
duplicate:
type: boolean
description: True when an identical publish a few minutes ago was returned instead of posting again.
dailyDraftsRemaining:
type: integer
description: Posts left today on this profile.
dailyDraftsLimit:
type: integer
additionalProperties: true
DraftApprove:
type: object
properties:
scheduledAt:
type: string
format: date-time
additionalProperties: false
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Authorization: Bearer sk_live_... An API key from the API keys page. OAuth tokens are not accepted here.'