API
Last updated 23 November 2026
The API lets your own script, or an automation tool such as Zapier, Make or n8n, write posts in Keep ’em Posted and put them in your queue: from a spreadsheet, a new product in your shop, a row in a database, whatever you already have. It is plain HTTP with JSON and one key in a header.
https://api.keepemposted.com/v1
If you use an AI app such as Claude or ChatGPT you do not need any of this: Connect your AI gets you there with one address and no code. The API and an AI app work on the same posts, under the same rules.
1. Make a key
- In the app, open Settings and find API keys. Owners and admins of the workspace see it.
- Choose Make an API key and say what will use it, for example Zapier. The name is for you.
- Say what it may do: read, and write and schedule posts, or only read. A key that only reads sees the accounts, the posts and the credits and changes nothing.
- Say how long it should work: until someone removes it, or 30 days, 90 days or a year.
- Copy the key. It starts with
kep_live_and is shown once. We keep only a fingerprint of it, so nobody can look it up later, not even us. If it gets lost, remove it and make a new one.
A key works in one workspace, the one it was made in. It belongs to the workspace, not to the person who made it: it keeps working if that person leaves, until an owner or an admin removes it. A workspace can have 25 keys. Give each tool its own, so you can remove one without stopping the others.
2. Authentication
Send the key with every request in the Authorization header. Start with the workspace: it tells you the key works, which workspace it is for, and the approval rule.
curl https://api.keepemposted.com/v1/workspace \ -H "Authorization: Bearer $KEP_KEY"
{
"workspace": { "name": "Acme", "slug": "acme", "timezone": "Europe/Copenhagen" },
"now": "2026-11-20T19:06:51+01:00",
"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."
},
"key": { "name": "Zapier", "scopes": ["posts:read", "posts:write"], "expires_at": null },
"credits": { "balance": 300, "paid_balance": 0, "committed": 40 }
}Without a key the answer is 401 with the code unauthorized. A key that has been removed or has expired, or one we do not know, answers 401 with invalid_key. A key that only reads answers 403 with insufficient_scope when you try to change something.
Treat the key like a password. Keep it out of code that others can read and out of web pages: the API is made to be called from a server or an automation tool, not from a browser.
3. Posts and deliveries
A post is what was written. It goes to each account as a delivery, and every delivery has its own status, its own time and, when a platform needs other wording, its own text. One post to three accounts is one post with three deliveries.
draft: no time yet. Nothing goes out.pending_approval: it waits for a person to approve it in the app. It has its time, or none when it was scheduled for now (on_approvalis true andscheduled_atis null): then it goes out as soon as it is approved.scheduled: it goes out at its time. One that set out and has to be looked at again (its platform is still working on the file, or a try did not get through) staysscheduledwithon_its_way: whether the platform is working on it, when we look next, andcan_stop, which is false once the platform has all of it. Then it cannot be cancelled, moved or taken back to a draft (with_platform).publishing: it is going out right now.published: it is out.external_urlis where. One kind of post ends somewhere else: a format withhandover(on TikTok, a video or photos to finish in TikTok) goes to the account’s inbox there as a draft. Thenhanded_oversays where it is and what the person does next, and there is noexternal_urland there are no results.failed: it did not go out, or we cannot tell. A person decides in the app whether to send it again.canceled: it was stopped and does not go out.
Only published means a post is out. Every delivery also has standing: the same in a sentence, ready to show a person.
Times are ISO 8601 with an offset, such as 2026-11-24T09:00:00+01:00. A time without an offset is read in the workspace’s time zone. Times come back with the workspace’s offset. Instead of a time you can send next_free: the account’s next free posting time, from the weekly posting times a person set for it in the app.
A post can carry tags: words the workspace sorts its posts by, such as a campaign. They are never published, and GET /v1/posts?tag= finds posts by one. The workspace also keeps a backlog of ideas: GET /v1/ideas lists them, POST /v1/ideas adds one for a person to pick from, and a post made with an idea_id marks that idea as used. GET /v1/snippets gives the pieces of text the workspace saved for its posts, such as hashtag groups.
A post also carries notes: what the people of the workspace, and scripts and AI apps, say to each other about it. They are never published. GET /v1/posts/{id} returns them oldest first, each with its author, and POST /v1/posts/{id}/notes adds one, signed with the key’s name. Use a note to say why a post was written the way it was, and read the notes of a post that came back to a draft: the reason is usually there. @ and a member’s name emails that person. A note cannot be changed afterwards.
A thread on X is a kind of post of its own: format: "thread", where the account’s formats list it with parts, the number of parts that may follow the first. The delivery’s text and the post’s media are the first part. The parts after it go in the delivery’s options, in order: {"thread": [{"text": "The second part"}, {"text": "The third", "media_ids": ["<a file’s id>"]}]}. Each part has text, files or both, within the limits of a post on X, and a thread has at least one such part. It costs credits for each part, by that part’s own text (per_part on the format). The delivery is published as its first part: its external_url and its results are that post’s. If X stops a thread halfway, the delivery fails with thread_incomplete and says how far it got; a person sends the rest again in the app, and such a delivery cannot go back to a draft (partly_out, 409). On Threads the same kind is format: "series", a series of posts, and it works the same way.
Once a delivery is out it carries results: the numbers its platform counts for it, such as views, likes, comments, shares, saves and clicks. GET /v1/results gives them for every post that went out in the last 7, 30 or 90 days, ranked by the number you choose, with totals for each account and each platform and each account’s followers. A number that is not there is not known, which is not the same as zero. A number means what its platform means by it, so compare posts on one platform and do not add platforms together. Not every platform lets us read its numbers: an account on one that does not has readable: false and a note that says so. Reading results costs no credits. A platform that charges us for every read has on_demand: true: its numbers are loaded by a person in the app, and read_at says how old they are. The API reads what was loaded and has no endpoint that loads. In place of the last 7, 30 or 90 days, from and to (two days as YYYY-MM-DD on the workspace’s clock, at most 366 days) give a period of your own. Each account and platform carries before: the posts that went out in the period of the same length just before, their totals, and change for each number both periods have. Read a change beside the two counts of posts, since more posts is not the same as posts doing better. Each account that can be read also carries best_times: the weekdays and hours its own posts did best so far, from the last 90 days, or a note saying there are too few posts to say. It is what happened, not a forecast.
4. Approval: your key schedules, a person approves
This is the part people get wrong, so here it is plainly. Your key schedules, a person approves, unless the workspace says otherwise.
Every workspace has an approval rule, under Settings in the app. A key is treated as an AI agent is, never as a person:
- What an AI agent or an API key makes waits for a person (
agents, the rule a new workspace starts with). What your key schedules gets its time and then waits aspending_approval. It goes out at that time only if a person has approved it in the app by then. If the time passes first, it keeps waiting, and the person who approves it chooses to post it now or give it a new time. Scheduled for now (the time it is now asschedule_at), it waits for approval and goes out as soon as it is approved: it has no time, andresultsays so. - Everything waits for approval (
everyone). The same for your key. - Nothing waits (
none). What your key schedules isscheduledand goes out at its time with nobody in between.
So a 201 from the API does not mean the post will go out. Read the status of each delivery in the answer, or result, which says in words what happened. GET /v1/workspace tells you the rule before you start.
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. If you want what your scripts schedule to go straight out, an owner or an admin changes the approval rule to Nothing waits. That counts for every key and every AI app in the workspace.
Content is locked while a delivery is waiting for approval, scheduled, going out or out: what a person approved is what goes out. To change it, take the delivery back to a draft with unschedule, change it, and schedule it again. The approval is gone with it.
5. Credits
A delivery costs credits when it goes out, not when it is created or scheduled. The price depends on the platform and the kind of post: GET /v1/accounts lists each account’s kinds of post with their price, and every delivery in an answer carries its credits. GET /v1/credits says what the workspace has and what the deliveries already planned will cost.
Scheduling is never refused for lack of credits. A delivery that is due and cannot be paid for is not sent and does not fail: it stays scheduled, says why in error_code (out_of_credits, needs_paid_credits or over_cap) and goes out when there are credits. A key cannot buy or add credits.
6. Rate limits
Each key can make 120 requests a minute. Every answer says where you stand in three headers: RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset, the seconds until the count starts again. Past the limit the answer is 429 with the code rate_limited and a Retry-After header with the seconds to wait. Nothing was done; send the request again after that. Adding files from a web address has its own limit of 60 an hour for each key.
7. Errors
Every error has the same shape: a code that does not change, for your script to act on, and a message in English for a person to read. Some carry more.
{
"error": {
"code": "post_locked",
"message": "This post has a scheduled delivery. Take it back to a draft before changing the post.",
"current": "scheduled"
}
}unauthorized,invalid_key(401): no key, or a key that does not work.insufficient_scope(403): the key can only read.not_found(404): nothing with that id in the key’s workspace, or no such endpoint.invalid_request(422): the request does not fit.fieldslists each field that is wrong and why. A field we do not know is an error too, so a misspelt one is not silently ignored.invalid_time,time_passed,time_required(422): the time could not be read, is more than five minutes in the past, or is missing.not_sendable(422): the platform will not take the content as it is.issueslists what is wrong, in the words the app shows a person: a text that is too long, a picture that is missing.no_posting_times(422): you asked fornext_freeand the account has no posting times.account_not_found,media_not_found,format_unknown(422): an id or a kind of post in the request that this workspace does not have.post_locked,wrong_status,partly_out(409): the post or the delivery is not in a state that allows this.currentis the status that stands in the way.publishing_now,already_published(409): too late to cancel.rate_limited(429): see section 6.unsupported_media_type(415),file_too_large(413),unreadable_media,unsafe_url(422),fetch_failed(502): a file we could not take, or could not fetch from the address you gave.internal_error(500): our fault. Try again in a moment.
When you create a post with a time for several accounts, one account’s problem does not stop the others. The answer is still 201: the deliveries that could be scheduled are, and the ones that could not stay drafts and are listed in not_scheduled with the reason and their issues.
A delivery also carries advice: what is worth knowing about its content and does not stop it, in the same shape as an issue (code, message). Google, for one, may reject a post with a phone number in its text. Only issues keeps a delivery from being scheduled: a delivery with advice and no issues goes out as it is, so pass the advice on to a person or change the content.
8. Idempotency: no post twice
Networks drop answers. If your script creates a post and never hears back, it cannot know whether the post was made, and sending the request again could make it twice. So send an Idempotency-Key header when you create a post: any string of 8 to 80 characters that you make up for that one post, such as the id of the row it came from.
The first request with a key creates the post and answers 201. Any later request with the same key answers 200 with the post that was already made and already_created: true, and writes nothing. The body of the repeat is not compared with the first, so use a new key for a new post. Keys are per workspace and do not expire.
9. Three examples
Put your key in a variable first, so it stays out of your shell history: export KEP_KEY=kep_live_.... Every post needs an account id; get yours from the accounts list.
curl https://api.keepemposted.com/v1/accounts \ -H "Authorization: Bearer $KEP_KEY"
Each account comes with its id, its platform and handle, its brand and voice, the kinds of post it has with their limits and prices, its posting times and its next_free_at.
Create a draft
Leave out schedule_at and the post is a draft: it is in the app for a person to finish, and nothing goes out.
curl https://api.keepemposted.com/v1/posts \
-H "Authorization: Bearer $KEP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: winter-list-draft-1" \
-d '{
"text": "The winter list is out.",
"accounts": [{ "account_id": "01a1f844-1149-70f5-8511-b435968bc4ea" }]
}'The answer is 201 with the post and its one delivery, shortened here:
{
"post": {
"id": "01a1fa23-f944-73a4-b1d0-0ff95b9142bf",
"text": "The winter list is out.",
"source": "api",
"deliveries": [
{
"id": "01a1fa23-f946-7379-b703-1820ba716f8d",
"account": { "platform": "bluesky", "handle": "@acme.bsky.social" },
"status": "draft",
"scheduled_at": null,
"issues": [],
"advice": [],
"credits": 10,
"standing": "a draft: it has no time and does not go out until it is scheduled"
}
]
},
"result": [
{
"delivery_id": "01a1fa23-f946-7379-b703-1820ba716f8d",
"account": "@acme.bsky.social",
"status": "draft",
"standing": "a draft: it has no time and does not go out until it is scheduled",
"credits": 10
}
]
}Schedule a post to two accounts at their next free time
With schedule_at next_free each account gets its own next free posting time, so the two deliveries can go out at different times. The second account gets its own wording here; the first uses the post’s text.
curl https://api.keepemposted.com/v1/posts \
-H "Authorization: Bearer $KEP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: winter-list-2026-11-20" \
-d '{
"text": "The winter list is out. Six new roasts, in the shop from Monday.",
"schedule_at": "next_free",
"accounts": [
{ "account_id": "01a1f844-1149-70f5-8511-b435968bc4ea" },
{ "account_id": "01a1f844-1149-70f5-8511-b4340a204bad",
"text": "Our winter list is out: six new roasts, in the shop from Monday." }
]
}'The answer is 201. With the approval rule a workspace starts with, both deliveries have their time and wait for a person, and result says so:
"result": [
{
"delivery_id": "01a1fa24-272d-73d3-87ce-55a134366ab2",
"account": "@acme.bsky.social",
"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": 10
},
{
"delivery_id": "01a1fa24-272e-7536-ad10-02fc77cdc17c",
"account": "Acme Coffee Roasters",
"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": 10
}
]With the rule at Nothing waits, the status is scheduled instead. An account without posting times stays a draft and is listed in not_scheduled with the code no_posting_times; give that delivery a time with POST /v1/deliveries/{id}/schedule.
Upload a picture and post it
Upload the file as a form, in a field named file. The description in alt_text is for people who cannot see the picture.
curl https://api.keepemposted.com/v1/media \ -H "Authorization: Bearer $KEP_KEY" \ -F "file=@poster.png" \ -F "alt_text=The winter list as a poster"
{
"media": {
"id": "01a1fa24-27ab-7723-b25e-02088d1a3e6d",
"kind": "image",
"content_type": "image/png",
"size_bytes": 5896,
"width": 1080,
"height": 1080,
"duration_ms": null,
"alt_text": "The winter list as a poster",
"name": "poster.png",
"created_at": "2026-11-20T19:07:15+01:00"
}
}Then use the file’s id in a post. This one has a time of its own:
curl https://api.keepemposted.com/v1/posts \
-H "Authorization: Bearer $KEP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: winter-poster-2026-11-20" \
-d '{
"text": "The winter list, as a poster.",
"media_ids": ["01a1fa24-27ab-7723-b25e-02088d1a3e6d"],
"schedule_at": "2026-11-24T09:00:00+01:00",
"accounts": [{ "account_id": "01a1f844-1149-70f5-8511-b435968bc4ea" }]
}'The answer is 201 with the post, the file in media, and the delivery at 2026-11-24T09:00:00+01:00, waiting for approval or scheduled as the workspace’s rule says. If the picture is already on the web, POST /v1/media/from-url with {"url": "https://..."} fetches it instead; the address has to be https and open to anyone.
The same steps as files you can run, in curl, Python, JavaScript and PHP with nothing to install, are on GitHub: keepemposted/examples. They list your accounts, write and schedule a post, post a picture from a web address, show what waits for approval and read the results.
10. Zapier, Make and n8n
Keep ’em Posted has no app of its own in these tools. Each of them has a general step that calls any HTTP API, and that is all you need. In every one of them the request is the same:
- Method:
POST - URL:
https://api.keepemposted.com/v1/posts - Header
Authorization:Bearer, a space, then your key - Header
Content-Type:application/json - Header
Idempotency-Key: something that is unique for the thing that set the step off, such as the id of the row or the order - Body: JSON, like this, with the text mapped from the earlier step
{
"text": "The winter list is out.",
"schedule_at": "next_free",
"accounts": [{ "account_id": "an account id from /v1/accounts" }]
}Zapier
Add an action and choose Webhooks by Zapier, then the event Custom Request. Fill in the method and the URL, paste the JSON body into Data, and add the three headers under Headers. Webhooks by Zapier is one of Zapier’s premium apps, so it needs a paid Zapier plan.
Make
Add the HTTP app and choose the module Make a request. Fill in the URL and the method, add the headers, set Body type to Raw and Content type to JSON (application/json), and paste the body into Request content. Switch on Parse response to use the answer, such as the post’s id, in later modules.
n8n
Add an HTTP Request node. Set the method and the URL. Under Authentication choose Generic Credential Type, then Header Auth, and make a credential with the name Authorization and the value Bearer, a space, then your key: that keeps the key out of the workflow itself. Switch on Send Headers for Idempotency-Key, switch on Send Body, choose JSON and paste the body.
These tools move their menus now and then. If a step looks different, look for the step that makes a custom HTTP request. When a tool tries a failed step again, the Idempotency-Key is what keeps the post from being made twice, so do not leave it out.
11. Every endpoint
GET /v1/workspace: the workspace, its time zone, its approval rule and its credits.GET /v1/credits: the balance, what is spoken for, this month’s spending and the cap.GET /v1/accounts: the connected accounts with their kinds of post, limits, prices, posting times, brand and voice.GET /v1/brands: the brands and how each one speaks.GET /v1/posts: posts, newest first, by status, account or time, a page at a time.POST /v1/posts: write a post and send it to one or more accounts, as drafts or with a time.GET /v1/posts/{id}: one post with its deliveries and what stands in their way.PATCH /v1/posts/{id}: change its text, title or media.DELETE /v1/posts/{id}: delete it, while it could still be changed.POST /v1/posts/{id}/duplicate: a copy, as drafts.POST /v1/posts/{id}/deliveries: send it to one more account.POST /v1/posts/{id}/notes: leave a note on it for the people of the workspace.PATCH /v1/deliveries/{id}: give one account its own wording, first comment or kind of post.POST /v1/deliveries/{id}/schedule: give a draft its time.POST /v1/deliveries/{id}/reschedule: move its time.POST /v1/deliveries/{id}/unschedule: back to a draft, to change it.POST /v1/deliveries/{id}/cancel: stop it for good.GET /v1/media: the workspace’s images and videos.POST /v1/media: upload a file.POST /v1/media/from-url: add a file from a public https address.PATCH /v1/media/{id}: write a file’s description (alt text).GET /v1/results: how the posts that went out are doing, where the platform lets us read it.
Lists come a page at a time: when there is more, the answer has a next_cursor to send as cursor for the next page. Every field of every request and answer is in the OpenAPI document, which most tools can import:
https://api.keepemposted.com/v1/openapi.json
12. What a key can never do
- Approve a post. When your workspace asks for approval, only a person can say yes, in the app.
- Send a failed post again. After a failure the post may already be out, so a person checks and decides, in the app.
- Change a post that is waiting for approval, scheduled or out, without first taking it back to a draft.
- Connect or remove social accounts, see their tokens, or change a brand’s voice or an account’s posting times.
- See or touch another workspace, the workspace’s settings, its members or its billing.
13. Remove a key
In the app, open Settings and find API keys. Each key is listed with its name, what it may do, who made it and when it was last used. Remove ends it at once: the next request with it is refused. Remove a key as soon as you think someone else may have seen it, and make a new one. Posts a key wrote stay as they are.
You are responsible for what your keys do; that is in the terms. How we store keys is in the privacy policy. Questions: the contact page.