{"openapi":"3.1.0","info":{"title":"Postacio API","version":"1.0.0","description":"Create, schedule and publish social posts in Postacio from your own software. Authenticate with an API key from Settings → API & agents, sent as `Authorization: Bearer pk_live_…`. Every group route answers 404 for a group the key was not given. Errors are `{ error: { code, message, param?, detail?, retry_after? } }`."},"servers":[{"url":"/api/v1"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Account"},{"name":"Groups"},{"name":"Drafts"},{"name":"Media"},{"name":"Tags"},{"name":"Queue"},{"name":"Analytics"}],"paths":{"/me":{"get":{"operationId":"getMe","summary":"The key and owner this request acts as","description":"Any key.","tags":["Account"],"x-postacio-scope":"read","parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This document","description":"No key needed.","tags":["Account"],"security":[],"x-postacio-scope":null,"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","description":"An OpenAPI 3.1 document."}}}}}}},"/groups":{"get":{"operationId":"listGroups","summary":"Social groups this key may use, with their accounts","description":"Any key.","tags":["Groups"],"x-postacio-scope":"read","parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupList"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}":{"get":{"operationId":"getGroup","summary":"One social group with its accounts","description":"Any key.","tags":["Groups"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/accounts":{"get":{"operationId":"listAccounts","summary":"Connected accounts of a group","description":"Any key.","tags":["Groups"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountList"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/drafts":{"get":{"operationId":"listDrafts","summary":"Drafts and posts of a group","description":"`status=failed` includes partially failed posts.\n\nAny key.","tags":["Drafts"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","planned","scheduled","publishing","published","failed"]}},{"name":"tag","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftPage"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"createDraft","summary":"Create a draft, optionally planning, scheduling or publishing it","description":"Scheduling (`publish_at` as a time or \"next-free-slot\") and `publish_at: \"now\"` need publish permission. `\"now\"` answers 202 with `publish_state: \"in_progress\"`; poll the draft until it is `finished`.\n\nAny key.","tags":["Drafts"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDraft"}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/drafts/{draftId}":{"get":{"operationId":"getDraft","summary":"One draft","description":"Any key.","tags":["Drafts"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"updateDraft","summary":"Change a draft (last write wins)","description":"A scheduled draft needs publish permission; a publishing or published one answers 409.\n\nAny key.","tags":["Drafts"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDraft"}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"deleteDraft","summary":"Delete a draft","description":"A scheduled draft needs publish permission; a publishing one answers 409.\n\nAny key.","tags":["Drafts"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Done; no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/drafts/{draftId}/plan":{"post":{"operationId":"planDraft","summary":"Put a draft on the calendar without publishing it","description":"Any key.","tags":["Drafts"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanDraft"}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"unplanDraft","summary":"Take a draft off the calendar","description":"Any key.","tags":["Drafts"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/drafts/{draftId}/schedule":{"post":{"operationId":"scheduleDraft","summary":"Schedule a draft to publish","description":"Needs a key with publishing turned on (403 `publish_not_allowed` otherwise).","tags":["Drafts"],"x-postacio-scope":"publish","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleDraft"}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"unscheduleDraft","summary":"Unschedule, keeping the date as planned","description":"Needs a key with publishing turned on (403 `publish_not_allowed` otherwise).","tags":["Drafts"],"x-postacio-scope":"publish","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/drafts/{draftId}/publish":{"post":{"operationId":"publishDraft","summary":"Publish now","description":"Answers at once with `publish_state: \"in_progress\"`; poll the draft until it is `finished`. Also spends the owner's publish budget (20 a minute).\n\nNeeds a key with publishing turned on (403 `publish_not_allowed` otherwise).","tags":["Drafts"],"x-postacio-scope":"publish","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"202":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/drafts/{draftId}/share":{"post":{"operationId":"shareDraft","summary":"Turn the review link on or off","description":"Any key.","tags":["Drafts"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"draftId","in":"path","required":true,"description":"A draft id.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareDraft"}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Share"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/media":{"post":{"operationId":"createMediaUpload","summary":"Start an upload: reserve it and get a URL to PUT the file to","description":"Single-part uploads up to 50 MiB. PUT the bytes to `upload_url` with exactly `headers`, then call verify.\n\nAny key.","tags":["Media"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMediaUpload"}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUpload"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/media/{mediaId}":{"get":{"operationId":"getMedia","summary":"Where an upload is: reserved, uploaded, ready or deleting","description":"Any key.","tags":["Media"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"mediaId","in":"path","required":true,"description":"The `media_id` from `POST /media`.","schema":{"type":"string","pattern":"^[0-9a-fA-F-]{36}(\\.[A-Za-z0-9][A-Za-z0-9.+-]{0,39})?$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaStatus"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/media/{mediaId}/verify":{"post":{"operationId":"verifyMedia","summary":"Check an uploaded file and get the attachment for a draft","description":"Pass the answer in a draft's `media` array, adding `alt_text` there. A file that fails the check is deleted.\n\nAny key.","tags":["Media"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"mediaId","in":"path","required":true,"description":"The `media_id` from `POST /media`.","schema":{"type":"string","pattern":"^[0-9a-fA-F-]{36}(\\.[A-Za-z0-9][A-Za-z0-9.+-]{0,39})?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyMedia"}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaRef"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/tags":{"get":{"operationId":"listTags","summary":"The tag vocabulary","description":"Any key.","tags":["Tags"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagList"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"createTag","summary":"Create a tag, or return the one with that name","description":"Any key.","tags":["Tags"],"x-postacio-scope":"write","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTag"}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/queue/slots":{"get":{"operationId":"listQueueSlots","summary":"The group's posting slots","description":"Any key.","tags":["Queue"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotList"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/queue/next":{"get":{"operationId":"nextQueueSlots","summary":"The next open queue times (\"next-free-slot\" takes the first)","description":"Any key.","tags":["Queue"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"accounts","in":"query","required":false,"description":"Comma-separated account ids. Default: every account in the group.","schema":{"type":"string","maxLength":2000}},{"name":"from","in":"query","required":false,"description":"Earliest time to offer. Default: now.","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"limit","in":"query","required":false,"schema":{"default":10,"type":"integer","minimum":1,"maximum":10}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NextSlotList"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/accounts/{accountId}/analytics/posts":{"get":{"operationId":"postMetrics","summary":"Per-post metrics for one account","description":"The window is clamped to your plan's analytics history.\n\nAny key.","tags":["Analytics"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"accountId","in":"path","required":true,"description":"An account id from the group's `accounts`.","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"default":0,"type":"integer","minimum":0,"maximum":100000}},{"name":"from","in":"query","required":false,"description":"Published at or after. Defaults to 30 days ago; clamped to the plan's history.","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"to","in":"query","required":false,"description":"Published before. Defaults to now.","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"metrics","in":"query","required":false,"description":"Comma-separated subset of views, likes, comments, shares, saves, reach, impressions.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostMetricsPage"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}},"/groups/{groupId}/accounts/{accountId}/analytics/followers":{"get":{"operationId":"followerSeries","summary":"Follower count over time for one account","description":"Buckets are in the group's timezone; each holds the last reading in it.\n\nAny key.","tags":["Analytics"],"x-postacio-scope":"read","parameters":[{"name":"groupId","in":"path","required":true,"description":"A social group id from `GET /groups`.","schema":{"type":"string","format":"uuid"}},{"name":"accountId","in":"path","required":true,"description":"An account id from the group's `accounts`.","schema":{"type":"string","format":"uuid"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"bucket","in":"query","required":false,"schema":{"default":"day","type":"string","enum":["day","week"]}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerSeries"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key (`pk_live_…`) or an agent access token (`at_…`)."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","revoked","account_paused","plan_limit","forbidden","publish_not_allowed","not_found","validation","quota_exceeded","rate_limited","idempotency_conflict","conflict","internal"]},"message":{"type":"string","description":"A sentence written for a person; safe to show."},"param":{"description":"The request field, header or query parameter at fault.","type":"string"},"detail":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"account_id":{"type":"string"},"platform":{"type":"string"},"block_id":{"type":"string"}},"required":["code","message"]}},"retry_after":{"description":"Seconds to wait, on 429.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["code","message"]}},"required":["error"]},"Me":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]},"principal":{"type":"object","properties":{"kind":{"type":"string","enum":["api_key","agent"]},"id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"can_publish":{"type":"boolean"},"groups":{"anyOf":[{"type":"string","const":"all"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]}},"required":["kind","id","name","can_publish","groups"]}},"required":["user","principal"]},"Account":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","expired","revoked","error"]},"enabled_by_default":{"type":"boolean"}},"required":["id","platform","name","handle","avatar_url","status","enabled_by_default"]},"Group":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"timezone":{"type":"string"},"color":{"type":"string"},"primary_platform":{"anyOf":[{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},{"type":"null"}]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","expired","revoked","error"]},"enabled_by_default":{"type":"boolean"}},"required":["id","platform","name","handle","avatar_url","status","enabled_by_default"]}}},"required":["id","name","timezone","color","primary_platform"]},"GroupList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"timezone":{"type":"string"},"color":{"type":"string"},"primary_platform":{"anyOf":[{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},{"type":"null"}]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","expired","revoked","error"]},"enabled_by_default":{"type":"boolean"}},"required":["id","platform","name","handle","avatar_url","status","enabled_by_default"]}}},"required":["id","name","timezone","color","primary_platform"]}}},"required":["items"]},"AccountList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["active","expired","revoked","error"]},"enabled_by_default":{"type":"boolean"}},"required":["id","platform","name","handle","avatar_url","status","enabled_by_default"]}}},"required":["items"]},"CreateDraft":{"type":"object","properties":{"text":{"description":"The post. Use `thread` instead for a multi-post thread.","type":"string","maxLength":90000},"thread":{"description":"Posts of a thread, in order.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":90000}},"title":{"description":"A working title shown in Postacio; never published.","type":"string","maxLength":140},"targets":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":90000},"options":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":60},"additionalProperties":{}}},"required":["account_id"],"additionalProperties":false},"description":"The connected accounts to publish to."},"media":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":512},"kind":{"type":"string","enum":["image","video","document"]},"content_type":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":255},"size_bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"duration_sec":{"type":"number","exclusiveMinimum":0},"alt_text":{"type":"string","maxLength":1000}},"required":["key","kind","content_type","name"],"additionalProperties":false}},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"auto_number":{"description":"Prefix each thread post with 1/, 2/ ...","type":"boolean"},"plan_at":{"description":"Put the draft on the calendar without publishing it.","anyOf":[{"type":"string","const":"next-free-slot"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},"publish_at":{"description":"\"now\", \"next-free-slot\", or an ISO datetime to schedule.","anyOf":[{"type":"string","const":"now"},{"type":"string","const":"next-free-slot"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},"jitter_minutes":{"type":"integer","minimum":0,"maximum":15}},"required":["targets"],"additionalProperties":false},"UpdateDraft":{"type":"object","properties":{"text":{"description":"The post. Use `thread` instead for a multi-post thread.","type":"string","maxLength":90000},"thread":{"description":"Posts of a thread, in order.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":90000}},"title":{"anyOf":[{"type":"string","maxLength":140},{"type":"null"}]},"targets":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":90000},"options":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":60},"additionalProperties":{}}},"required":["account_id"],"additionalProperties":false},"description":"The connected accounts to publish to."},"media":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":512},"kind":{"type":"string","enum":["image","video","document"]},"content_type":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":255},"size_bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"duration_sec":{"type":"number","exclusiveMinimum":0},"alt_text":{"type":"string","maxLength":1000}},"required":["key","kind","content_type","name"],"additionalProperties":false}},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"auto_number":{"description":"Prefix each thread post with 1/, 2/ ...","type":"boolean"}},"additionalProperties":false},"PlanDraft":{"type":"object","properties":{"plan_at":{"anyOf":[{"type":"string","const":"next-free-slot"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},"required":["plan_at"],"additionalProperties":false},"ScheduleDraft":{"type":"object","properties":{"publish_at":{"anyOf":[{"type":"string","const":"next-free-slot"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},"jitter_minutes":{"type":"integer","minimum":0,"maximum":15}},"required":["publish_at"],"additionalProperties":false},"ShareDraft":{"type":"object","properties":{"enabled":{"type":"boolean"},"role":{"type":"string","enum":["viewer","commenter","approver"]},"expiry":{"type":"string","enum":["never","24h","7d","30d"]}},"required":["enabled"],"additionalProperties":false},"Share":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string","enum":["viewer","commenter","approver"]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["enabled","url","role","expires_at"]},"Draft":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"group_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string","enum":["draft","planned","scheduled","held","publishing","published","partially_failed","failed"]},"publish_state":{"type":"string","enum":["idle","in_progress","finished"]},"text":{"type":"string"},"thread":{"type":"array","items":{"type":"string"}},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"media":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":512},"kind":{"type":"string","enum":["image","video","document"]},"content_type":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":255},"size_bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"duration_sec":{"type":"number","exclusiveMinimum":0},"alt_text":{"type":"string","maxLength":1000}},"required":["key","kind","content_type","name"],"additionalProperties":false}},"planned_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"published_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"share_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"origin":{"type":"object","properties":{"kind":{"type":"string","enum":["app","api","agent"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","name"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"targets":{"type":"array","items":{"type":"object","properties":{"account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"platform":{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},"status":{"anyOf":[{"type":"string","enum":["pending","publishing","published","failed"]},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"published_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["account_id","platform","status","text","permalink","error","published_at"]}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}}},"required":["id","group_id","status","publish_state","text","thread","title","tags","media","planned_at","scheduled_at","published_at","share_url","origin","version","created_at","updated_at","targets","warnings"]},"DraftPage":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"group_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string","enum":["draft","planned","scheduled","held","publishing","published","partially_failed","failed"]},"publish_state":{"type":"string","enum":["idle","in_progress","finished"]},"text":{"type":"string"},"thread":{"type":"array","items":{"type":"string"}},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"media":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":512},"kind":{"type":"string","enum":["image","video","document"]},"content_type":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":255},"size_bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"duration_sec":{"type":"number","exclusiveMinimum":0},"alt_text":{"type":"string","maxLength":1000}},"required":["key","kind","content_type","name"],"additionalProperties":false}},"planned_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"published_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"share_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"origin":{"type":"object","properties":{"kind":{"type":"string","enum":["app","api","agent"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind","name"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"targets":{"type":"array","items":{"type":"object","properties":{"account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"platform":{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},"status":{"anyOf":[{"type":"string","enum":["pending","publishing","published","failed"]},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"published_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["account_id","platform","status","text","permalink","error","published_at"]}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}}},"required":["id","group_id","status","publish_state","text","thread","title","tags","media","planned_at","scheduled_at","published_at","share_url","origin","version","created_at","updated_at","targets","warnings"]}},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next":{"anyOf":[{"type":"string"},{"type":"null"}]},"previous":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","count","limit","offset","next","previous"]},"CreateMediaUpload":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\u0000-\\u001f\\u007f]+$"},"content_type":{"type":"string","minLength":1,"maxLength":200,"description":"The MIME type the file will be uploaded with, e.g. image/png."},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The exact file size. Single-part uploads only (up to 50 MiB)."}},"required":["filename","content_type","bytes"],"additionalProperties":false},"MediaUpload":{"type":"object","properties":{"media_id":{"type":"string"},"key":{"type":"string"},"upload_url":{"type":"string"},"method":{"type":"string","const":"PUT"},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["media_id","key","upload_url","method","headers"]},"MediaStatus":{"type":"object","properties":{"media_id":{"type":"string"},"key":{"type":"string"},"state":{"type":"string","enum":["reserved","uploaded","ready","deleting"]},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["media_id","key","state","bytes"]},"VerifyMedia":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\u0000-\\u001f\\u007f]+$","description":"The file name to show for this attachment."},"content_type":{"type":"string","minLength":1,"maxLength":200}},"required":["name","content_type"],"additionalProperties":false},"MediaRef":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":512},"kind":{"type":"string","enum":["image","video","document"]},"content_type":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":255},"size_bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"duration_sec":{"type":"number","exclusiveMinimum":0},"alt_text":{"type":"string","maxLength":1000}},"required":["key","kind","content_type","name"],"additionalProperties":false},"Tag":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}},"required":["id","name","color"]},"CreateTag":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40,"description":"Matched case-insensitively: an existing tag with this name is returned, not duplicated."},"color":{"type":"string","enum":["slate","green","amber","red","blue","violet","teal","pink"]}},"required":["name"],"additionalProperties":false},"TagList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}},"required":["id","name","color"]}}},"required":["items"]},"SlotList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"days":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6}},"minutes":{"type":"integer","minimum":0,"maximum":1439},"account_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["id","label","days","minutes","account_ids"]}}},"required":["items"]},"NextSlotList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"slot_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"label":{"type":"string"},"account_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["slot_id","at","label","account_ids"]}}},"required":["items"]},"PostMetricsPage":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"target_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"post_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","enum":["x","telegram","instagram","facebook","linkedin"]},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}]},"published_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"metrics":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"required":["target_id","post_id","platform","permalink","published_at","metrics"]}},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next":{"anyOf":[{"type":"string"},{"type":"null"}]},"previous":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","count","limit","offset","next","previous"]},"FollowerSeries":{"type":"object","properties":{"points":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"followers":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["at","followers"]}}},"required":["points"]}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Up to 128 visible ASCII characters. Retrying with the same key and body within 24 hours replays the first answer (with `Idempotent-Replayed: true`) instead of doing the work twice; the same key with a different body is 422 `idempotency_conflict`.","schema":{"type":"string","maxLength":128}}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in this key's window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix seconds when this key's window resets.","schema":{"type":"integer"}},"X-RateLimit-User-Limit":{"description":"Requests allowed per minute across all of the owner's keys and agents.","schema":{"type":"integer"}},"X-RateLimit-User-Remaining":{"description":"Requests left in the owner's window.","schema":{"type":"integer"}},"X-RateLimit-User-Reset":{"description":"Unix seconds when the owner's window resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying (429 only).","schema":{"type":"integer"}}},"responses":{"Error":{"description":"An error in the v1 envelope.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-User-Limit":{"$ref":"#/components/headers/X-RateLimit-User-Limit"},"X-RateLimit-User-Remaining":{"$ref":"#/components/headers/X-RateLimit-User-Remaining"},"X-RateLimit-User-Reset":{"$ref":"#/components/headers/X-RateLimit-User-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}