{"openapi":"3.1.0","info":{"title":"Keep 'em Posted API","summary":"Create and schedule posts to a workspace's connected social accounts.","description":"Create, schedule and read the posts of a Keep 'em Posted workspace from your own script or automation tool.\n\n**Authentication.** Make an API key in the app under Settings, API keys, and send it with every request: `Authorization: Bearer kep_live_...`. A key works in one workspace.\n\n**Posts and deliveries.** A post is what was written. It goes to each account as a delivery, and every delivery has its own status, time and, when a platform needs other wording, its own text. Statuses: `draft` (no time yet), `pending_approval` (waits for a person, with its time, or with none when it was scheduled for now: `on_approval`), `scheduled` (goes out at its time), `publishing`, `published`, `failed`, `canceled`.\n\n**Approval.** Your key schedules, a person approves, unless the workspace says otherwise. The workspace's approval rule decides whether what a key schedules goes out at its time or first waits as `pending_approval` for a person to approve it in the app. `GET /v1/workspace` says which, and every scheduling answer says what happened in `result`. A delivery scheduled for now where it has to wait is on approval: it waits for approval and goes out as soon as it is approved. There is no endpoint that approves a delivery and none that sends a failed one again: both are done by a person in the app.\n\n**Credits.** A delivery costs credits when it goes out, not when it is scheduled. `GET /v1/accounts` gives the price of each kind of post and `GET /v1/credits` what the workspace has.\n\n**Times.** ISO 8601 with an offset. A time without an offset is read in the workspace's time zone. Times come back with the workspace's offset.\n\n**Errors.** Every error is `{\"error\": {\"code\": \"...\", \"message\": \"...\"}}` with a stable `code`. Some carry more: `issues` (what a platform will not take), `fields` (which fields of the request are wrong), `current` (the status that stands in the way), `retry_after`.\n\n**Rate limits.** 120 requests a minute for each key. Every answer carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds until the window starts again); past the limit the answer is 429 with `Retry-After`.\n\n**Idempotency.** Send an `Idempotency-Key` header when you create a post. Repeating the request with the same key returns the post that was already made.","contact":{"name":"Keep 'em Posted","url":"https://keepemposted.com/docs/api"},"version":"1.0.0"},"servers":[{"url":"https://api.keepemposted.com"}],"paths":{"/v1/workspace":{"get":{"tags":["Workspace"],"summary":"The workspace this key belongs to","description":"Start here. `approval.mode` says what happens to what this key schedules:\n`none` and it goes out at its time; `agents` or `everyone` and it waits as\n`pending_approval` until a person approves it in the app. `credits` is what\nthe workspace has (`paid_balance` leaves out the free credits) and what the\ndeliveries already scheduled or waiting will cost (`committed`).","operationId":"get_workspace","responses":{"200":{"description":"The workspace, its approval rule and what it has to spend.","content":{"application/json":{"schema":{},"example":{"workspace":{"id":"0193a3f0-11aa-7c3e-8f55-2b4d6e8a0c13","name":"Acme","slug":"acme","timezone":"Europe/Copenhagen"},"now":"2026-11-20T14:02:11+01:00","now_text":"Fri 20 Nov 2026 14:02 (Europe/Copenhagen)","approval":{"mode":"agents","rule":"What you schedule waits for a person to approve it in the app. Until then it is pending_approval and does not go out. Scheduled for now, it goes out as soon as it is approved."},"key":{"name":"Zapier","scopes":["posts:read","posts:write"]},"credits":{"balance":480,"paid_balance":400,"committed":12},"deliveries":{"draft":3,"pending_approval":2,"scheduled":9,"publishing":0,"published":141,"failed":0,"canceled":4}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}}},"security":[{"API key":[]}]}},"/v1/credits":{"get":{"tags":["Workspace"],"summary":"What the workspace has to spend","description":"A delivery (one post going to one account) costs credits when it goes\nout, never when it is scheduled. `balance` is everything the workspace\nhas, `paid_balance` leaves out the free credits. `committed` is what the\ndeliveries that are scheduled or waiting for approval will cost. `cap` is\nthe most the workspace wants to spend in a calendar month, or null. A\ndelivery that is due and cannot be paid for is not sent and does not\nfail: it stays `scheduled` with `error_code` `out_of_credits`,\n`needs_paid_credits` or `over_cap`, and goes out when there are credits.\nA key cannot add or buy credits.","operationId":"get_credits","responses":{"200":{"description":"The balance, what is spoken for, this month's spending and the monthly spending limit.","content":{"application/json":{"schema":{}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}}},"security":[{"API key":[]}]}},"/v1/accounts":{"get":{"tags":["Accounts"],"summary":"The connected accounts and what each one takes","description":"Each account has its `id` (for creating posts), platform, handle and\nstatus, the brand it posts for and its own `voice`, and `formats`: the\nkinds of post its platform has (on Instagram: post, reel, story) with\nwhat each takes (text and how long, a title, how many images and videos,\na first comment, its choices) and what a delivery of that kind costs in\ncredits. `limits` is the platform's widest allowance. `posting_times` is\nthe account's weekly schedule and `next_free_at` what `next_free` would\ngive it right now. An account whose `can_publish` is false cannot be\nscheduled to until a person connects it again in the app. `brands` lists\neach brand with its voice: the person's own words on how it speaks.","operationId":"list_accounts","responses":{"200":{"description":"Every connected account, and the brands they post for.","content":{"application/json":{"schema":{}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}}},"security":[{"API key":[]}]}},"/v1/brands":{"get":{"tags":["Accounts"],"summary":"The brands and how each one speaks","description":"A brand groups accounts and has a voice: the person's own words on\ntone, words to use and to avoid, hashtags and who it talks to, the\nlanguage it writes in and its website. A key reads voices; a person\nwrites them in the app.","operationId":"list_brands","responses":{"200":{"description":"The workspace's brands, each with its voice and its accounts' ids.","content":{"application/json":{"schema":{}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}}},"security":[{"API key":[]}]}},"/v1/posts":{"post":{"tags":["Posts"],"summary":"Write a post and send it to one or more accounts","description":"Each account gets a delivery with its own status. Without `schedule_at`\nthey are drafts. With it each delivery is scheduled, or waits for a\nperson's approval when the workspace asks for that: `result` says which\nhappened, per delivery, and `post.deliveries[].status` is `scheduled` or\n`pending_approval`. A key cannot approve.\n\nWith `schedule_at` `next_free` each account gets its own next free posting\ntime, so the deliveries of one post can go out at different times.\n\nA delivery whose platform will not take the content, or whose account has\nno posting times when `next_free` was asked for, stays a draft and is\nlisted in `not_scheduled` with the reason and its `issues`; the others are\nstill scheduled. Every delivery in `post.deliveries` carries its `issues`\n(what its platform will not take as the content is now; empty means it\ncan go), its `advice` (what is worth knowing and stops nothing) and what\nit costs in credits when it goes out.\n\nSend an `Idempotency-Key`: repeating the request without one makes a\nsecond post.","operationId":"create_post","security":[{"API key":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":8,"maxLength":80},{"type":"null"}],"description":"A string you make up for this one post, such as a random id. Send the same key when you repeat the request (after a timeout or an answer you could not read): you then get the post that was already made, with `already_created: true` and status 200, and nothing is written or scheduled a second time. The body of the repeat is not compared with the first one.","title":"Idempotency-Key"},"description":"A string you make up for this one post, such as a random id. Send the same key when you repeat the request (after a timeout or an answer you could not read): you then get the post that was already made, with `already_created: true` and status 200, and nothing is written or scheduled a second time. The body of the repeat is not compared with the first one."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCreate"}}}},"responses":{"201":{"description":"The post, and per delivery what happened to it.","content":{"application/json":{"schema":{},"example":{"post":{"id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","title":"","text":"The winter list is out.","source":"api","media":[],"deliveries":[{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"}],"notes_count":1,"notes":[{"id":"0193a40c-11d0-7c33-9e21-4b6a7d8c9e02","author":"Nightly script","author_kind":"key","text":"Written from the price list of 20 November. @Ann please check the dates before approving.","mentions":["Ann Lee"],"created_at":"2026-11-20T14:02:12+01:00"}],"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00"},"result":[{"delivery_id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","account":"acme","status":"pending_approval","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then","credits":1}]}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}},"200":{"description":"A post was already made with this Idempotency-Key. Nothing was written.","content":{"application/json":{"example":{"post":{"id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","title":"","text":"The winter list is out.","source":"api","media":[],"deliveries":[{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"}],"notes_count":1,"notes":[{"id":"0193a40c-11d0-7c33-9e21-4b6a7d8c9e02","author":"Nightly script","author_kind":"key","text":"Written from the price list of 20 November. @Ann please check the dates before approving.","mentions":["Ann Lee"],"created_at":"2026-11-20T14:02:12+01:00"}],"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00"},"result":[{"delivery_id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","account":"acme","status":"pending_approval","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then","credits":1}],"already_created":true}}}}}},"get":{"tags":["Posts"],"summary":"List posts with their deliveries, newest first","description":"The filters apply to one delivery together: `status=scheduled` with\n`account_id` finds posts scheduled to that account. A post comes back\nwith all its deliveries, not only the matching ones. `next_cursor` is\nnull on the last page; otherwise send it as `cursor` for the next one.","operationId":"list_posts","security":[{"API key":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["draft","pending_approval","scheduled","publishing","published","failed","canceled"],"type":"string"},{"type":"null"}],"description":"Only posts with a delivery in this status.","title":"Status"},"description":"Only posts with a delivery in this status."},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only posts with a delivery to this account.","title":"Account Id"},"description":"Only posts with a delivery to this account."},{"name":"scheduled_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Only posts with a delivery planned at or after this time. ISO 8601; a bare date is the start of that day in the workspace's zone.","title":"Scheduled From"},"description":"Only posts with a delivery planned at or after this time. ISO 8601; a bare date is the start of that day in the workspace's zone."},{"name":"scheduled_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Only posts with a delivery planned before this time. Same format.","title":"Scheduled Before"},"description":"Only posts with a delivery planned before this time. Same format."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"How many posts in a page.","default":20,"title":"Limit"},"description":"How many posts in a page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"Only posts that carry this tag. Capitals do not matter.","title":"Tag"},"description":"Only posts that carry this tag. Capitals do not matter."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Words to find. A post is found when each word is somewhere in it: its text or title, what it says to one account, a tag, or the name of an account or a brand it is for.","title":"Search"},"description":"Words to find. A post is found when each word is somewhere in it: its text or title, what it says to one account, a tag, or the name of an account or a brand it is for."}],"responses":{"200":{"description":"A page of posts.","content":{"application/json":{"schema":{},"example":{"posts":[{"id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","title":"","text":"The winter list is out.","source":"api","media":[],"deliveries":[{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"}],"notes_count":1,"notes":[{"id":"0193a40c-11d0-7c33-9e21-4b6a7d8c9e02","author":"Nightly script","author_kind":"key","text":"Written from the price list of 20 November. @Ann please check the dates before approving.","mentions":["Ann Lee"],"created_at":"2026-11-20T14:02:12+01:00"}],"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00"}]}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/posts/{post_id}":{"get":{"tags":["Posts"],"summary":"One post with its media and deliveries","description":"Each delivery has `status`, `standing` (the same in words), its times,\nand `issues`: what its platform will not take as the content is now.\n`advice` is separate and stops nothing: things worth knowing, such as\nthat Google may reject a post with a phone number in its text. Each is\n`{\"code\", \"message\"}` like an issue. A delivery with advice and no\nissues can be scheduled.\nOnly status `published` means it is out; `external_url` is then where.\nA kind of post whose format has `handover` (a video to finish in TikTok)\nends in the account's inbox at the platform instead: `handed_over` then\nsays where it is and what the person does next, and it has no\n`external_url` and no results. A delivery that set out and is looked at\nagain by the queue (its platform is still working on it, or a try did\nnot get through) is `scheduled` with `on_its_way`; once `can_stop` is\nfalse there, cancelling, moving or taking it back is refused with\n`with_platform`.","operationId":"get_post","security":[{"API key":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"responses":{"200":{"description":"The post.","content":{"application/json":{"schema":{},"example":{"post":{"id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","title":"","text":"The winter list is out.","source":"api","media":[],"deliveries":[{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"}],"notes_count":1,"notes":[{"id":"0193a40c-11d0-7c33-9e21-4b6a7d8c9e02","author":"Nightly script","author_kind":"key","text":"Written from the price list of 20 November. @Ann please check the dates before approving.","mentions":["Ann Lee"],"created_at":"2026-11-20T14:02:12+01:00"}],"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00"}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Posts"],"summary":"Change a post's text, title or media","description":"Refused with `post_locked` (409) while any of its deliveries is waiting\nfor approval, scheduled, going out or out: what a person approved is what\ngoes out. Unschedule that delivery first, change the post, then schedule\nit again.","operationId":"update_post","security":[{"API key":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostUpdate"}}}},"responses":{"200":{"description":"The post as it is now, with each delivery's issues.","content":{"application/json":{"schema":{},"example":{"post":{"id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","title":"","text":"The winter list is out.","source":"api","media":[],"deliveries":[{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"}],"notes_count":1,"notes":[{"id":"0193a40c-11d0-7c33-9e21-4b6a7d8c9e02","author":"Nightly script","author_kind":"key","text":"Written from the price list of 20 November. @Ann please check the dates before approving.","mentions":["Ann Lee"],"created_at":"2026-11-20T14:02:12+01:00"}],"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00"}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"409":{"description":"The post or delivery is not in a state that allows this.","content":{"application/json":{"example":{"error":{"code":"post_locked","current":"scheduled","message":"This post has a scheduled delivery. Take it back to a draft before changing the post."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}},"delete":{"tags":["Posts"],"summary":"Delete a post and its deliveries","description":"Only while the post could still be changed: refused with `post_locked`\n(409) while a delivery is waiting for approval, scheduled, going out or\nout. Unschedule or cancel those first. What was published stays on\nrecord.","operationId":"delete_post","security":[{"API key":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"responses":{"204":{"description":"Deleted."},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"409":{"description":"The post or delivery is not in a state that allows this.","content":{"application/json":{"example":{"error":{"code":"post_locked","current":"scheduled","message":"This post has a scheduled delivery. Take it back to a draft before changing the post."}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/posts/{post_id}/duplicate":{"post":{"tags":["Posts"],"summary":"Make a new post like one that exists, as drafts","description":"The copy has the same text, title, media and accounts, and for each\naccount the same wording, first comment, kind of post and choices. Every\ndelivery of the copy is a draft with no time, whatever became of the\noriginal. A cancelled delivery is not copied and a disconnected account\nis left out.","operationId":"duplicate_post","security":[{"API key":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":8,"maxLength":80},{"type":"null"}],"description":"A string you make up for this one post, such as a random id. Send the same key when you repeat the request (after a timeout or an answer you could not read): you then get the post that was already made, with `already_created: true` and status 200, and nothing is written or scheduled a second time. The body of the repeat is not compared with the first one.","title":"Idempotency-Key"},"description":"A string you make up for this one post, such as a random id. Send the same key when you repeat the request (after a timeout or an answer you could not read): you then get the post that was already made, with `already_created: true` and status 200, and nothing is written or scheduled a second time. The body of the repeat is not compared with the first one."}],"responses":{"201":{"description":"The copy.","content":{"application/json":{"schema":{},"example":{"post":{"id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","title":"","text":"The winter list is out.","source":"api","media":[],"deliveries":[{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"}],"notes_count":1,"notes":[{"id":"0193a40c-11d0-7c33-9e21-4b6a7d8c9e02","author":"Nightly script","author_kind":"key","text":"Written from the price list of 20 November. @Ann please check the dates before approving.","mentions":["Ann Lee"],"created_at":"2026-11-20T14:02:12+01:00"}],"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00"},"copied_from":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23"}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/posts/{post_id}/deliveries":{"post":{"tags":["Deliveries"],"summary":"Send a post to one more account, as a draft","description":"Use this instead of writing the post again. The new delivery is a\ndraft; give it its time with the schedule endpoint.","operationId":"add_delivery","security":[{"API key":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostAccount"}}}},"responses":{"201":{"description":"The new delivery.","content":{"application/json":{"schema":{},"example":{"delivery":{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"},"result":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then","cost":{"credits":1,"paid_only":false,"charged":false}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/posts/{post_id}/notes":{"post":{"tags":["Posts"],"summary":"Leave a note on a post","description":"A note is for the workspace only: it is never published and never\nsent to a platform. It is signed with the key's name and cannot be\nchanged afterwards. Whoever wrote the post, and anyone it names with\n`@`, may get an email about it. A post's notes come back with the post\n(`GET /v1/posts/{post_id}`), oldest first, so a script can read what a\nperson answered.","operationId":"add_note","security":[{"API key":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreate"}}}},"responses":{"201":{"description":"The note.","content":{"application/json":{"schema":{},"example":{"note":{"id":"0193a40c-11d0-7c33-9e21-4b6a7d8c9e02","author":"Nightly script","author_kind":"key","text":"Written from the price list of 20 November. @Ann please check the dates before approving.","mentions":["Ann Lee"],"created_at":"2026-11-20T14:02:12+01:00"},"post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23"}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/deliveries/{delivery_id}":{"patch":{"tags":["Deliveries"],"summary":"Change what one account says","description":"Gives one delivery its own text, first comment, kind of post or\noptions, without touching the others. Drafts only: any other status is\nrefused with `wrong_status` (409), so unschedule it first.","operationId":"update_delivery","security":[{"API key":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delivery Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryUpdate"}}}},"responses":{"200":{"description":"The delivery as it is now, with its issues.","content":{"application/json":{"schema":{},"example":{"delivery":{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"},"result":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then","cost":{"credits":1,"paid_only":false,"charged":false}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"409":{"description":"The post or delivery is not in a state that allows this.","content":{"application/json":{"example":{"error":{"code":"post_locked","current":"scheduled","message":"This post has a scheduled delivery. Take it back to a draft before changing the post."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/deliveries/{delivery_id}/schedule":{"post":{"tags":["Deliveries"],"summary":"Give a draft delivery its time","description":"The delivery is then `scheduled`, or `pending_approval` when the\nworkspace asks for approval: `result` says which, and a key cannot\napprove. Scheduled for now where it has to wait, it waits for approval\nand goes out as soon as it is approved: it then has no time\n(`scheduled_at` null, `on_approval` true). Refused with `not_sendable` (422) and the `issues` when the\nplatform will not take the content, and with `no_posting_times` when\n`next_free` was asked for and the account has none. Scheduling is never\nrefused for lack of credits; `cost` says what it costs when it goes out.","operationId":"schedule_delivery","security":[{"API key":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delivery Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScheduleIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"The delivery, and in `result` whether it is scheduled or waits for approval.","content":{"application/json":{"schema":{},"example":{"delivery":{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"},"result":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then","cost":{"credits":1,"paid_only":false,"charged":false}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"409":{"description":"The post or delivery is not in a state that allows this.","content":{"application/json":{"example":{"error":{"code":"post_locked","current":"scheduled","message":"This post has a scheduled delivery. Take it back to a draft before changing the post."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/deliveries/{delivery_id}/reschedule":{"post":{"tags":["Deliveries"],"summary":"Move a delivery's time","description":"For a delivery that is scheduled or waiting for approval. Its status\nstays what it was: an approval stands, and one that is still waiting\nkeeps waiting. For a draft use schedule.","operationId":"reschedule_delivery","security":[{"API key":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delivery Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleIn"}}}},"responses":{"200":{"description":"The delivery with its new time.","content":{"application/json":{"schema":{},"example":{"delivery":{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"},"result":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then","cost":{"credits":1,"paid_only":false,"charged":false}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"409":{"description":"The post or delivery is not in a state that allows this.","content":{"application/json":{"example":{"error":{"code":"post_locked","current":"scheduled","message":"This post has a scheduled delivery. Take it back to a draft before changing the post."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/deliveries/{delivery_id}/unschedule":{"post":{"tags":["Deliveries"],"summary":"Take a delivery back to a draft so it can be changed","description":"For a delivery that is scheduled or waiting for approval. Any approval\nit had is gone, so after the change it is scheduled again and may wait\nfor approval again.","operationId":"unschedule_delivery","security":[{"API key":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delivery Id"}}],"responses":{"200":{"description":"The delivery, a draft again.","content":{"application/json":{"schema":{},"example":{"delivery":{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"},"result":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then","cost":{"credits":1,"paid_only":false,"charged":false}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"409":{"description":"The post or delivery is not in a state that allows this.","content":{"application/json":{"example":{"error":{"code":"post_locked","current":"scheduled","message":"This post has a scheduled delivery. Take it back to a draft before changing the post."}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deliveries/{delivery_id}/cancel":{"post":{"tags":["Deliveries"],"summary":"Stop a delivery for good","description":"It will not go out, and this cannot be taken back. To change a\ndelivery and send it later, unschedule it instead. Refused once it is\ngoing out (`publishing_now`) or out (`already_published`).","operationId":"cancel_delivery","security":[{"API key":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Delivery Id"}}],"responses":{"200":{"description":"The delivery, canceled.","content":{"application/json":{"schema":{},"example":{"delivery":{"id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account":{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11","platform":"linkedin","handle":"acme","display_name":"Acme","status":"active"},"options":{},"status":"pending_approval","scheduled_at":"2026-11-24T09:00:00+01:00","on_approval":false,"attempts":0,"credits":1,"charged":false,"created_at":"2026-11-20T14:02:11+01:00","updated_at":"2026-11-20T14:02:11+01:00","issues":[],"advice":[],"cost":{"credits":1,"paid_only":false},"scheduled_at_text":"Tue 24 Nov 2026 09:00 (Europe/Copenhagen)","standing":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then"},"result":"waiting for a person to approve it in the app; planned for Tue 24 Nov 2026 09:00 (Europe/Copenhagen). It does not go out until then","cost":{"credits":1,"paid_only":false,"charged":false}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"409":{"description":"The post or delivery is not in a state that allows this.","content":{"application/json":{"example":{"error":{"code":"post_locked","current":"scheduled","message":"This post has a scheduled delivery. Take it back to a draft before changing the post."}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media":{"get":{"tags":["Media"],"summary":"The workspace's images and videos, newest first","description":"Each file has its `id` (for a post's `media_ids`), kind, size,\ndimensions, alt text and name. The file itself is not served here.","operationId":"list_media","security":[{"API key":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["image","video"],"type":"string"},{"type":"null"}],"description":"Only images, or only videos.","title":"Kind"},"description":"Only images, or only videos."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"How many files in a page.","default":50,"title":"Limit"},"description":"How many files in a page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"A page of files.","content":{"application/json":{"schema":{},"example":{"media":[{"id":"0193a409-1f6b-7a90-a3d2-5e7c8b9a0d47","kind":"image","content_type":"image/png","size_bytes":48211,"width":1080,"height":1080,"alt_text":"The winter list as a poster","name":"poster.png","created_at":"2026-11-20T14:01:40+01:00"}]}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}},"post":{"tags":["Media"],"summary":"Upload an image or a video","description":"Send the file as `multipart/form-data` in a field named `file`, and\noptionally its description in `alt_text`. The file is judged by its\nbytes, not its name.","operationId":"upload_media","security":[{"API key":[]}],"responses":{"201":{"description":"The stored file, with its id for a post's `media_ids`.","content":{"application/json":{"schema":{},"example":{"media":{"id":"0193a409-1f6b-7a90-a3d2-5e7c8b9a0d47","kind":"image","content_type":"image/png","size_bytes":48211,"width":1080,"height":1080,"alt_text":"The winter list as a poster","name":"poster.png","created_at":"2026-11-20T14:01:40+01:00"}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"One image (JPEG, PNG, WebP, GIF, HEIC) or video (MP4, MOV)."},"alt_text":{"type":"string","maxLength":2000,"description":"What the picture shows, for people who cannot see it."}}}}}}}},"/v1/media/from-url":{"post":{"tags":["Media"],"summary":"Add a file from a web address","description":"We fetch one image or video and store it. Only https addresses anyone\non the internet can open: nothing behind a sign-in or on a private\nnetwork (`unsafe_url`). A key can fetch 60 files an hour. Large videos\ncan take longer than a request allows; upload those instead.","operationId":"add_media_from_url","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaFromUrl"}}},"required":true},"responses":{"201":{"description":"The stored file, with its id for a post's `media_ids`.","content":{"application/json":{"schema":{},"example":{"media":{"id":"0193a409-1f6b-7a90-a3d2-5e7c8b9a0d47","kind":"image","content_type":"image/png","size_bytes":48211,"width":1080,"height":1080,"alt_text":"The winter list as a poster","name":"poster.png","created_at":"2026-11-20T14:01:40+01:00"}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}},"security":[{"API key":[]}]}},"/v1/media/{media_id}":{"patch":{"tags":["Media"],"summary":"Describe a media file","description":"Sets the alt text. It goes out with every post that uses the file, on\nthe platforms that have alt text.","operationId":"update_media","security":[{"API key":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Media Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUpdate"}}}},"responses":{"200":{"description":"The file with its new description.","content":{"application/json":{"schema":{},"example":{"media":{"id":"0193a409-1f6b-7a90-a3d2-5e7c8b9a0d47","kind":"image","content_type":"image/png","size_bytes":48211,"width":1080,"height":1080,"alt_text":"The winter list as a poster","name":"poster.png","created_at":"2026-11-20T14:01:40+01:00"}}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/ideas":{"get":{"tags":["Ideas"],"summary":"The workspace's backlog of things worth posting about","description":"An idea is not a post: nothing in it is scheduled or goes out. A\nperson, or you, writes a post from it by sending its id as `idea_id`\nto `POST /v1/posts`.","operationId":"list_ideas","security":[{"API key":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","used","dropped"],"type":"string"},{"type":"null"}],"description":"`open` (waiting to be written), `used` or `dropped`.","default":"open","title":"State"},"description":"`open` (waiting to be written), `used` or `dropped`."},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only ideas for this brand.","title":"Brand Id"},"description":"Only ideas for this brand."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"A page of ideas, newest first.","content":{"application/json":{"schema":{}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}},"post":{"tags":["Ideas"],"summary":"Put an idea in the backlog","description":"Nothing is written, scheduled or charged. The idea shows under Ideas\nin the app for a person to pick from.","operationId":"add_idea","security":[{"API key":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaCreate"}}}},"responses":{"201":{"description":"The idea.","content":{"application/json":{"schema":{}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/ideas/{idea_id}":{"patch":{"tags":["Ideas"],"summary":"Change an idea","description":"Send only what should change. Writing a post from an idea marks it\nused by itself; `state` is for dropping one or opening it again.","operationId":"update_idea","security":[{"API key":[]}],"parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Idea Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaUpdate"}}}},"responses":{"200":{"description":"The idea as it is now.","content":{"application/json":{"schema":{}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"403":{"description":"The key can only read and this changes something.","content":{"application/json":{"example":{"error":{"code":"insufficient_scope","required":"posts:write","message":"This key can only read. Make a key that can read and write under Settings, API keys, in the app."}}}}},"404":{"description":"Nothing with that id in the key's workspace.","content":{"application/json":{"example":{"error":{"code":"not_found","message":"No such post in this workspace."}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}},"/v1/snippets":{"get":{"tags":["Ideas"],"summary":"The pieces of text the workspace saved to put into posts","description":"Use a saved snippet word for word where a post should carry one.\nSnippets are changed in the app, not here.","operationId":"list_snippets","security":[{"API key":[]}],"parameters":[{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only this brand's and the ones for every brand.","title":"Brand Id"},"description":"Only this brand's and the ones for every brand."}],"responses":{"200":{"description":"The snippets: hashtag groups, sign-offs, standard link lines.","content":{"application/json":{"schema":{}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/results":{"get":{"tags":["Results"],"summary":"How the posts that went out are doing","description":"Each post carries `results`: `metrics` holds the numbers its platform\ngave, by the names in `metrics` at the top, and `state` says where the\nreading stands (`waiting`, `reading`, `done`, `gone`, `closed`,\n`unreadable`). A number that is not in `metrics` is not known; it is not\nzero. A number means what its platform means by it, so totals are given\nper account and per platform and never across platforms. Accounts on a\nplatform whose numbers cannot be read have `readable: false` and a\n`note` that says so. The numbers are read on a clock, most often in a\npost's first two days; this endpoint asks no platform and costs no\ncredits. A platform with `on_demand: true` is not read on a clock: a\nperson loads its numbers in the app, for credits, and the API has no\nendpoint for that. There `state` is `unloaded` or `loaded`, and\n`read_at` says how old the numbers are. Each account and platform has\n`before`: the posts that went out in the period of the same length just\nbefore, their totals as last read, and `change` for each number both\nperiods have. Each account that can be read has `best_times`: the\nweekdays and hours its own posts did best so far, or a `note` saying\nthere are too few posts to say.","operationId":"get_results","security":[{"API key":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","description":"The posts that went out in the last `7`, `30` or `90` days.","default":30,"title":"Days"},"description":"The posts that went out in the last `7`, `30` or `90` days."},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"With `to`, in place of `days`: the first day of a period of chosen dates, as `YYYY-MM-DD` on the workspace's clock. At most 366 days, and not after today.","title":"From"},"description":"With `to`, in place of `days`: the first day of a period of chosen dates, as `YYYY-MM-DD` on the workspace's clock. At most 366 days, and not after today."},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The last day of that period.","title":"To"},"description":"The last day of that period."},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only what went out on this account.","title":"Account Id"},"description":"Only what went out on this account."},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only the accounts of this brand.","title":"Brand Id"},"description":"Only the accounts of this brand."},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"Only this platform, such as `bluesky`.","title":"Platform"},"description":"Only this platform, such as `bluesky`."},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":48},{"type":"null"}],"description":"Only this kind of post, as `platform:format` (`youtube:short`). `kinds` in the answer lists them.","title":"Kind"},"description":"Only this kind of post, as `platform:format` (`youtube:short`). `kinds` in the answer lists them."},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"Only posts that carry this tag.","title":"Tag"},"description":"Only posts that carry this tag."},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"enum":["views","likes","comments","shares","saves","clicks","newest"],"type":"string"},{"type":"null"}],"description":"Rank the posts by this number, highest first. Without it, or with `newest`: by when they went out.","title":"Sort"},"description":"Rank the posts by this number, highest first. Without it, or with `newest`: by when they went out."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"How many posts to list. The totals cover all of them.","default":20,"title":"Limit"},"description":"How many posts to list. The totals cover all of them."}],"responses":{"200":{"description":"The posts of the period with their latest numbers, and totals per account and platform.","content":{"application/json":{"schema":{},"example":{"period":{"days":30,"from":"2026-10-21T14:02:11+02:00","to":"2026-11-20T14:02:11+01:00"},"metrics":[{"key":"views","name":"Views"},{"key":"likes","name":"Likes"},{"key":"comments","name":"Comments"},{"key":"shares","name":"Shares"},{"key":"saves","name":"Saves"},{"key":"clicks","name":"Clicks"}],"sort":"likes","published":2,"platforms":[{"platform":"bluesky","name":"Bluesky","readable":true,"metrics":["likes","comments","shares","saves"],"names":{"likes":"Likes","comments":"Replies","shares":"Reposts and quotes","saves":"Bookmarks","followers":"Followers"},"followers":true,"published":1,"read":1,"totals":{"likes":41,"comments":3,"shares":7,"saves":2}},{"platform":"linkedin","name":"LinkedIn","readable":false,"metrics":[],"names":{},"followers":false,"note":"Keep 'em Posted cannot read results from LinkedIn","published":1,"read":0,"totals":{}}],"accounts":[{"id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e12","platform":"bluesky","platform_name":"Bluesky","handle":"acme.bsky.social","display_name":"Acme","status":"active","readable":true,"metrics":["likes","comments","shares","saves"],"names":{"likes":"Likes","comments":"Replies","shares":"Reposts and quotes","saves":"Bookmarks","followers":"Followers"},"published":1,"read":1,"totals":{"likes":41,"comments":3,"shares":7,"saves":2},"followers":{"name":"Followers","latest":1204,"change":31,"series":[{"day":"2026-11-19","followers":1173},{"day":"2026-11-20","followers":1204}]}}],"kinds":[{"key":"bluesky:post","name":"Bluesky: Post"}],"posts":[{"delivery_id":"0193a40b-52c1-7e02-b1f7-6a8e4d2c9b35","post_id":"0193a40b-52aa-7d10-8a44-0c5d9e7f1a23","account_id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e12","platform":"bluesky","kind":"bluesky:post","kind_name":"Bluesky: Post","text":"The winter list is out.","text_cut":false,"tags":["launch"],"published_at":"2026-11-18T09:00:04+01:00","published_at_text":"Wed 18 Nov 2026 09:00 (Europe/Copenhagen)","external_url":"https://bsky.app/profile/acme.bsky.social/post/3lb2x","results":{"state":"reading","metrics":{"likes":41,"comments":3,"shares":7,"saves":2},"labels":{"likes":"Likes","comments":"Replies","shares":"Reposts and quotes","saves":"Bookmarks"},"read_at":"2026-11-20T13:41:00+01:00"}}],"more":false,"reading":"A number means what its platform means by it: a view on YouTube is not a like on Bluesky, so compare posts on the same platform and never add different platforms' numbers together. A number that is not there is not known; it is not zero."}}}},"401":{"description":"The key is missing, or it does not work: unknown, removed or expired.","content":{"application/json":{"example":{"error":{"code":"invalid_key","message":"This API key does not work. It may have been removed or have expired."}}}}},"429":{"description":"The key made more than 120 requests in a minute. Retry-After says how many seconds to wait.","content":{"application/json":{"example":{"error":{"code":"rate_limited","message":"Too many requests. Try again in 23 seconds.","retry_after":23}}}}},"422":{"description":"The request does not fit: a field is wrong, or the platform will not take the content.","content":{"application/json":{"example":{"error":{"code":"not_sendable","message":"The text is 3,412 characters and LinkedIn takes 3,000","issues":[{"code":"text_too_long","message":"The text is 3,412 characters and LinkedIn takes 3,000"}]}}}}}}}}},"components":{"schemas":{"DeliveryUpdate":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Text","description":"This account's own wording, instead of the post's text. Leave out to keep what it has."},"use_post_text":{"type":"boolean","title":"Use Post Text","description":"true drops this account's own wording and uses the post's text.","default":false},"first_comment":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"First Comment","description":"The first comment. An empty string removes it. Leave out to keep it."},"format":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Format","description":"The kind of post, a `key` from the account's `formats`. Leave out to keep it."},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options","description":"The format's title and choices; replaces the ones it has."}},"additionalProperties":false,"type":"object","title":"DeliveryUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdeaCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title","description":"The idea in one line: what the post would be about."},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Notes","description":"What makes it worth posting: the angle, a source, a link."},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id","description":"The brand it is for, from `GET /v1/brands`. Leave out for none."},"media_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10},{"type":"null"}],"title":"Media Ids","description":"Files that go with it."}},"additionalProperties":false,"type":"object","required":["title"],"title":"IdeaCreate"},"IdeaUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title","description":"The new line. Leave out to keep it."},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Notes","description":"The new notes; an empty string removes them."},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id","description":"The brand it is for. Leave out to keep it."},"no_brand":{"type":"boolean","title":"No Brand","description":"true takes the idea out of its brand.","default":false},"state":{"anyOf":[{"type":"string","enum":["open","used","dropped"]},{"type":"null"}],"title":"State","description":"`open`, `used` or `dropped`."},"media_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10},{"type":"null"}],"title":"Media Ids","description":"The idea's files, all of them: this replaces the list."}},"additionalProperties":false,"type":"object","title":"IdeaUpdate"},"MediaFromUrl":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":1,"title":"Url","description":"A public https address of one image (JPEG, PNG, WebP, GIF, HEIC) or video (MP4, MOV).","examples":["https://example.com/poster.png"]},"alt_text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Alt Text","description":"What the picture shows, for people who cannot see it."}},"additionalProperties":false,"type":"object","required":["url"],"title":"MediaFromUrl"},"MediaUpdate":{"properties":{"alt_text":{"type":"string","maxLength":2000,"title":"Alt Text","description":"What the picture shows, for people who cannot see it. An empty string removes it."}},"additionalProperties":false,"type":"object","required":["alt_text"],"title":"MediaUpdate"},"NoteCreate":{"properties":{"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text","description":"What the people of the workspace should know about this post. Plain text. `@` and a member's name emails that person about it.","examples":["Written from the price list of 20 November."]}},"additionalProperties":false,"type":"object","required":["text"],"title":"NoteCreate"},"PostAccount":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id","description":"An account's `id` from `GET /v1/accounts`.","examples":["0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11"]},"text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Text","description":"This account's own wording. Leave out to use the post's text."},"first_comment":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"First Comment","description":"Posted as a comment under the post once it is out, where the platform has first comments."},"format":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Format","description":"The kind of post on this account's platform: a `key` from the account's `formats` (on Instagram: `post`, `reel` or `story`). Leave out and the platform decides from the media.","examples":["reel"]},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options","description":"What that kind of post asks for besides text and media, by the keys in its format: `title` where the format has one, and each of its choices. A choice of kind `date` is written `\"2026-12-24\"` and one of kind `datetime` `\"2026-12-24T18:30\"`, as the place itself reads its clock, with no zone. Where the format lists ways under `cover`, a video can get one: `{\"cover\": {\"media_id\": \"<an uploaded picture's id>\"}}` for a picture, or `{\"cover\": {\"offset_ms\": 1500}}` for a moment of the video. Where the format has `parts` (a thread on X, a series of posts on Threads), the delivery's text and the post's media are the first part and the parts after it go here in order: `{\"thread\": [{\"text\": \"The second part\"}, {\"text\": \"The third\", \"media_ids\": [\"<an uploaded file's id>\"]}]}`. Each part has text, files or both.","examples":[{"title":"How we print the winter list"}]}},"additionalProperties":false,"type":"object","required":["account_id"],"title":"PostAccount"},"PostCreate":{"properties":{"text":{"type":"string","maxLength":20000,"title":"Text","description":"What every account says unless it gets its own text.","default":""},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title","description":"A note for the people in the workspace. Never published. A title a platform shows (a YouTube video's) goes in that account's `options`."},"media_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20},{"type":"null"}],"title":"Media Ids","description":"Files from `GET /v1/media`, `POST /v1/media` or `POST /v1/media/from-url`, in the order they should appear."},"accounts":{"items":{"$ref":"#/components/schemas/PostAccount"},"type":"array","maxItems":50,"minItems":1,"title":"Accounts","description":"Where it goes. Each account becomes a delivery of its own."},"schedule_at":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Schedule At","description":"When it should go out. Leave out to create drafts. ISO 8601 with an offset (`2026-11-24T09:00:00+01:00`), or without one (`2026-11-24T09:00`) to mean the workspace's time zone. `next_free` gives the account's next free posting time, as the person set them in the app. To send at once give the time it is now; a time more than five minutes in the past is refused with `time_passed`. Where the workspace asks for approval, a delivery scheduled for now waits for approval and goes out as soon as it is approved."},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Tags","description":"Words the workspace sorts its posts by, such as a campaign. Never published. A new word makes a new tag."},"idea_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Idea Id","description":"The idea from `GET /v1/ideas` this post is written from. The idea is then marked as used."}},"additionalProperties":false,"type":"object","required":["accounts"],"title":"PostCreate","examples":[{"accounts":[{"account_id":"0193a3f2-7c1e-7b54-9d0a-3f2b6c1d8e11"},{"account_id":"0193a3f2-9b20-7f11-a6c3-8d1e2f3a4b59","text":"Winter list: out now."}],"schedule_at":"next_free","text":"The winter list is out."}]},"PostUpdate":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Text","description":"The new text. Leave out to keep it."},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title","description":"The new note for the workspace. Never published."},"media_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20},{"type":"null"}],"title":"Media Ids","description":"The post's files, all of them, in order: this replaces the list. An empty list removes them. Leave out to keep them."},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Tags","description":"The post's tags, all of them: this replaces the list. An empty list removes them. Leave out to keep them. Tags can be changed on a post that is already scheduled or out."}},"additionalProperties":false,"type":"object","title":"PostUpdate"},"RescheduleIn":{"properties":{"schedule_at":{"type":"string","maxLength":40,"title":"Schedule At","description":"The new time. ISO 8601 with an offset (`2026-11-24T09:00:00+01:00`), or without one (`2026-11-24T09:00`) to mean the workspace's time zone. `next_free` gives the account's next free posting time, as the person set them in the app. To send at once give the time it is now; a time more than five minutes in the past is refused with `time_passed`. Where the workspace asks for approval, a delivery scheduled for now waits for approval and goes out as soon as it is approved.","examples":["2026-11-25T08:30:00+01:00"]}},"additionalProperties":false,"type":"object","required":["schedule_at"],"title":"RescheduleIn"},"ScheduleIn":{"properties":{"schedule_at":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Schedule At","description":"When it should go out. Leave out only for a delivery that already had a time (after unschedule) to keep that time. ISO 8601 with an offset (`2026-11-24T09:00:00+01:00`), or without one (`2026-11-24T09:00`) to mean the workspace's time zone. `next_free` gives the account's next free posting time, as the person set them in the app. To send at once give the time it is now; a time more than five minutes in the past is refused with `time_passed`. Where the workspace asks for approval, a delivery scheduled for now waits for approval and goes out as soon as it is approved.","examples":["2026-11-24T09:00:00+01:00"]}},"additionalProperties":false,"type":"object","title":"ScheduleIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"API key":{"type":"http","description":"An API key from Settings, API keys, in the app. Send it as `Authorization: Bearer kep_live_...`.","scheme":"bearer","bearerFormat":"kep_live_..."}}},"tags":[{"name":"Workspace","description":"The workspace a key belongs to, its approval rule and its credits."},{"name":"Accounts","description":"The connected social accounts, what each platform takes, and the brands."},{"name":"Posts","description":"Writing, reading, changing and deleting posts."},{"name":"Deliveries","description":"A post going to one account: its wording and its time."},{"name":"Media","description":"The images and videos posts use."},{"name":"Results","description":"How the posts that went out are doing, as the platforms that let us read it say."}]}