One workspace, over HTTP
Read and write the queue, the connected accounts, the competitors you track and every metric collected for you. Everything is JSON, every list is cursor-paged, and every error carries a stable code you can branch on. Signed webhooks tell your server when a post goes live, fails or needs approval.
Quick reference
Base URL
https://crestnote.com/api/v1Authentication
Authorization: Bearer $TOKENContents
- Getting started
- Every call
- Before you ship
- Endpoints
- GET /me
- GET /accounts
- GET /posts
- POST /posts
- GET /posts/{id}
- PATCH /posts/{id}
- DELETE /posts/{id}
- POST /posts/{id}/repeat
- DELETE /posts/{id}/repeat
- GET /free-slots
- GET /rivals
- GET /rivals/posts
- POST /rivals
- DELETE /rivals/{id}
- GET /comments
- POST /comments/{id}/reply
- POST /comments/{id}/hide
- GET /analytics
- GET /analytics/worth-promoting
- GET /analytics/hashtags
- GET /analytics/best-times
- GET /analytics/replies
- GET /instagram-audio
- GET /media
- POST /media
- POST /media/register
- POST /media/import
- GET /links
- POST /links
- GET /links/{id}/stats
- GET /brand
- GET /labels
- GET /snippets
- GET /platform-limits
- POST /webhooks
- DELETE /webhooks/{id}
- GET /webhooks/samples
- MCP server
- Webhooks
Getting started
Mint a token at Settings, API inside the product, then ask the API what it can see. If this returns your accounts, everything else on this page will work.
curl -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/accounts
Every response is JSON. Success and failure are distinguishable by shape alone: a failure has a top-level error object and a success never does, so a client can write if ('error' in body) and never consult a status code. That matters more than it sounds, because a proxy or a corporate middlebox can rewrite a status and none of them rewrites a body.
GET https://crestnote.com/api/v1 with no token returns the list of endpoints, so you can check the base URL is right before you have a credential.
What every call obeys
Authentication
A bearer token, in a header. Nothing else is accepted, and in particular there is no ?token= query parameter: a credential in a URL lands in every access log, every proxy and every browser history between you and us, and the convenience of putting it there is exactly why people do it by accident.
Authorization: Bearer sk_social_xxxxxxxxxxxx
A token belongs to one workspace and carries one role. A member token reads. An admin token also writes: creating, changing and cancelling posts. A token can never outrank the person who created it, so a member of a workspace cannot mint an admin token.
The plaintext is shown once, when it is created, and is never recoverable: we store a hash of it and nothing else. If one leaks, revoke it. Revocation takes effect on the next request.
A missing token, an unknown one and a revoked one are all answered with the same 401 and the same sentence. That is deliberate: telling them apart confirms to somebody holding a string from an old log that it was once real.
Where an owner requires two-factor sign-in of everybody in the workspace, a token works only while the person who created it has an authenticator app on their account. Until they add one it is answered as an unknown token is, and it works again the moment they do. Nothing about the token itself changes.
Errors
Every failure has the same shape. Branch on code, which is stable forever. Never match on message, which is written for a human reading a log at 3am and is improved whenever a better sentence exists.
{
"error": {
"type": "invalid_request_error",
"code": "missing_field",
"message": "A post needs content.",
"param": "content",
"request_id": "req_9f2c41ab8e5d4c7a"
}
}type says what to do rather than what went wrong, which is the distinction a retry loop needs and a status code does not give you: invalid_request_error and authentication_error mean stop and fix it, api_error means waiting is reasonable.
request_id is on every response, failures and successes, in the body and in the X-Request-Id header. Quote it and a support conversation is one message long, because it is in our log beside whatever produced it.
| Code | Status | What it means |
|---|---|---|
missing_field | 400 | A required field is absent or empty. `param` names it. |
invalid_field | 400 or 409 | A field is present and wrong. `param` names it. 409 when the value is fine but the state of what it names refuses it: a published post, a post waiting for approval moved to `scheduled`, a post the network is still processing, a comment already answered, being answered or deleted on the network, or a competitor already tracked or whose owner asked us not to track it. Retrying unchanged does not clear it, except for a post still being saved, which clears in a moment. |
unknown_parameter | 400 | A query parameter this endpoint does not accept. Refused rather than ignored, so a typo cannot silently return unfiltered data. |
invalid_cursor | 400 | The cursor was not one we issued. Start again without one. |
malformed_json | 400 | The body is not a JSON object. |
idempotency_conflict | 409 | The same Idempotency-Key with a different body, or a request with that key still in flight. Use a new key, or retry in a moment. A refusal is replayed like a success. A rate limit, a `download_failed` (nothing was stored), a `state_changed` or a post still being saved (nothing was written) releases the key so it can be sent again; any other failure on our side keeps it in flight for 24 hours, because the write may already have happened, so check before retrying with a new key. |
slug_taken | 409 | The short name asked for on `POST /links` is already taken. Short names are shared by every workspace, so it is never changed for you: a person may already have pasted the name they asked for. Choose another. Retrying unchanged never clears it. |
state_changed | 409 | The post moved between our read and our write: the publisher took it, a sweep moved it, or another change reached it first. Nothing was written. Read it again (`GET /posts/{id}`), then send the change again if it still applies: this answer releases its `Idempotency-Key`, so the same key runs again. |
possibly_published | 409 | The post may already be on its network: the network accepted it before the failure was recorded, or the answer to its last attempt never came back (`last_error_kind` `unknown_outcome`). Nothing was written. Queueing it again could publish it twice, so this API never does: a person checks the account and, if the post is not there, presses Retry on it in the app. Retrying the request does not clear it. |
not_found | 404 | No such resource in this workspace. |
method_not_allowed | 405 | That path does not accept this method. |
missing_token | 401 | No Authorization header. |
invalid_token | 401 | Unknown, malformed, revoked, created by somebody who is no longer in this workspace, or, where an owner requires two-factor of everybody in the workspace, created by somebody with no authenticator app on their account (it works again once they add one). Deliberately one answer: telling them apart confirms to somebody holding an old string that it was once real. |
insufficient_role | 403 | The token does not have the access this endpoint needs. A token carries the LOWER of its own access and the current workspace access of whoever created it, so one that worked yesterday can answer this today if that person was moved to a lower role. |
plan_limit_reached | 402 or 403 | The workspace plan does not allow this. 402 on `POST /posts` once the calendar month's posts are used up, on `POST /media`, `POST /media/import` and `POST /media/register` when a file does not fit in the plan's media library storage, on `POST /comments/{id}/reply` and `POST /comments/{id}/hide` when the post's account is beyond the accounts the plan covers, and on `POST /rivals` when the plan's tracked competitors are all in use; 403 elsewhere, including any write made with a token whose creator holds a seat the plan no longer covers, where reads keep working. Retrying unchanged does not clear it. |
plan_feature | 403 | This workspace's plan does not include this feature. The message names the plan that does. Retrying unchanged does not clear it. |
limit_reached | 409 | A per-workspace cap that no plan raises, such as the number of webhook subscriptions, the tracked links on `POST /links`, the uploads started and not yet registered on `POST /media`, or the competitors saved on networks nothing can read yet on `POST /rivals`. The message names the cap and how to free one. Waiting does not clear it. |
workspace_suspended | 423 | We have suspended the workspace, so nothing in it goes out. Answered by `POST /posts` with `status: "scheduled"`, by `PATCH /posts/{id}` moving a post to `scheduled`, by `POST /posts/{id}/repeat`, by `POST /comments/{id}/reply`, and by `POST /links`, since a tracked link works for anybody the moment it is made; a draft, an edit of a post already queued and a cancel still work. The message says how to reach us. Retrying does not clear it. |
billing_hold | 423 | The workspace is billed through an agency that has not paid for it, so nothing in it goes out. Answered by `POST /posts` with `status: "scheduled"`, by `PATCH /posts/{id}` moving a post to `scheduled`, by `POST /posts/{id}/repeat` and by `POST /comments/{id}/reply`, which leave drafts, edits and cancels alone. It lifts when the agency pays, or when an owner moves the workspace to its own plan in the app. |
publishing_paused | 423 | An owner or admin has paused publishing for the workspace or for the account a reply would go out on, so nothing was sent. Answered by `POST /comments/{id}/reply`. It lifts when they resume publishing in the app; retrying before then does not help. |
network_stopped | 423 | We have stopped sending to that network on our side for now, so nothing was sent. Nothing the workspace did caused it. Answered by `POST /comments/{id}/reply`; try again later. |
network_refused | 502 | The network refused the request, so nothing was sent or changed there. The message gives its reason, such as a connection to renew, its rate limit, or a comment that is gone. Do not retry unchanged: renew the connection, or wait out the rate limit, first. |
ai_switched_off | 403 | An owner or an admin turned this AI feature off for the workspace (Settings, Workspace, AI features), so nothing was sent to an AI model. The message names what is off. Nothing else in the API changes; retrying succeeds only after it is turned back on in the app. |
rate_limited | 429 | Too many requests this minute. `Retry-After` says how long to wait. On `POST /media` and `POST /media/import` it can also be one of the workspace’s windows for adding files, which sends no `Retry-After`: the message says when it reopens. On `POST /comments/{id}/reply` and `POST /comments/{id}/hide` it can also be a Bluesky account’s share of sign-ins this API takes, with `Retry-After` and the message saying when it reopens. On `POST /rivals` it can also be the workspace’s share of competitors added through the API, or Instagram’s reads close to what Meta allows Crestnote this hour, each with `Retry-After`. |
download_failed | 502 or 504 | Only `POST /media/import`: the file at `url` could not be fetched for a reason a later try can clear. 502 when the host failed on its own side, asked for fewer requests, dropped the connection, sent an empty file or could not be looked up just now; 504 when the download took longer than 45 seconds. Wait and retry, with the same `Idempotency-Key` if you sent one. A host that refuses the file or has nothing at the address is `invalid_field` on `url` instead, since retrying changes nothing. |
internal_error | 500 or 503 | Ours. 503 when something that has to be checked before anything goes out, such as a pause, could not be read just now. Retry later, and quote the request id. |
The workspace plan can refuse the 8 endpoints below. Each answers with the code shown and a message naming the plan that allows it, and none of them clears if you retry it unchanged.
| Endpoint | Code | Status | When |
|---|---|---|---|
POST /posts | plan_limit_reached | 402 | The workspace has used its plan's posts for this calendar month (20 on Free, 300 on Creator and 300 per client workspace on Agency; Pro, Team and Business have no cap). Every account named counts as one post. Nothing is written. |
POST /webhooks | plan_feature | 403 | The workspace plan does not include outbound webhooks, which need the Creator plan or above. Nothing is subscribed. Removing an endpoint and reading samples keep working on every plan, and endpoints kept from a larger plan are sent nothing until the plan includes webhooks again. |
POST /media | plan_limit_reached | 402 | Asked of `byteSize`, before any upload URL is minted. The file does not fit in the plan's media library storage (1 GB on Free, 5 GB on Creator, 10 GB on Pro, 50 GB on Team, 200 GB on Business and 5 GB per client workspace on Agency). Deleting files the library no longer needs frees room straight away, and nothing is stored. |
POST /media/import | plan_limit_reached | 402 | Asked of the size the host declares before the download, and again of the bytes that arrived. The file does not fit in the plan's media library storage (1 GB on Free, 5 GB on Creator, 10 GB on Pro, 50 GB on Team, 200 GB on Business and 5 GB per client workspace on Agency). Deleting files the library no longer needs frees room straight away, and nothing is stored. |
POST /media/register | plan_limit_reached | 402 | Asked again of the object actually stored, since the size a client declares binds nothing. The file does not fit in the plan's media library storage (1 GB on Free, 5 GB on Creator, 10 GB on Pro, 50 GB on Team, 200 GB on Business and 5 GB per client workspace on Agency). Deleting files the library no longer needs frees room straight away, and nothing is stored. |
POST /comments/{id}/reply | plan_limit_reached | 402 | The account the post went out on is beyond the accounts the workspace plan covers. It is kept and does nothing until a plan covers it again, and the message names that plan. Nothing is sent. |
POST /comments/{id}/hide | plan_limit_reached | 402 | The account the post went out on is beyond the accounts the workspace plan covers. It is kept and does nothing until a plan covers it again, and the message names that plan. Nothing changes on the network. |
POST /rivals | plan_limit_reached | 402 | The workspace already tracks as many competitors as its plan allows (3 on Free, 10 on Creator, 20 on Pro, 40 on Team, 60 on Business and 5 per client workspace on Agency). A name saved on a network nothing can read yet takes no place among them. Nothing is added. |
Pagination
Every list takes limit (1 to 200, default 50) and cursor, and returns the same envelope.
{
"data": [ ... ],
"has_more": true,
"next_cursor": "MjAyNi0wOC0xN1QwOTowMDowMFogYTFiMg"
}Read until has_more is false, passing the previous next_cursor back as ?cursor=. Cursors are opaque; decoding one reveals nothing you were not just sent, but constructing one by hand is not supported and the format will change.
| Field | Type | Description |
|---|---|---|
data | array | The rows for this page. |
has_more | boolean | True when another request with `next_cursor` returns more rows. |
next_cursor | string | null | Pass back as `?cursor=`. Null on the last page. |
cursor="" while : ; do page=$(curl -s -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/posts?limit=200&cursor=$cursor") echo "$page" | jq '.data[]' [ "$(echo "$page" | jq -r '.has_more')" = "true" ] || break cursor=$(echo "$page" | jq -r '.next_cursor') done
It is a cursor and not ?page= because these lists are ordered newest first and rows arrive at the front of them constantly: a cron writes metrics every few minutes and the queue writes posts all day. With offsets, a caller reading page two after three new rows arrived sees three rows they already read, and one reading while rows are deleted skips some entirely.
Rate limits
Per token, per minute.
Writes are lower because a runaway write loop publishes to a real audience, and the thing being protected there is your account rather than our database.
Every response carries your budget, so a well-behaved client never has to guess:
RateLimit-Limit: 300 RateLimit-Remaining: 287 RateLimit-Reset: 34
Over the limit is a 429 with Retry-After in seconds. If one integration needs more headroom, mint it a second token: the limit is keyed to the token, so an export and a live agent on the same workspace do not compete, and revoking a runaway one restores everybody else’s budget immediately.
Whether the service is up, and any incident in progress, is on our status page.
Limits by plan
The plan decides how much a workspace may post and store, and whether it may subscribe to webhooks. The rate limit belongs to the token and is the same on every plan. Agency figures are per client workspace on the bill.
| Limit | Free | Creator | Pro | Team | Business | Agency |
|---|---|---|---|---|---|---|
| Posts a month | 20 | 300 | Unlimited (fair use) | Unlimited (fair use) | Unlimited (fair use) | 300 |
| Media library storage | 1 GB | 5 GB | 10 GB | 50 GB | 200 GB | 5 GB |
| Outbound webhooks | Not included | Included | Included | Included | Included | Included |
| Requests a minute, per token | 300 reads, 60 writes | 300 reads, 60 writes | 300 reads, 60 writes | 300 reads, 60 writes | 300 reads, 60 writes | 300 reads, 60 writes |
Before you ship the client
Idempotency
Send Idempotency-Key on every write. Any unique string per logical operation will do, and a UUID is the usual choice.
curl -X POST https://crestnote.com/api/v1/posts \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"accountIds":["..."],"content":"Hello"}'A repeat of the same key returns the first response verbatim, with Idempotent-Replay: true on it, and does no work, a refusal included. A rate limit (429), a download_failed (nothing was stored), a state_changed or a post still being saved (nothing was written) releases the key, so a retry with the same key runs again. Any other failure on our side (5xx) keeps the key in flight, because the write may already have happened: check before you retry with a new key. Keys live 24 hours.
This is not politeness. Your client retries a request whose response was lost, because from where it is standing the request never happened, and the request may well have succeeded. Without a key, that retry publishes the same post twice and your followers are the ones who notice.
Reusing a key with a different body is refused with idempotency_conflict rather than replayed. Replaying would hand you the first post’s id for a request that asked for something else, and you would believe the second one was queued.
Missing numbers are null, never zero
Worth its own section because it will change how you write your client. Where a platform did not report a metric, the field is null. It is never coalesced to 0 on the way in and never on the way out.
Some networks never report some metrics at all, and every network occasionally fails to answer. A zero in place of either is a fabricated measurement, and the conclusion drawn from it (“engagement fell to nothing on the 14th”) is one nobody made. Chart a null as a gap in the line and average over the readings you have.
The same rule applies to competitor text: title and excerpt on /rivals/posts are null on a post that carried neither. An absent excerpt is a normal row and never a missing post. The permalink is always there. A Threads competitor’s posts come with every count null, because Threads gives no counts for another account’s posts, so chart none of them as zero. A competitor on YouTube is never listed, because YouTube’s terms do not allow its data to be passed on through another API.
Versioning
The version is in the path, and v1 is the only one. Inside it, these are additive and can happen at any time: a new endpoint, a new field on a response, a new optional parameter, a new value in an enum, a new error code. Write a client that ignores fields it does not recognise.
These would be a new version rather than a change to this one: removing or renaming a field, changing the type of one, removing an endpoint, changing what an existing code means, or making an optional parameter required.
If v2 is ever needed, v1 keeps working for at least twelve months after it is announced, and the announcement goes to the email on every workspace using a token rather than only onto the changelog.
Every endpoint
37 of them. Every path below is relative to https://crestnote.com/api/v1, every one needs a token, and the role each needs is on its heading.
/meDescribe this token and its workspace
Which workspace the token belongs to, what the token may do, and what an integration needs before it schedules: the workspace's time zone, its plan, what is holding its publishing and what the plan has left. It changes nothing, so it is the call to make when checking that a token works, and the workspace name is what an automation tool shows beside the connection. A read-only token answers `member` here and is refused by every endpoint that needs `admin`. Every date this API reads or writes in the workspace's time zone (`endsOn` and `dates` on `POST /posts/{id}/repeat`, `published_on`, and `from` and `to` on `GET /analytics` except on `account_days`, whose dates are the network's own day, midnight to midnight Pacific time) is in `workspace.time_zone`, and a `scheduledAt` carries the offset that zone has on its own date, which differs from `workspace.local_time`'s across a clock change. `POST /posts` does not refuse a scheduled post under a failed payment or a pause: the post is saved and does not go out, which `publishing.holds` says, or `publishing.paused_account_ids` for an account paused on its own. A count that could not be read comes back null and never fails the call.
member token
| Field | Type | Description |
|---|---|---|
data | object | `workspace`: `id`, `name`, `time_zone` (an IANA name such as `Europe/Bucharest`), `local_time` (the time there now, ISO 8601 with its UTC offset, null if the zone cannot be worked out), `plan` (`free`, `creator`, `pro`, `team`, `business` or `agency`), `plan_name`, `analytics_days` (days of its own analytics the plan keeps, null for all of them) `analytics_from` (the first date `GET /analytics` returns, `YYYY-MM-DD` in `time_zone`, null when the plan keeps every day or the zone cannot be worked out) and `ai_off` (the AI an owner or an admin turned off in the app: `all`, or any of `writing`, `pictures`, `assistant`, `week_plan`, `comment_drafts` and `alt_text`; empty when every AI feature is on, and a call that would use one that is off answers 403 `ai_switched_off`). `token`: `role` (`member` or `admin`), the LOWER of what the token was created with and what its creator can do in the workspace today, and `scope` (`read` or `read_write`), what it was created with, which never changes, so a Read and write token whose creator is a member today answers `role` `member` and `scope` `read_write`; ask `scope` to require a read-only token. `publishing`: `holds`, what stops every post in the workspace, listed in this order with any number at once: `suspended` (we suspended the workspace; `reason` is ours, written for you), `billing_hold` (the agency it is billed through has not paid for it), `payment_failing` (its last payment did not go through, so posts that come due are marked missed rather than sent), `paused` (an owner or admin paused it; `reason` is theirs) and `stopped` (we have stopped publishing to every network); each has `kind`, `sentence` (ours, to show a person), `since` (when it began, or null) and `reason` (the words of whoever set it, or null). `holds_complete` is false when our stops could not be read just now, so an empty `holds` then answers nothing. `paused_account_ids` are connected accounts paused on their own and `stopped_platforms` the networks we have stopped that the workspace has an account on (a stop on every network is a hold instead): a post to either waits. `over_plan_account_ids` are connected accounts the plan does not publish from: a post to one fails when it comes due, with the reason. Each of the three is null when it could not be read just now. `usage`: `posts` (created this calendar month in `time_zone`, deleted ones included), `ai_actions` (this month), `published_bytes` (media sent to networks this month, which has a limit even where `posts.limit` is null), `storage_bytes` (what the library holds now) and `accounts` (connected now), each as `used`, `limit` and `left`, where a null `used` could not be read just now and is never a zero, a null `limit` means the plan sets none, and `left` is null when either is; and `x_allowance`, null when no connected X account can publish, else `left_micros`, the X allowance left this month in millionths of a US dollar, an upper bound, null when it could not be read; a free trial holds it below the plan's until the first payment arrives, and `left_micros` counts from that held figure. `x_allowance` is also given when the connected accounts could not be read just now (`accounts.used` is then null), so it does not then prove an X account exists. |
curl -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/me
/accountsList connected accounts
The social accounts this workspace publishes to. This is the call every other one depends on: a post needs account ids and nothing else in this API hands them out. `needs_reconnect` is true for any account a person has to reconnect, so an integration can stop queueing to a channel a human has to fix.
member token
| Name | In | Description |
|---|---|---|
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
| Field | Type | Description |
|---|---|---|
id | string | Use this as an `accountIds` entry. |
platform | string | instagram, tiktok, threads and so on. |
external_account_id | string | The network's own id for the account. It is always present, so name an account by it when `handle` and `display_name` are both null, as they are on a YouTube channel whose profile nobody has read for 30 days. |
handle | string | null | As the platform reports it. |
display_name | string | null | The account name. |
active | boolean | Whether the customer has it switched on. |
connection_status | string | active, needs_reauth, revoked or needs_verification. They are different states and are not collapsed: `needs_reauth` wants somebody to sign in again, `revoked` means the network threw the grant away, and `needs_verification` is a check Crestnote has not managed to run yet, which posts still go out through except on a Facebook, Instagram or LinkedIn account, where it means the network refused a token nothing renews. |
needs_reconnect | boolean | True when a person has to reconnect it on Connections before anything can go out: switched off, `needs_reauth` (a Facebook Page or linked Instagram account whose permissions Facebook took back included), `revoked`, a Facebook, Instagram or LinkedIn token the network refused, a token that lapsed and is not renewed when used, or a permission a reconnect grants. False for `needs_verification` on any other network and for a short-lived token Crestnote renews when it sends. Stop queueing to it while true. |
token_expires_at | string | null | When the platform grant lapses, if it does. |
curl -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/accounts
/postsList posts
The queue and its history, newest scheduled time first. Filter by status to find what is waiting for approval (`awaiting_approval`, whose `approval_rule` says what releases it), what is about to go out (`scheduled`), what did not go out (`failed`), or what already did (`published`). A post still `scheduled` more than a few minutes after its time is being held, not sent: publishing is paused for the workspace or for that account, we have suspended the workspace, the workspace is on hold while the agency it is billed through has not paid, or we have stopped publishing to that network on our side. `publishing` on `GET /me` (the MCP tool `get_workspace`) says which. A `failed` post was refused, by its network or by Crestnote, except one whose `last_error_kind` is `unknown_outcome`. `last_error` says why in words, for a person to read: show it, but never branch on its wording. Branch on `last_error_kind`: `credential`, the account the post goes out on is gone, switched off or needs a person to reconnect it, which only a person fixes in the app; the post can be queued again once GET /accounts (list_accounts) lists an account for it that is `active` and not `needs_reconnect`. `media`, a picture or video was refused, and a post's files are changed only in the app. `board`, a Pinterest Pin had no board it could go on, so send `pinterestBoardId`. `content`, the words or a setting were refused, so change them. `unknown_outcome`, the answer to the last attempt never came back, so the post may already be on the network: a person checks the account, and only the app can queue it again, once they confirm it is not there. null, nobody could classify the refusal: fix what `last_error` says, or ask the person. A `missed` post was never tried and carries no reason. Its time passed while it was a draft, held (a cancelled post is held) or waiting for approval; or it was scheduled and more than two hours went by before the publisher reached it, which is also how a reminder post nobody marked as posted ends, since nothing of ours sends one; or publishing was paused or held at its time; or a held post's `held_until` ran out; or it was a copy of a post since taken down.
member token
| Name | In | Description |
|---|---|---|
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
status | query | Return only posts in this state. |
accountId | query | Return only posts for one connected account, its posts from before it was disconnected and connected again included. |
label | query | Return only posts carrying this label. Matched ignoring case, the way the app matches it, so `launch` finds posts labelled `Launch` or `LAUNCH` too. |
scheduledFrom | query | Return only posts whose time is at or after this instant: ISO 8601 with its UTC offset, a `+` written `%2B` in the address. With `scheduledTo` it answers "what goes out this week" from that week, where the list alone, newest first, starts at the far end of the queue. A post with no time (a held draft) is outside every window. |
scheduledTo | query | Return only posts whose time is before this instant, with its UTC offset. Later than `scheduledFrom` when both are sent. |
| Field | Type | Description |
|---|---|---|
id | string | The post id. |
labels | array | null | Campaign and content-pillar labels. Null when the post carries none. |
account_id | string | Which connected account it goes to. |
platform | string | The network. |
content | string | The caption or body. |
status | string | Where it is in the queue: `held` (a draft waiting for a person), `draft` (armed: it is queued once its review window ends), `awaiting_approval`, `scheduled`, `publishing`, `awaiting_media` (the network is still processing its media), `published`, `failed` (refused, and `last_error` says why), `missed` (its time passed and it was never tried) or `writing` (a moment while its media is attached). |
scheduled_at | string | null | When it publishes, as an instant with a UTC offset. Null only on a held post nobody has chosen a time for yet; `held_until` then says when it is marked missed. |
held_until | string | null | When a held post with no time is marked missed if nobody gives it one. Null on every post that has a time. |
published_at | string | null | When it actually went out. Null until it has. |
failed_at | string | null | When it last failed, as an instant with a UTC offset. It stays after the post is queued again and goes out, so read `status` first. Null on a post that never failed, and on one that failed before 2026-10-03, when this began to be recorded. |
last_error | string | null | Why it last failed, in words: the network's refusal or ours, with any credential removed, at most 500 characters. Written for a person and reworded over time, so branch on `last_error_kind`, never on this. Null on a post that never failed, on one queued again or changed since it failed (an unknown outcome stays until a person confirms in the app), and on a `missed` post, which was never tried. |
last_error_kind | string | null | What the failure needs: `credential` (the account the post goes out on is gone, switched off or needs reconnecting, which a person fixes in the app; it can be queued again once `GET /accounts` lists an account for it that is `active` and not `needs_reconnect`), `media` (a picture or video was refused; its files are changed in the app), `board` (a Pinterest Pin had no board it could go on; send `pinterestBoardId`), `content` (the words or a setting were refused; change them) or `unknown_outcome` (the answer to the last attempt never came back, so it may already be on the network: a person checks the account, and only the app queues it again). Null when nobody could classify it, which is usual for a network refusing something in its own words. Set only beside `last_error`. |
url | string | null | The permalink on the platform, once published. |
ai_generated | boolean | Whether a model in Crestnote wrote it. A post created through this API is false: the API cannot tell who wrote the words it is sent. |
post_format | string | null | Which Instagram surface this post goes to: `feed`, `reel` or `story`. Null everywhere else, and null on an Instagram post whose surface was never chosen, which is a different fact from `"feed"`: null leaves the publisher its inference (image to the feed, video to Reels). |
first_comment | string | null | The comment posted on the post, from the same account, once it is live. Null when it carries none. |
first_comment_id | string | null | The network's id for that comment, once it was posted. Null until then, and when it could not be posted. |
first_comment_error | string | null | Why the comment could not be posted, when it could not. The post itself is live either way: a failed comment never fails a post. |
thread_parts | array | null | The replies that follow the post as a thread, in order. Null when it has none. |
thread_part_ids | array | null | The network's id for each part posted so far, in order. Null until the first part is posted. |
thread_error | string | null | Why the thread stopped, naming the part, when it did. The post and the parts before it stay live. |
send_alt_text | boolean | False when this post's pictures go out with no description on any network. True otherwise: each picture's Library description goes out as its alt text on Instagram (a feed picture), Facebook (a photo), Threads, X (a picture), Bluesky, LinkedIn and Mastodon. |
series_id | string | null | The repeat this post belongs to (see `POST /posts/{id}/repeat`), or null on a post that never repeated. It stays once the repeat is stopped, so it says the post was part of one, not that it still runs; `DELETE /posts/{id}/repeat` answers 409 on a stopped one. |
series_index | integer | null | Its place in that repeat: 1 is the post the repeat started from. Null when `series_id` is. |
approval_rule | string | null | The approval rule the post was last sent for approval under, as the workspace had it then: `one` (the first approval puts it in the queue), `everyone` (every approver the workspace named must approve, and the client through a review link when named) or `unless_rejected` (it goes in the queue on its own at `approval_deadline` unless somebody rejects it). Null on a post that was never sent for approval since rules existed. Approving happens in the app, never through this API. |
approval_deadline | string | null | Under `unless_rejected`, while the post waits: when it goes in the queue on its own unless somebody rejects it, the earlier of the workspace's wait and the post's own time. Null otherwise, and once the post stops waiting. |
instagram_story_share | string | null | Instagram Reels: `story`, `remind` or null, as instagramStoryShare. |
story_share_outcome | string | null | What happened once the Reel was live: `made` (a Story post was created; read its own status), `reminded`, `too_late`, `media_missing`, `media_withheld`, `media_length`, `media_refused`, `post_limit` or `account_gone`; null before then or when nothing was asked. |
source | string | Where it came from: `api` for a post created through this API or the MCP server, `manual` for one written in Crestnote, or another of its own doors (`bulk`, `recycled`, `feed`, `chat`, `crosspost`, `reel_story` for a Story Crestnote posted from a Reel's video; `ai` on posts this API created before 2026-11-01). |
created_at | string | When the row was written. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/posts?status=scheduled&limit=10"
/postsCreate a post
Writes one post per account named, so a single call crossposts, with an optional ordered carousel from the library. It defaults to `draft`, deliberately: what this product sells is a pre-filled queue a human approves, so a caller that wants it queued has to say so. A draft is saved as `held` and goes out only once a person schedules it, never by itself. A post to a TikTok account goes to that creator's TikTok drafts when it publishes, because TikTok asks a person to choose who may see each post: they open TikTok, pick the audience and publish it there. In a workspace we have suspended, or one on hold because the agency it is billed through has not paid, a `scheduled` post is refused with a 423 (`workspace_suspended` or `billing_hold`) and a draft is still saved. A failed payment or a pause does not refuse a `scheduled` post: it is saved and does not go out while the hold lasts, and `warnings` says so. Send an `Idempotency-Key` header; a retry after a timeout would otherwise publish twice. A post naming a Google Business Profile account is refused with `invalid_field` on `accountIds`: Google Business Profile posts are written in Crestnote itself. Google’s Business Profile API policies do not let us offer posting to a listing through our own API.
admin tokenIdempotent
| Field | Type | Description |
|---|---|---|
accountIdsRequired | array | One or more account ids from `GET /accounts`. Each becomes its own post, and `data` lists them in the order the ids were given. An account on a network whose `publishes` is false in `GET /platform-limits` is refused, because nothing could ever send the post. |
content | string | The caption or body. Required, except on a post whose `postFormat` is `story`: neither network shows a caption on a Story. Held to each account's limits as that account is sent it: its handle in `{{account}}` and `{{handle}}`, the workspace's name in `{{workspace}}`, the account's own values, each date placeholder at the longest it can print (`{{weekday}}` as Wednesday), and its signature (set on the account in the app) on the end, count toward the length, hashtags and @ mentions. |
status | string | `draft` (default) or `scheduled`. A draft comes back `held`: it waits for a person and never goes out by itself. |
scheduledAt | string | Required when status is `scheduled`. Must carry a UTC offset: `2026-08-20T09:00:00Z`. A time with no zone is refused rather than guessed. A draft saved without one has no time, and is marked missed at its `held_until` unless somebody gives it one. A `scheduled` post whose time is more than two hours ago is refused with `invalid_field`, because the publisher never reaches that far back and it would be marked missed without being tried; a time in the last two hours goes out on the publisher's next run. |
mediaIds | array | Asset ids from `GET /media`, in the order they should appear. Checked against every platform in the call before anything is written, so a five-image post to X is refused here rather than at publishing time. Instagram and TikTok cannot publish text alone, so a post to either needs this. A `reel` is one video: a Reel made from pictures is made in the app (the Library's Make a Reel, or the composer) and is then in the library as its video, so name that video. A `story` is one picture or one video, so several Stories are several calls, each naming one file. |
labels | array | null | Optional. Campaign or content-pillar labels, up to 10, each 1 to 40 characters. Whitespace is trimmed and a repeat that differs only in case is dropped. Labels are never sent to a network. |
postFormat | string | null | Instagram and Facebook, and optional. `feed`, `reel` or `story`. Omitted or `null` leaves the choice to the publisher, and the two publishers infer DIFFERENTLY: Instagram sends an image to the feed and a video to Reels, Facebook sends everything to the timeline. So `null` and `"feed"` are different answers on both, and different answers from each other. A `reel` is one video, and a picture or several files sent as one is refused. A `story` is one picture or one video, and several files are refused with a request to make one call per Story. What each surface accepts, including how long its video may run, is `surface_media` in `GET /platform-limits`. A `story` disappears after 24 hours and both networks DISCARD the caption on one: they ignore the field rather than refusing it, so text sent with a story-only call is stored here and never shown there, and `content` may be empty. An Instagram story reports no likes, comments or saves (reach, views and shares are collected, and Instagram withholds the whole insights call until five people have seen it); a Facebook story reports nothing at all, because Meta exposes no per-story insights addressable by post id. Sending this alongside an account on any other network is refused rather than ignored. |
youtubeTitle | string | null | YouTube only, and optional. A video has a TITLE and a DESCRIPTION where every other network here has one caption: `content` becomes the description (5,000 characters) and this becomes the title (1 to 100). Omitted or `null` derives one from the first sentence of the description, cut at a word boundary rather than at character 100. An empty string is refused rather than treated as null, because YouTube refuses it at upload and the two mean different things. Sending this alongside an account on any other network is refused rather than ignored. |
youtubePrivacyStatus | string | null | YouTube only, and optional. `public`, `unlisted` or `private`. Omitted defaults to `private`, which is the opposite of the default everywhere else in this API and is deliberate: a private video can be made public by its owner in two clicks and keeps its id, its URL and its upload date, where a public one cannot be un-seen and has already notified subscribers. Note that this is a REQUEST: YouTube decides the visibility in the end (until 2026-11-02 it forced every upload from an app it had not audited to `private` while reporting success, and it says it no longer does), so a video YouTube published at another visibility carries a note saying so. |
youtubeCategoryId | string | null | YouTube only, and optional. YouTube's numeric category id, as a STRING because it is an identifier rather than a quantity. Omitted leaves YouTube its own default. The valid set is regional and changes, so it is checked for shape (one to five digits) and not for membership: an id this product has never heard of is passed through to YouTube, which is the only authority on it. |
youtubeMadeForKids | boolean | null | YouTube only, and optional. The uploader's COPPA declaration. THREE STATES, and the difference matters legally: `true` and `false` are both declarations you are making, and omitting the field is not a declaration at all. An omitted value is left out of the upload entirely so YouTube's own default applies, rather than being sent as `false` on your behalf. |
youtubeContainsSyntheticMedia | boolean | null | YouTube only, and optional. The altered-or-synthetic-content disclosure. Three states, exactly as `youtubeMadeForKids` above: omitting it is not the same as declaring `false`. When the video carries media marked as made with AI (made in this product, or marked Made or changed with AI in the Library), it goes to YouTube declared `true` whatever you send. Otherwise worth setting deliberately if the video carries anything generated elsewhere. |
youtubeTags | array | null | YouTube only, and optional. Keyword tags, as a list of strings. YouTube allows 500 characters for the whole list, counting a comma between tags and a pair of quotation marks around any tag containing a space, and a list over that is refused rather than cut. Omitted or `null` means no tags. |
youtubeNotifySubscribers | boolean | null | YouTube only, and optional. `false` uploads without notifying the channel's subscribers. Omitted or `null` leaves YouTube's own default, which is to notify them. |
youtubePlaylistId | string | null | YouTube only, and optional. The id of one of the channel's playlists as YouTube writes it, such as `PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf`. The video is added to it with a second call once the upload has succeeded. If YouTube refuses that call (the playlist was deleted, or the deployment's daily YouTube allowance is spent), the video is still published and the post carries a note saying why. Checked for shape only, because a playlist can be made or deleted at any time. Omitted or `null` adds it to no playlist. |
pinterestBoardId | string | null | Pinterest only, and optional. The board the Pin is saved to, as Pinterest's board id. Omitted or `null` saves it to the first public board the connected account owns (never a group board somebody else owns), read when the Pin is published, because Pinterest has no default board of its own. Sending this alongside an account on any other network is refused rather than ignored, as are the other three Pinterest fields. |
pinterestTitle | string | null | Pinterest only, and optional. The Pin's title, up to 100 characters, separate from `content`, which becomes its description. Omitted or `null` derives one from the description when the Pin is published. A blank title is refused rather than treated as `null`, because a Pin saved with an empty title stays untitled. |
pinterestLink | string | null | Pinterest only, and optional. Where a tap on the Pin sends somebody: a complete `https` address of at most 2,048 characters, since Pinterest refuses `http` and anything longer. Omitted or `null` gives the Pin no link. |
pinterestAltText | string | null | Pinterest only, and optional. What is in the picture, for somebody who cannot see it, up to 500 characters. Blank is refused; `null` means none. |
redditSubreddit | string | null | Reddit only, and needed to publish. The community the post is submitted to: 3 to 21 letters, digits or underscores, with or without the `r/` in front. A post with none can be saved and is refused when it is due rather than sent somewhere chosen for you, because a subreddit is somebody else's community with its own rules. Posting to a user profile is not supported. Sending this alongside an account on any other network is refused rather than ignored, as are the other four Reddit fields. |
redditTitle | string | null | Reddit only, and optional. The submission's title, up to 300 characters. Omitted or `null` derives one when the post is published, from `content`, or from the link on a link post with no caption. A blank title is refused rather than treated as `null`. |
redditKind | string | null | Reddit only, and optional. `self`, a text post whose body is `content` (the default), or `link`, a post that is its link. A `link` post needs `redditLinkUrl` in the same request, and its `content` is not posted as a body. Reddit's image and video posts are not offered, because their media upload is not part of Reddit's published API, so a Reddit post carries no `mediaIds`. |
redditLinkUrl | string | null | Reddit link posts only. A complete `https` address, sent with `redditKind` `link` in the same request. Refused beside a text post rather than stored where it would never be used. |
redditFlairId | string | null | Reddit only, and optional. A flair template id from the subreddit. Some subreddits refuse every post without a flair, and Reddit says so when the post is published. Omitted or `null` sends none. |
instagramShareToFeed | boolean | null | Instagram Reels only, and optional. `true` shows the Reel in the feed as well as in the Reels tab, `false` keeps it to the Reels tab. Omitted or `null` lets Instagram decide. Refused beside `postFormat` `feed` or `story`, and sent only when the post goes out as a Reel. |
mastodonVisibility | string | null | Mastodon only, and optional. `public`, `unlisted`, `private` (followers only) or `direct` (only the accounts mentioned), exactly as Mastodon spells them. Omitted or `null` uses the account's own default on its server. |
mastodonSpoilerText | string | null | Mastodon only, and optional. A content warning shown before the post. Mastodon counts it toward the server's character limit together with `content`. Blank is refused; `null` means no warning. |
threadsReplyControl | string | null | Threads only, and optional. Who may reply: `everyone`, `accounts_you_follow`, `mentioned_only`, `parent_post_author_only` or `followers_only`. Omitted or `null` lets everyone reply. |
xReplySettings | string | null | X only, and optional. Who may reply: `following`, `mentionedUsers`, `subscribers` or `verified`. Omitted or `null` lets everyone reply, which X expresses only by leaving the field out. |
videoCoverOffsetMs | integer | null | Instagram and TikTok, on a video, and optional. The frame used as the cover, in milliseconds from the start, inside the video. Instagram takes it on a Reel and TikTok on a video it posts directly; a video sent to the TikTok inbox gets its cover chosen in the TikTok app. Refused beside `postFormat` `feed` or `story`, and on a post whose media is not one video. Omitted or `null` leaves the choice to the network. Setting it clears `videoCoverAssetId`. |
videoCoverAssetId | string | null | Optional. A JPEG, PNG or WebP picture from this workspace's media library, used as the video cover: an Instagram Reel, a Facebook feed video or Reel (never beside `postFormat` `story`), or a YouTube thumbnail, which YouTube takes only on a verified channel. Refused beside `videoCoverOffsetMs` and on a post whose media is not one video. Omitted or `null` sends none. TikTok takes no cover image through this API. |
instagramCollaborators | array | null | Instagram only, and optional. Up to 3 usernames, with or without the @, invited to co-author the post. Taken on a feed photo, a carousel or a Reel, and refused beside `postFormat` `story`, on a single video sent to the feed, and on a post its owner publishes by hand (a reminder). Each person accepts the invitation in Instagram. Omitted or `null` invites nobody. |
instagramUserTags | object | null | Instagram feed photos, carousels and Stories, and optional. People named on the post's files, keyed by media asset id: `{"<assetId>": [{"username": "maker_co", "x": 0.4, "y": 0.62}]}`. On a feed photo or carousel, each person is tagged at `x` and `y`, fractions of that picture from 0 to 1 measured from its left and top edges. On a Story (a picture or a video), Instagram adds the accounts as mentions without a sticker: `x` and `y` are still required here and are not sent. Up to 20 people a file and 10 files. Each username must be a public Instagram account, with or without the @; a tag whose username is empty is dropped. Refused beside `postFormat` `reel`, on a feed post carrying no picture, and on a post its owner publishes by hand (a reminder). Omitted or `null` names nobody. |
instagramTrialGraduation | string | null | Instagram Reels only, and optional. Publishes the Reel as a trial, shown first to people who do not follow the account: `manual` is shared to followers by hand in Instagram, `ss_performance` automatically if it performs well. Refused beside `postFormat` `feed` or `story`, and on a post whose media is not one video. Omitted or `null` publishes an ordinary Reel. |
instagramStoryShare | string | null | Instagram Reels only, and optional. Once the Reel is live: `story` posts its video as a Story of its own a few minutes later (3 to 60 seconds of video; Pro plan and above), `remind` sends the workspace's owners and admins a notice to add the Reel to your Story from Instagram. Refused on a `feed` or `story` post, when the media is not one video, beside instagramTrialGraduation, and `story` on a video outside 3 to 60 seconds or over 100 MB. Omitted or `null` shares nothing. |
instagramLocation | object | null | Instagram only, and optional. The place the post is tagged at: `{"id": "<Facebook Page id>", "name": "Cafe Lumen"}`. Instagram tags a place by the Facebook Page of that place, and the Page must have an address, or Instagram refuses the post when it publishes. The id is a string of digits (your business Page's id is under its About section on Facebook); the name, up to 200 characters, is what the post's detail and history show. Taken on a feed photo, a carousel or a Reel, and refused beside `postFormat` `story`, on a single video sent to the feed, and on a post its owner publishes by hand (a reminder). Omitted or `null` tags no place. |
threadsLocation | object | null | Threads only, and optional, where Threads location tagging is open for the workspace (refused elsewhere). The place the post is tagged at: `{"id": "<the id Threads' location search gave the place>", "name": "Menlo Park"}`. The id is a string of digits and is what goes out; the name, up to 200 characters, is what the post's detail and history show. Refused on a post its owner publishes by hand (a reminder), and on a Threads account whose connection is known not to allow location tags, with the reconnect it needs. Omitted or `null` tags no place. |
threadsTopicTag | string | null | Threads only, and optional. The post's one topic, which Threads shows on the post and in its topic search, for example `"Book Threads"`: 1 to 50 characters on one line, with no period (.) or ampersand (&). A leading `#` is dropped. Refused on a post its owner publishes by hand (a reminder). Omitted or `null` sets no topic. |
instagramAudio | object | null | Instagram Reels only, and optional: `{ id, audioVolume?, videoVolume? }`. Find the id with GET /api/v1/instagram-audio for the same account; Crestnote reads the track's title and artist from Instagram when you save. Volumes are whole numbers from 1 to 100 and default to 100. Refused on a feed post, a Story, a post that is not one video, a video with no sound track, a post you publish yourself, and a track Instagram does not offer that account. Null removes it. Instagram mixes the music in when the Reel publishes; Crestnote cannot preview the result. |
firstComment | string | null | Optional. Posted as a comment on the post, from the same account, right after the post is live. Taken on Facebook, Instagram, Threads, X, Bluesky and Mastodon, and refused on every other network and beside `postFormat` `story`. Held to each network's own limit, counted the way that network counts. On X it is billed as a post, at the link rate when it carries a link. If it cannot be posted, the post stays live and `first_comment_error` says why. |
threadParts | array | null | Optional. Up to 20 strings posted as a thread after the post, each a reply to the one before, from the same account. Taken on X, Threads, Bluesky and Mastodon, and refused on every other network and beside `firstComment`, because on those four a first comment is a reply too. Text only. Each part is held to the account's own limit, counted the way that network counts, with a Mastodon content warning counted in every part. On X every part is billed as a post, and the whole thread is checked against the allowance before the first post goes out. If a part cannot be posted, the post stays live, the parts before it stay live, and `thread_error` says which part stopped and why. |
sendAltText | boolean | Optional. Whether each picture goes out with its Library description as its alt text, on Instagram (a feed picture), Facebook (a photo), Threads, X (a picture), Bluesky, LinkedIn and Mastodon. `false` sends every picture of these posts with no description on any network, Bluesky's required field included as empty. Absent or `true` sends the descriptions, the default. The descriptions stay on the pictures in the Library either way. |
| Field | Type | Description |
|---|---|---|
data | array | The created posts, one per account id. |
warnings | array | Whole sentences, present only when the answer holds a `scheduled` post and something holds it: the workspace's publishing (a pause, a failed payment, our suspension, a billing hold, our stop on every network), its account paused on its own, or our stop on its network: the post is saved and does not go out while it lasts. |
curl -X POST https://crestnote.com/api/v1/posts \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"accountIds":["acc_..."],"content":"Hello","status":"scheduled","scheduledAt":"2026-09-01T09:00:00Z"}'/posts/{id}Retrieve a post
One post by id, with every field `GET /posts` returns for it, `last_error`, `last_error_kind` and `failed_at` included, so a failed post says why. 404 for an id in another workspace, which is the same answer as an id that does not exist.
member token
| Name | In | Description |
|---|---|---|
idRequired | path | The post id. |
| Field | Type | Description |
|---|---|---|
data | object | The post, in the shape `GET /posts` lists. |
curl -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/posts/{id}/posts/{id}Update a post
Change the content, the time, or whether it is queued. Only a post that has not gone out can be edited. A published post is refused, because editing our row would change our record of what was published without changing what is on the platform. A change that reaches a post after its status moved (the publisher took it, a sweep moved it) is refused with `state_changed` rather than written over it. A failed payment or a pause does not refuse a move to `scheduled`: the post is saved and does not go out while the hold lasts, and `warnings` says so. To try a `failed` or `missed` post again, first fix what `last_error_kind` names, or it fails the same way. Then send status `scheduled` with a scheduledAt in the future, or the current time to send it on the publisher's next run. Without scheduledAt it keeps its old time, and a time more than two hours ago is refused, because the publisher never reaches that far back. Queueing it again clears `last_error` and `last_error_kind` and starts its attempts afresh; `failed_at` stays, as the time it last failed. On an approved post a new time sends it back to wait for approval. A post that may already be on its network is refused with `possibly_published` and is never queued again here: one the network accepted before the failure was recorded, and one whose kind is `unknown_outcome`. Ask the person to check the account and, if the post is not there, to press Retry on it in the app, which asks them to confirm that. A change to a post on a Google Business Profile account is refused with `invalid_field` on `accountIds`, except a change to its labels alone, which touches nothing on Google: Google Business Profile posts are written in Crestnote itself. Google’s Business Profile API policies do not let us offer posting to a listing through our own API.
admin tokenIdempotent
| Name | In | Description |
|---|---|---|
idRequired | path | The post id. |
| Field | Type | Description |
|---|---|---|
content | string | Replacement text. It may be empty only on a Story, which shows no caption. Held to each account's limits as that account is sent it: its handle in `{{account}}` and `{{handle}}`, the workspace's name in `{{workspace}}`, the account's own values, each date placeholder at the longest it can print (`{{weekday}}` as Wednesday), and its signature (set on the account in the app) on the end, count toward the length, hashtags and @ mentions. |
scheduledAt | string | A new time, with a UTC offset. When the post ends `scheduled`, a time more than two hours ago is refused with `invalid_field`, because the publisher never reaches that far back. |
labels | array | null | Replaces the labels, or `null` removes them all. Up to 10, each 1 to 40 characters. Labels are organisation rather than content, so changing them never clears an approval, and a request that changes only `labels` works on a post in any status, published included. |
status | string | `draft` or `scheduled`. A post that is `awaiting_approval` cannot be moved to `scheduled` through this API: releasing one records who released it, which is a decision a person takes in the app, so that returns 409. Sending it back to `draft` is allowed. `draft` on any post that has not gone out saves it as `held`, waiting for a person, so it never goes out by itself: a post already `draft`, armed by the CSV import or the auto-schedule, is disarmed too, and its review window no longer sends it. `scheduled` on a `failed` or `missed` post tries it again; on one that may already be on its network it returns `possibly_published`, and on one whose files its network or surface does not take it returns `invalid_field` with the network's rule. |
postFormat | string | null | Move a post between the feed, Reels and Stories before it goes out, on Instagram and Facebook. `null` clears the choice back to the publisher's inference, which is Reels for an Instagram video and the timeline for a Facebook one. Checked against the files the post carries: a `reel` must be one video and a `story` one picture or one video, or the move is refused. A `story` disappears after 24 hours and both networks DISCARD the caption on one: they ignore the field rather than refusing it, so text sent with a story-only call is stored here and never shown there. An Instagram story reports no likes, comments or saves; a Facebook story reports nothing at all. Validated against the post's OWN network, so it is refused on a post that is on neither: a post cannot change network. |
youtubeTitle | string | null | YouTube only. The video's title, 1 to 100 characters, separate from `content` which is its description. `null` clears it back to being derived from the description at upload time. Validated against the post's OWN network, so it is refused on a post that is not on YouTube. |
youtubePrivacyStatus | string | null | YouTube only. `public`, `unlisted` or `private`. `null` clears it back to the default, which is `private`. See `POST /posts` for why that default runs the opposite way to every other one in this API. |
youtubeCategoryId | string | null | YouTube only. The numeric category id as a string, or `null` to leave YouTube its own default. |
youtubeMadeForKids | boolean | null | YouTube only. The COPPA declaration, with three states: `true` and `false` are both declarations, and `null` withdraws the declaration rather than setting it to `false`. Changing this on a post that has already been approved in the app is not possible through this API, because an approved post is not among the statuses it will edit. |
youtubeContainsSyntheticMedia | boolean | null | YouTube only. The synthetic-content disclosure, with the same three states and the same reasoning as `youtubeMadeForKids`. When the video carries media marked as made with AI in this product, it goes to YouTube declared `true` whatever you send. |
youtubeTags | array | null | YouTube only. Replaces the tag list, held to YouTube's 500-character total. `null` removes every tag. |
youtubeNotifySubscribers | boolean | null | YouTube only. `false` uploads without notifying subscribers; `null` goes back to YouTube's default, which notifies them. |
youtubePlaylistId | string | null | YouTube only. Replaces the playlist the video is added to once it is uploaded. `null` adds it to none. |
pinterestBoardId | string | null | Pinterest only. The board the Pin is saved to, or `null` for the first public board the connected account owns, read when the Pin is published. Validated against the post's OWN network, as are the other Pinterest and Reddit fields: a post cannot change network. |
pinterestTitle | string | null | Pinterest only. The Pin's title, up to 100 characters, or `null` to derive it from the description when the Pin is published. Blank is refused. |
pinterestLink | string | null | Pinterest only. A complete `https` address of at most 2,048 characters a tap on the Pin opens, or `null` for none. |
pinterestAltText | string | null | Pinterest only. What is in the picture, up to 500 characters, or `null` for none. Blank is refused. |
redditSubreddit | string | null | Reddit only. The subreddit, 3 to 21 letters, digits or underscores, with or without the `r/`, or `null` to clear it. A post with no subreddit is refused when it is due. |
redditTitle | string | null | Reddit only. The title, up to 300 characters, or `null` to derive it when the post is published. Blank is refused. |
redditKind | string | null | Reddit only. `self` for a text post or `link` for a link post, or `null` for a text post. Switching to `link` needs `redditLinkUrl` in the same request, and switching to `self` or `null` clears the link. |
redditLinkUrl | string | null | Reddit link posts only. A complete `https` address, sent with `redditKind` `link` in the same request, or `null` to clear it. |
redditFlairId | string | null | Reddit only. A flair template id from the subreddit, or `null` for none. |
instagramShareToFeed | boolean | null | Instagram Reels only. `null` lets Instagram decide. Moving the post to the feed or a Story clears it. |
mastodonVisibility | string | null | Mastodon only. `public`, `unlisted`, `private` or `direct`, or `null` for the account's own default. |
mastodonSpoilerText | string | null | Mastodon only. The content warning, or `null` for none. It counts toward the server's character limit. |
threadsReplyControl | string | null | Threads only. Who may reply, or `null` for everyone. |
xReplySettings | string | null | X only. Who may reply, or `null` for everyone. |
videoCoverOffsetMs | integer | null | Instagram and TikTok. The cover frame in milliseconds from the start of the video, or `null` to leave it to the network. Setting it clears `videoCoverAssetId`. Moving the post to the feed or a Story clears it. |
videoCoverAssetId | string | null | An Instagram Reel, a Facebook feed video or Reel, or a YouTube thumbnail. A picture from the media library used as the cover, or `null` for none. Setting it clears `videoCoverOffsetMs`. Moving the post to a Story, or an Instagram post to the feed, clears it. |
instagramCollaborators | array | null | Instagram only. Replaces the collaborators, up to 3 usernames, or `null` for none. Moving the post to a Story, or a single video to the feed, clears them. Refused on a post its owner publishes by hand (a reminder). |
instagramUserTags | object | null | Instagram feed photos and carousels only. Replaces the tagged people, keyed by media asset id: `{"<assetId>": [{"username": "maker_co", "x": 0.4, "y": 0.62}]}`, or `null` for nobody. `x` and `y` are fractions of that picture from 0 to 1, measured from its left and top edges, and a tag whose username is empty is dropped. Moving the post to Reels or a Story clears them. Refused on a post its owner publishes by hand (a reminder). |
instagramTrialGraduation | string | null | Instagram Reels only. Publishes the Reel as a trial (`manual` shared to followers by hand, `ss_performance` automatically if it performs well), or `null` for an ordinary Reel. Moving the post to the feed or a Story clears it. |
instagramStoryShare | string | null | Instagram Reels only. Replaces the share to the Story once the Reel is live: `story` posts its video as a Story of its own a few minutes later (3 to 60 seconds of video; Pro plan and above), `remind` sends the workspace's owners and admins a notice to add the Reel to your Story from Instagram, or `null` for none. Refused when the media is not one video, beside instagramTrialGraduation, on a post its owner publishes by hand (a reminder), and `story` on a video outside 3 to 60 seconds or over 100 MB. Moving the post to the feed or a Story clears it. |
instagramLocation | object | null | Instagram only. Replaces the place the post is tagged at, `{"id": "<Facebook Page id of a place with an address>", "name": "<its name>"}`, or `null` for none. Refused on a single video sent to the feed. Moving the post to a Story clears it. Refused on a post its owner publishes by hand (a reminder). |
threadsLocation | object | null | Threads only. Replaces the place the post is tagged at, `{"id": "<the id Threads' location search gave the place>", "name": "<its name>"}`, or `null` for none. Setting one is refused where Threads location tagging is not open for the workspace, and on a Threads account whose connection is known not to allow location tags, with the reconnect it needs; `null` is always taken. Refused on a post its owner publishes by hand (a reminder). |
threadsTopicTag | string | null | Threads only. Replaces the post's one topic (1 to 50 characters on one line, no period or ampersand, a leading `#` dropped), or `null` for none. Refused on a post its owner publishes by hand (a reminder). |
instagramAudio | object | null | Instagram Reels only: `{ id, audioVolume?, videoVolume? }`, or `null` to remove the music. Find the id with GET /api/v1/instagram-audio for the post's own account; Crestnote reads the track's title and artist from Instagram when you save. Volumes are whole numbers from 1 to 100 and default to 100. Refused on a feed post, a Story, a post that is not one video, a video with no sound track, a post you publish yourself, and a track Instagram does not offer that account. Moving the post to the feed or a Story clears it. Instagram mixes the music in when the Reel publishes; Crestnote cannot preview the result. |
firstComment | string | null | The comment posted on the post once it is live, or `null` for none. Facebook, Instagram, Threads, X, Bluesky and Mastodon only, and never on a Story. Moving the post to a Story clears it. |
threadParts | array | null | Replaces the thread that follows the post, up to 20 strings, or `null` for none. X, Threads, Bluesky and Mastodon only, and never beside a `firstComment`. |
sendAltText | boolean | `false` sends the post's pictures with no description on any network; `true` sends each picture's Library description as its alt text again. A change sends an approved post back to wait for approval. |
| Field | Type | Description |
|---|---|---|
data | object | The updated post. |
warnings | array | Whole sentences, present only when the answer holds a `scheduled` post and something holds it: the workspace's publishing (a pause, a failed payment, our suspension, a billing hold, our stop on every network), its account paused on its own, or our stop on its network: the post is saved and does not go out while it lasts. |
curl -X PATCH https://crestnote.com/api/v1/posts/{id} \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"scheduledAt":"2026-09-02T18:30:00Z"}'/posts/{id}Cancel a post
Takes the post out of the queue by setting it `held`: a draft that nothing will schedule until a person does. It is a soft cancel rather than a delete: the metrics collector and the recycler both reason about history, and a hole where a post used to be is indistinguishable from a post that never existed, and a held post can be scheduled again. A post that is already published, being published right now, or whose media the network is still processing is refused with a 409, and one the publisher took after it was read with `state_changed`. Cancelling a post that is already held returns it unchanged, so a retry is safe.
admin tokenIdempotent
| Name | In | Description |
|---|---|---|
idRequired | path | The post id. |
| Field | Type | Description |
|---|---|---|
data | object | The post, now `held`. |
curl -X DELETE -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/posts/{id}/posts/{id}/repeatRepeat a post
Starts a repeat from a scheduled post: the post itself is the first occurrence, and every later one is a real post in the queue at the same time of day in the workspace’s time zone, created two weeks before its time and counted against the plan’s monthly posts. It repeats on a fixed gap (every few days, weeks or months) or on dates you list (`frequency: "dates"`), up to 200 posts in all. The same rules apply as in the app. Only a post waiting to go out (`scheduled` or `awaiting_approval`) with a time in the future can repeat, and one already in a running repeat is refused with a 409. A post on X, Reddit, TikTok or Pinterest cannot repeat and is refused with a 400 saying why (X’s, for one, quotes X’s automation rules on duplicate posts). If the post went through approval, every occurrence waits for its own. A post naming a Google Business Profile account is refused with `invalid_field` on `accountIds`: Google Business Profile posts are written in Crestnote itself. Google’s Business Profile API policies do not let us offer posting to a listing through our own API.
admin tokenIdempotent
| Name | In | Description |
|---|---|---|
idRequired | path | The post id. |
| Field | Type | Description |
|---|---|---|
frequencyRequired | string | `daily`, `weekly`, `monthly` or `dates`. Monthly keeps the post’s day of the month; in a month without that day (a post on the 29th, 30th or 31st) the occurrence goes out on the month’s last day, at the same time of day. `dates` repeats on the days listed in `dates` and takes no `interval`, `weekdays`, `endsAfter` or `endsOn`. |
interval | integer | Required unless `frequency` is `dates`: every 1 to 30 days or weeks, or every 1 to 12 months. |
weekdays | array | null | Weekly only: ISO weekdays (Monday 1 to Sunday 7). The post’s own weekday is always included. |
endsAfter | integer | null | How many posts the repeat holds, this one included: 2 to 200. Send this or `endsOn`, not both. |
endsOn | string | null | The last date an occurrence may fall on (YYYY-MM-DD), in the workspace’s time zone. Send this or `endsAfter`, not both. A date that would need more than 200 posts is refused. |
dates | array | null | With `frequency: "dates"` only: the days it repeats on after the post’s own, as YYYY-MM-DD in the workspace’s time zone, 1 to 199 of them. Each is on or after the post’s date (the post’s own date counts once), and they are sorted and de-duplicated for you. |
| Field | Type | Description |
|---|---|---|
data | object | `seriesId`; `total`, the posts the repeat holds, this one included; `created`, the occurrences due in the next two weeks that were added to the queue now; and `refused`, those the plan’s monthly post limit held back, which are tried again until their time passes. |
curl -X POST https://crestnote.com/api/v1/posts/{id}/repeat \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"frequency":"weekly","interval":1,"endsAfter":8}'/posts/{id}/repeatStop repeating a post
Stops the repeat this post belongs to and removes its later occurrences that have not gone out yet, which can include the post named here. The post the repeat started from, and anything published or being published, stay as they are. A post that does not repeat, or whose repeat was already stopped, is refused with a 409.
admin tokenIdempotent
| Name | In | Description |
|---|---|---|
idRequired | path | The id of any post in the repeat. |
| Field | Type | Description |
|---|---|---|
data | object | `removed`: how many upcoming occurrences were taken out of the queue. |
curl -X DELETE -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/posts/{id}/repeat/free-slotsFree times in the queue
The next free times in the coming 7 days to schedule a post at, soonest first, never sooner than an hour from now: the workspace's posting times (the weekly times set on Publish) that no post fills yet, as Plan my week and the composer's next free time find them. Each time is meant for one post, written to one or more of the accounts in `account_ids`: a time kept for one account is offered for that account only, one kept for a network for that network's accounts, an "any account" time for every account, and a post to some of them can use the time up for the rest. Times are offered only for an account a post would go out on now: one that is paused, needs reconnecting, has access that has ended, is past what the plan publishes from, is on a network we have stopped publishing to, is on X with this month's X allowance used up, or that this API cannot write to is left out and named in `left_out` with its reason, and a workspace that is paused, suspended, on hold or whose last payment did not go through gets none (`workspace_hold`). With no posting time switched on, one time a day at 10:00 is offered instead (`from_posting_times` false). Nothing reserves a time, so read again after writing a post. It schedules nothing. Send a time's `at` as `scheduledAt` on `POST /posts`, unchanged, with `accountIds` from its `account_ids` and `status` `scheduled` to queue it; left a draft, the post still holds the time until a person schedules or removes it. Not paged: at most 14 times. A queue holding more upcoming posts than one read takes answers no times, and `why_fewer` says so, rather than offering a time on top of a post.
member token
| Name | In | Description |
|---|---|---|
accountId | query | Only times for this account, as `GET /accounts` names it. Omit it, or leave it empty, for every account. One this workspace does not hold answers `not_found`; one that cannot take a post now answers no times, named in `left_out` with its reason and said in `why_fewer`. |
count | query | How many times to return, 1 to 14. Defaults to 10. |
| Field | Type | Description |
|---|---|---|
time_zone | string | The workspace's time zone, an IANA name, which `local` is on. |
accounts_considered | array | The ids of the accounts the times were found for. Empty when none can take a post now, and `why_fewer` says why. |
left_out | array | Each account read that got no time, with `account_id`, `platform` and `reason`: `not_on_api` (a network this API never writes, written in Crestnote itself), `manual_only` (a network with no automated publisher, written in the composer as a reminder), `needs_reconnect` (its connection needs a person on Connections), `token_expired` (its access has ended on a network nothing renews at use, so a person reconnects it on Connections), `paused` (publishing is paused on it), `stopped_by_us` (we have stopped publishing to its network on our side for now), `network_needs_plan` (its network needs a larger plan), `over_plan` (connected after the accounts the plan publishes from) or `x_allowance_spent` (an X account, with this month's X allowance used up until the month turns, more is added or, on a free trial, which holds it lower until then, the first payment arrives). Each needs a person in the app, us or the next month, so tell the person rather than retrying. |
workspace_hold | string | null | Set when nothing in the workspace can go out, so no time is offered: `suspended` (we have suspended it), `billing_hold` (the agency it is billed through has not paid), `payment_failing` (its last payment, or its agency's, did not go through, so posts that come due are marked missed rather than sent), `paused` (publishing is paused for the workspace) or `stopped_by_us` (we have stopped publishing on every network for now). Null otherwise. |
from_posting_times | boolean | null | True when the times come from the posting times set on Publish; false when none is switched on, so one time a day at 10:00 is offered; null when nothing was searched. |
data | array | The times, soonest first, each with the fields below. |
at | string | The instant, with its UTC offset. Send it as `scheduledAt`. |
local | string | The same moment on the workspace clock, `YYYY-MM-DDTHH:MM`, for saying it to a person. On the night a clock goes back one wall time happens twice, and `at` says which. |
account_ids | array | The accounts this time is kept for and free on. One post written to some of them can use the time up for the rest. |
why_fewer | string | null | Why `data` holds fewer times than `count` asked for; null only when it holds all of them. |
skipped | array | Sentences naming what the search passed over: a day a clock change skips, or a time already queued that could not be read. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/free-slots?count=5"
/rivalsList tracked competitors
The competitor profiles this workspace watches. `tracking_status` is worth reading rather than ignoring: a `pending` profile has never resolved and has no history behind it, so a chart drawn from it is showing the absence of a collector. A competitor on YouTube is never listed here, because YouTube’s terms do not allow its data to be passed on through another API.
member token
| Name | In | Description |
|---|---|---|
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
platform | query | Only competitors on one network. |
| Field | Type | Description |
|---|---|---|
id | string | Use as `profileId` on `/rivals/posts`. |
platform | string | The network. |
handle | string | As the customer entered it. |
display_name | string | null | As the platform reports it. |
profile_url | string | null | The permalink. |
avatar_url | string | null | Their profile picture as the network serves it, or null. |
tracking_status | string | `active`, `paused`, `pending` (never read yet), `failing` (`last_error` says why) or `awaiting_access`: a name saved on a network nothing here can read yet, with no history behind it. |
last_error | string | null | Why collection is failing, when it is. |
last_collected_at | string | null | The last successful read. |
added_at | string | When the competitor was added. |
curl -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/rivals
/rivals/postsList competitor posts
What tracked competitors published, with the counts we were able to read, the form the network stated and the reading in fixed categories (never a picture or its address). `title` and `excerpt` are null on a post that carried neither, so an absent excerpt is a normal row and never a missing post. A YouTube competitor’s posts are never listed here, because YouTube’s terms do not allow its data to be passed on through another API.
member token
| Name | In | Description |
|---|---|---|
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
profileId | query | Only posts by one competitor, from `GET /rivals`. |
| Field | Type | Description |
|---|---|---|
id | string | Our id for the row. |
profile_id | string | Which competitor published it. |
url | string | The permalink. Always present. |
posted_at | string | When they published it. |
title | string | null | Null when the post carried none. |
excerpt | string | null | Null when the post carried none. |
likes | integer | null | Null when the platform did not report it. |
comments | integer | null | Null when unreadable. |
shares | integer | null | Null when unreadable. |
views | integer | null | Null when unreadable. On an Instagram Reel, views including any paid ones, as Meta counts them. |
platform_post_id | string | The network’s own id for the post. |
source | string | Which read collected it, such as `instagram_business_discovery`. |
collected_at | string | When its counts were last read, or, on a Threads post, which comes with no counts, when a read last returned it. A Threads post no read has returned since late November 2026 still shows its first read. |
media_kind | string | null | What the network said it carried: `none`, `image`, `video`, `audio`, `link`, `quote` or `mixed`. Null when it said nothing. |
media_count | integer | null | How many pictures or videos it carried, where the network said. Null otherwise. |
video_seconds | integer | null | A video’s length in seconds, where the network said. Null otherwise. |
media_surface | string | null | Instagram’s surface: `feed` or `reel`. Null elsewhere or when not read. |
hook_shape | string | null | How it opens, from a fixed list (`question`, `confession`, `list` and others, or `unclear`). Null until the post is read. |
subject_domain | string | null | The kind of subject, from a fixed list. Null until read. |
why_it_worked | string | null | What seems to have carried it, from a fixed list; `visual` only where its picture was looked at. Null until read. |
visual_kind | string | null | How its picture was made, from a fixed list (`product`, `text_graphic`, `screenshot` and others). Never about a person. Null when no picture was read. |
text_on_image | string | null | `yes`, `no` or `unclear`: whether its picture carries words. Null when no picture was read. |
visual_source | string | null | Which picture was looked at: `image`, `carousel_first` or `video_cover`. The picture itself is never kept. |
engagement_bait | string | null | `none`, `giveaway`, `comment_bait` or `unclear`: whether it asked for its interactions in return for something (a genuine question to readers is `none`). Null until read. |
structure | string | null | How the post is built, from a fixed list (`problem_then_reframe`, `story`, `list`, `how_to`, `offer` and others). Null until read. |
call_to_action | string | null | What it asks of its reader, from a fixed list (`question_to_readers`, `comment_to_get`, `link`, `visit_profile`, `buy_or_book`, `follow`, `none` or `unclear`). Null until read. |
broke_out | boolean | Whether the daily check announced it as a breakout: a post that did well against its author’s own usual. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/rivals/posts?limit=25"
/rivalsTrack a competitor
Starts tracking one competitor's public profile on a network. It is read on its network at once, as the Rivals screen's Add a competitor reads it, so the answer says whether that first reading landed (`first_reading`) and the state it left (`tracking_status`: `active` once read, `pending` when the reading has not landed yet, `failing` with `last_error` saying why); after that Crestnote reads it on a schedule. A competitor on a network nothing here can read yet is saved as a name, `tracking_status` `awaiting_access`, which uses no tracked-competitor slot and is read from the day its network can be. The plan caps how many competitors a workspace tracks (`plan_limit_reached`, 402, the message naming the plan that allows more), and a workspace saves at most 100 names on networks we cannot read (`limit_reached`). A profile already tracked, or one whose owner asked us not to track it, is refused (`invalid_field` on `handle`, 409). A YouTube competitor is added in the app only, since this API never lists one back. While Instagram's reads are close to what Meta allows Crestnote this hour, an Instagram competitor is refused with `rate_limited` and `Retry-After`. A workspace adds at most 30 competitors a day through the API and 10 in ten minutes (`rate_limited`); the Rivals screen is not counted. The network's own id and the profile's name are never taken from the caller: Crestnote reads both from the network.
admin tokenIdempotent
| Field | Type | Description |
|---|---|---|
platformRequired | string | The network the competitor is on: `threads`, `instagram`, `tiktok`, `bluesky`, `mastodon`, `linkedin`, `pinterest`, `reddit`, `snapchat`. |
handleRequired | string | Their handle as the network writes it (on Mastodon `@name@server.tld`), or the address of their profile, which is read for the handle. |
| Field | Type | Description |
|---|---|---|
data | object | `id` (for `profileId` on `/rivals/posts` and `DELETE /rivals/{id}`), `platform`, `handle` as stored, `tracking_status`, `last_error` (only when the first reading was refused), `added_at` and `first_reading` (true when a reading landed before the answer). |
curl -X POST https://crestnote.com/api/v1/rivals \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"platform":"bluesky","handle":"northform.bsky.social"}'/rivals/{id}Stop tracking a competitor
Stop tracking one competitor and delete everything collected about it: its daily counts and its posts. It cannot be undone, and that history cannot be fetched again: adding the same profile later starts an empty history from that day. To stop reading a competitor and keep its history, pause it on the Rivals screen in the app. A competitor this API does not list is not found here either (`not_found`).
admin tokenIdempotent
| Name | In | Description |
|---|---|---|
idRequired | path | The `id` from `GET /rivals`. |
| Field | Type | Description |
|---|---|---|
data | object | `id`, and `deleted`, always true: a competitor already gone is `not_found`. |
curl -X DELETE -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/rivals/{id}/commentsList comments on your posts
Comments other people left on this workspace’s own posts on Instagram, Facebook, Threads, Bluesky and Mastodon, newest first by when Crestnote first read them, with each commenter’s name and words, the post it is on, and where it stands: `reply_state` is `unanswered`, `answered` (our words in `our_reply`, sent from Crestnote or recorded as given by hand) or `answered_on_network` (the account answered in the network’s own app). Crestnote reads a post’s comments from its network on a schedule for its first 4 weeks, often in its first hours and then once a day; after that, and in a free workspace nobody has opened for 30 days, only when somebody checks for new comments in Signal, in the app. So a recent comment may not be listed yet, and `post.comments_read_at` says when each post’s comments were last read. The account’s own replies are not listed. A comment stays listed once it is hidden or deleted on the network, with `hidden_at` or `removed_at` saying so. Comments on YouTube and X are never listed or answered here: YouTube’s terms do not allow its data or features to be offered through another API, and X’s developer terms do not let us pass X content on through ours. Signal, in the app, shows and answers them.
member token
| Name | In | Description |
|---|---|---|
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
accountId | query | Only comments on posts from one connected account, by its id from `GET /accounts`. |
postId | query | Only comments on one post: a published post’s id from `GET /posts`, or `post.id` from this list. |
platform | query | Only comments on one network.instagram | facebook | threads | bluesky | mastodon |
unanswered | query | `true` for only the comments still waiting for somebody: not answered here or by the account on the network, not deleted on the network and not marked done. `false` for only the rest. Omit it for both. |
hidden | query | `true` for only hidden comments, `false` for only visible ones. Omit it for both. |
range | query | Only comments written in the last 24 hours, 7, 30 or 90 days; where a network gives no time, by when Crestnote first read it.24h | 7d | 30d | 90d |
| Field | Type | Description |
|---|---|---|
id | string | Our id for the comment. Use it with `POST /comments/{id}/reply` and `POST /comments/{id}/hide`. |
platform | string | The network. |
account_id | string | null | The connected account the post went out on, as `GET /accounts` names it. Null when that account is no longer connected. |
post | object | `id`, `url` (its permalink, or null), `title` (its caption’s first line, or null), `posted_at` and `comments_read_at` (when Crestnote last read this post’s comments from the network, or null if it never has). |
author_name | string | null | The commenter’s name as the network gave it. |
author_url | string | null | A link to the commenter’s profile, where the network gives one. |
text | string | What they wrote. |
commented_at | string | null | When they wrote it. Null where the network gives no time. |
first_read_at | string | When Crestnote first read it, which orders the list. |
parent_id | string | null | The comment this one answers, when it is a reply to another comment. |
reply_state | string | `unanswered`, `answered` or `answered_on_network`. |
our_reply | string | null | The words of our answer when `reply_state` is `answered`. |
resolved_at | string | null | When the team marked it as needing no reply. |
hidden_at | string | null | Since when it is hidden from the public. |
removed_at | string | null | When it was deleted on the network at this workspace’s request. Its words are kept here. |
can_reply | boolean | Whether this API takes a reply on its network (Bluesky and Mastodon) and nobody has answered it yet. The account, the plan and any pause are checked when you send. |
can_hide | boolean | Whether this API can hide or show it (Bluesky). The account and the plan are checked when you ask. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/comments?unanswered=true&range=7d"
/comments/{id}/replyReply to a comment
Posts a public reply to one comment, at once, from the account the post went out on, on Bluesky and Mastodon, held to the network’s own length limit. Replies on the other networks this API lists are sent from Signal, in the app. A reply cannot be edited or deleted from here. It is never sent twice: the comment is held while it is sent, and one already answered here or by the account on the network, being answered right now, whose earlier reply never confirmed, or deleted on the network is refused with a 409, as is a post whose account is no longer connected, or one of several connected accounts on its network that does not record which. When the network does not answer, `delivery` is `unconfirmed` and the comment is recorded as answered so nothing sends it again: check the network, and never send the reply again yourself. Refused with a 423 while publishing is paused for the workspace or that account, while we have suspended the workspace or it is on hold for an agency’s unpaid bill, or while we have stopped sending to that network, with a 402 for an account beyond what the plan covers, and with a 429 `rate_limited` once a Bluesky account has used the share of its sign-ins this API takes (15 replies and hides every 5 minutes and 150 a day across replies and hides), since Bluesky limits sign-ins per account and publishing on it needs the rest. Comments on YouTube and X are never listed or answered here: YouTube’s terms do not allow its data or features to be offered through another API, and X’s developer terms do not let us pass X content on through ours. Signal, in the app, shows and answers them.
admin tokenIdempotent
| Name | In | Description |
|---|---|---|
idRequired | path | The comment id, from `GET /comments`. |
| Field | Type | Description |
|---|---|---|
textRequired | string | The reply, sent exactly as written. |
| Field | Type | Description |
|---|---|---|
data | object | `comment_id`, `platform`, `reply_state` (`answered`), `our_reply` (the words sent), `delivery` (`sent`, or `unconfirmed` when the network did not answer) and `note` (a sentence when the reply was unconfirmed or could not be recorded here, otherwise null). |
curl -X POST https://crestnote.com/api/v1/comments/{id}/reply \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"text":"Thank you, that means a lot to us."}'/comments/{id}/hideHide or show a comment
Hides one comment from the public, or shows it again with `hidden: false`, on Bluesky. Hiding on the other networks this API lists is done from Signal, in the app. It deletes nothing, and the comment and its words stay here. Hiding twice asks the network again and keeps the time it was first hidden. A comment already deleted on the network comes back unchanged with `removed_at` set. Refused with a 409 when the post’s account is no longer connected, or is one of several connected accounts on its network and the post does not record which, with a 402 for an account beyond what the plan covers, and with a 429 `rate_limited` once a Bluesky account has used the share of its sign-ins this API takes (15 replies and hides every 5 minutes and 150 a day across replies and hides). Comments on YouTube and X are never listed or answered here: YouTube’s terms do not allow its data or features to be offered through another API, and X’s developer terms do not let us pass X content on through ours. Signal, in the app, shows and answers them.
admin tokenIdempotent
| Name | In | Description |
|---|---|---|
idRequired | path | The comment id, from `GET /comments`. |
| Field | Type | Description |
|---|---|---|
hidden | boolean | `true` (the default) hides it; `false` shows it again. A request with no body hides it. |
| Field | Type | Description |
|---|---|---|
data | object | `comment_id`, `platform`, `hidden`, `hidden_at`, `removed_at` and `note` (a sentence when it was done on the network and could not be recorded here, otherwise null). |
curl -X POST https://crestnote.com/api/v1/comments/{id}/hide \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"hidden":true}'/analyticsRead collected metrics
Five series behind one path, chosen with `?series=`: `followers` (one row per account per day it was read), `posts` (every reading of every post, each a running total), `post_totals` (each post published in the window once, with its newest reading, account, labels and publishing date in the workspace’s time zone, the series to total posts by day, network, account or label) `account_days` (one row per Instagram, Facebook or Threads account per day: the totals the network reported for the whole account, as far back as the plan keeps analytics, two years on every paid plan; a connected YouTube channel’s daily views, watch time and subscribers stay in the app’s Analytics) and `demographics` (one row per Instagram or Threads account per day it was read: its followers by age, gender, country and city as the network reported them, read daily for an account with at least 100 followers). The first two used to come back together under one limit, which meant a caller who wanted the follower history also got every post metric beside it and could page through neither. Every number is exactly as collected: a metric the platform did not return is null and is never a zero, and a day with no reading or no post has no row. No series carries a YouTube channel: YouTube's terms do not let us serve its data through our API, so its figures stay in the app's Analytics, and `platform=youtube` is refused. On the Free plan every series reaches back 30 days in the workspace’s time zone, as Analytics does. The Creator plan and every plan above it read all of it. Older readings are kept, not deleted, so moving up a plan returns them, and a cursor past the edge reaches an empty last page rather than an error.
member token
| Name | In | Description |
|---|---|---|
seriesRequired | query | `followers` for daily audience counts per account, `posts` for every reading of each post, `post_totals` for each published post once with its newest reading, `account_days` for each Instagram, Facebook or Threads account’s own daily totals as the network reported them, `demographics` for each Instagram or Threads account’s followers by age, gender, country and city. A post read on five days has five `posts` rows, each its running total, so add up `post_totals`, never `posts`. On `account_days`, `reach` and `accounts_engaged` count people, so never add them across days or accounts, and `follows` and `unfollows` never add up to a follower count.followers | posts | post_totals | account_days | demographics |
from | query | A date written YYYY-MM-DD in the workspace’s time zone; for `account_days` and `demographics`, the network’s own day (midnight to midnight Pacific time), compared as a label: only rows on or after it (the day of the reading for `followers`, the day it was collected for `posts`, the publishing date for `post_totals`, the network’s day for `account_days` and `demographics`). The plan’s history still applies, so an earlier date reads from the plan’s edge. |
to | query | A date written YYYY-MM-DD in the workspace’s time zone; for `account_days` and `demographics`, the network’s own day (midnight to midnight Pacific time), compared as a label: only rows on or before it. Before `from` is refused. |
platform | query | Only one network. `youtube` is refused: no series serves a YouTube channel. |
post | query | `posts` only: one post's readings, by the id `GET /posts` returns, to follow it day by day. Each reading is the post's running total when it was read, so a gap between two readings is a day it was not read, never a day it earned nothing. |
label | query | `posts` and `post_totals`: the readings, or the published posts, carrying this campaign or pillar label, matched ignoring case as `GET /posts?label=` matches it. With `GET /posts?label=` that is a campaign: its posts in every state and their readings. `posts` gives several readings per post, newest first; `post_totals` gives each post's newest once, so its rows add up to the campaign. A post recorded from the network carries no labels, so a label leaves those out. |
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
| Field | Type | Description |
|---|---|---|
platform | string | The network. |
account_id | string | null | The account, as `GET /accounts` names it: for `followers` the account counted, for `posts` the account the reading was taken through, for `post_totals` the account the post went out on, matched as Analytics matches it, for `account_days` the account the totals are for, for `demographics` the account whose followers they describe. Null when none is known. |
date | string | followers, account_days and demographics: the day of the reading, in the workspace’s time zone for `followers` and the network’s Pacific day for `account_days` and `demographics`. |
followers | integer | null | followers: our reading; account_days: Facebook’s own daily total, null on Instagram and Threads. |
post_id | string | null | posts and post_totals: which post, as `GET /posts` names it. Null for a post recorded from the network. |
imported_post_id | string | null | post_totals only: the id of a post recorded from the network rather than published from Crestnote, else null. |
origin | string | post_totals only: `published` (sent from Crestnote) or `imported` (recorded from the network). |
published_at | string | post_totals only: when it went out. |
published_on | string | post_totals only: the day it went out, in the workspace’s time zone, as Analytics counts it. |
caption | string | null | post_totals only: its words, or null. |
url | string | null | post_totals only: the post on its network, or null. |
post_format | string | null | post_totals only: `feed`, `reel` or `story` on Instagram and Facebook, else null. |
labels | array | null | post_totals only: its labels, or null. |
measured_at | string | null | post_totals only: when its newest reading was taken. Null, with every figure, for a post not read yet. |
age_hours | integer | null | posts and post_totals: how old it was when read (null on a post_totals row not read yet). A post is read once a day for its first five days, then again on days 7, 14 and 30, its publishing date being day 1, and a Pinterest Pin once more on day 85, while Pinterest still counts its whole life, so the gaps between its readings are expected. A Story is read only in the first 25 hours after it goes up, while the network still reports its numbers. An X post is read only while the workspace's monthly X allowance has room for the read, so it can have fewer readings than that. |
likes | integer | null | posts and post_totals. Null when unreadable. account_days: the whole account’s daily total as the network reported it, null where it reported none; reach counts people per day and is never added across days. |
comments | integer | null | posts and post_totals. Null when unreadable. account_days: the whole account’s daily total as the network reported it, null where it reported none; reach counts people per day and is never added across days. |
shares | integer | null | posts and post_totals. Null when unreadable. account_days: the whole account’s daily total as the network reported it, null where it reported none; reach counts people per day and is never added across days. |
saves | integer | null | posts and post_totals. Null when unreadable. account_days: the whole account’s daily total as the network reported it, null where it reported none; reach counts people per day and is never added across days. |
views | integer | null | posts and post_totals. Null when unreadable. account_days: the whole account’s daily total as the network reported it, null where it reported none; reach counts people per day and is never added across days. |
reach | integer | null | posts and post_totals. Null when unreadable. account_days: the whole account’s daily total as the network reported it, null where it reported none; reach counts people per day and is never added across days. |
impressions | integer | null | posts and post_totals. Null when unreadable. |
accounts_engaged | integer | null | account_days only: accounts that engaged that day, Instagram. People, so never added across days or accounts. |
reach_followers | integer | null | account_days only: of that day’s reach, the accounts that follow the account, Instagram. People, so never added across days or accounts; for a share over several days, divide the sum of reach_non_followers by the sum of both fields over the days carrying both. Null where the split was not read (a day read before Crestnote began asking for it, or one Instagram withheld it for), never 0. |
reach_non_followers | integer | null | account_days only: of that day’s reach, the accounts that do not follow the account, Instagram. People, so never added across days or accounts; for a share over several days, divide the sum of reach_non_followers by the sum of both fields over the days carrying both. Null where the split was not read (a day read before Crestnote began asking for it, or one Instagram withheld it for), never 0. |
interactions | integer | null | account_days only: the whole account’s interactions that day (engagements on a Facebook Page). |
replies | integer | null | account_days: replies that day (Story replies on Instagram). posts and post_totals: an Instagram Story’s replies, kept only above zero, since Instagram answers zero for every Story made in Europe or Japan whatever the truth; null on any other post and where none was kept. |
reposts | integer | null | account_days only: reposts that day, net, so it may be negative on Instagram when more were undone than made. |
quotes | integer | null | account_days only: quotes that day, Threads. |
profile_link_taps | integer | null | account_days only: taps on the links in the profile that day, Instagram. |
link_clicks | integer | null | account_days: clicks on links that day, Threads. posts and post_totals: clicks through to the post’s link, on an X post Crestnote published that carries a link (read only in its first 30 days, so an older post carries them as its last reading then did) and on a Pinterest Pin with a link (its outbound clicks); null where the reading carries none, never 0. |
profile_views | integer | null | account_days only: Facebook Page visits or Threads profile views that day. |
follows | integer | null | account_days: follows that day. Per day, never a follower count; Instagram returns them for recent months only, so older days carry null. posts and post_totals: the Instagram accounts that followed from this post, on a feed post or Story (Instagram reports none for a Reel); null where the reading carries none. |
unfollows | integer | null | account_days only: unfollows that day. Per day, never a follower count; Instagram returns them for recent months only, so older days carry null. |
profile_visits | integer | null | posts and post_totals: visits to the profile from this post: on Instagram a feed post or Story (Instagram reports none for a Reel), on X a post Crestnote published, read only in its first 30 days, so an older post carries them as its last reading then did; null where the reading carries none. |
taps_forward | integer | null | posts and post_totals: an Instagram Story’s count as Instagram reported it, while the Story was up (Instagram serves a Story’s figures for 24 hours); null on any other post, and on a Story read with fewer than five viewers. |
taps_back | integer | null | posts and post_totals: an Instagram Story’s count as Instagram reported it, while the Story was up (Instagram serves a Story’s figures for 24 hours); null on any other post, and on a Story read with fewer than five viewers. |
exits | integer | null | posts and post_totals: an Instagram Story’s count as Instagram reported it, while the Story was up (Instagram serves a Story’s figures for 24 hours); null on any other post, and on a Story read with fewer than five viewers. |
next_story | integer | null | posts and post_totals: swipes on to the next account’s Story. an Instagram Story’s count as Instagram reported it, while the Story was up (Instagram serves a Story’s figures for 24 hours); null on any other post, and on a Story read with fewer than five viewers. |
watch_minutes | integer | null | posts and post_totals: an Instagram Reel’s total watch time, replays included, in whole minutes; null on any other post. |
average_view_seconds | integer | null | posts and post_totals: an Instagram Reel’s average watch time, in whole seconds; null on any other post. |
pin_clicks | integer | null | posts and post_totals: a Pinterest Pin’s own clicks, taps that opened it; null on any other post and where the reading carries none. |
bio_link_clicks | integer | null | posts and post_totals: taps on the bio link by people who visited the profile from this post, on an Instagram feed post or carousel (Instagram reports none for a Reel, and a Story is not asked); null on any other post and where the reading carries none, such as one taken before 29 November 2026, never 0. |
age | object | null | demographics only: followers by age band, such as {"25-34": 115}. Only followers the network could place are counted, so a breakdown can sum below the follower count; null where the network returned none, never an empty object or zeros. |
gender | object | null | demographics only: followers by gender, F, M or U (not said). Only followers the network could place are counted, so a breakdown can sum below the follower count; null where the network returned none, never an empty object or zeros. |
country | object | null | demographics only: followers by country, an ISO 3166 code, the 45 largest at most. Only followers the network could place are counted, so a breakdown can sum below the follower count; null where the network returned none, never an empty object or zeros. |
city | object | null | demographics only: followers by city, "City, Region", the 45 largest at most. Only followers the network could place are counted, so a breakdown can sum below the follower count; null where the network returned none, never an empty object or zeros. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/analytics?series=followers&limit=60"
/analytics/worth-promotingList posts worth promoting
The workspace's own posts published in the last 7 days whose engagement (likes, comments and shares added together, or views on a network that reports none of those) is at least 2 times their account's usual and at least 10. The usual is the median of the account's posts on their earliest reading 48 to 96 hours old, over at least 12 of them; a post younger than 48 hours is compared on its newest reading, which understates its lead. Highest multiple first, then newest. Only Facebook, Instagram and TikTok, the networks with a documented place for promoting a post whose figures this API may serve: YouTube's terms do not let us serve a channel's YouTube data through our API, so a YouTube post is listed in the app alone and `platform=youtube` is refused. Nothing is promoted through this API: each post carries the network’s own place for promoting it, which the person opens there. A post with no reading or no usual is absent, never a zero. Not paged: `truncated` is true when more posts were published in the window than one read judges. On the Free plan the usual is measured across the last 30 days in the workspace’s time zone, as Analytics does, so a newer account may have too few posts for one. The Creator plan and every plan above it measure it across all of it.
member token
| Name | In | Description |
|---|---|---|
platform | query | Only one network. `youtube` is refused with `invalid_field`.facebook | instagram | tiktok |
| Field | Type | Description |
|---|---|---|
data | array | The posts, each with the fields below. |
truncated | boolean | True when only the newest posts of the window were judged. |
post_id | string | The post, as `GET /posts` names it. |
platform | string | The network. |
account_id | string | The account it went out on. |
published_at | string | When it went out. |
url | string | null | The post on its network, as the network answered at publishing, or null. |
engagement | integer | Its engagement on the reading it is judged on. |
reading_age_hours | integer | How old that reading was, in whole hours. |
compared_with | string | `third_or_fourth_day` when judged on its own reading 48 to 96 hours old, `early` when on a younger one. |
usual_engagement | number | The account's usual (a median, so it can carry a half). |
sample_size | integer | How many of its posts the usual is taken across. |
sample_from | string | null | When the first of them went out. |
sample_to | string | null | When the last of them went out. |
multiple | number | Engagement over the usual, to one decimal. |
promote | object | `url`: the network's own documented place for promoting it (the post's page, or TikTok Promote), or null when no address is held. `how`: one sentence saying what to press there, or where to find the post. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/analytics/worth-promoting"
/analytics/hashtagsSuggest hashtags from an account’s own posts
The hashtags on one account's own published posts whose posts did better than that account's usual, best first, at most 8: the answer the composer's Top hashtags gives. Engagement is likes, comments, shares and saves added together on each post's newest reading, and the usual is the median of the account's posts with a reading in the window, which is the last 90 days (30 on the Free plan). A hashtag is offered only when it is on at least 3 of those posts and the median of those posts is above the usual, and the account needs at least 12 posts with a reading; below either, `data` is empty and `note` says why. Stories are left out, because no caption goes out with one. A YouTube account is refused with `invalid_field` on `accountId`: YouTube's terms do not let us serve a channel's YouTube data through our API, so its hashtags are suggested in the app alone. Nothing is made up and no AI is called. Not paged: `truncated` is true when more posts were published in the window than one read takes.
member token
| Name | In | Description |
|---|---|---|
accountIdRequired | query | The connected account, as `GET /accounts` names it. One this workspace does not hold answers `not_found`. |
| Field | Type | Description |
|---|---|---|
account_id | string | The account asked about. |
platform | string | Its network. |
window_days | integer | How many days back the posts were read: 90, or 30 on the Free plan. |
measured_posts | integer | The account’s posts in the window with a reading, Stories left out. |
account_median_engagement | integer | null | Their median engagement, or null below 12 posts. |
data | array | The hashtags, each with the fields below. |
tag | string | The hashtag without its `#`, lower-cased, as it was published. |
posts | integer | How many of the measured posts carried it. |
median_engagement | integer | The median engagement of those posts. |
reason | string | One sentence with both numbers, as the composer shows it. |
note | string | null | Why `data` is empty, or null when it is not. |
truncated | boolean | True when only the newest posts of the window were read. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/analytics/hashtags?accountId=ACCOUNT_ID"
/analytics/best-timesBest times to post, per account
Each connected account's best hours of the week to post, from its own published posts of the last 90 days: the hours whose posts had the highest median engagement rate (likes, comments, shares and saves over reach, on each post's reading two to four days after it went out), at most 3 per account, best first, on the workspace's clock. Only an account on Instagram or Facebook gets hours of its own, because only they report a post's reach here, and only once it has 20 posts in the window whose engagement was read, with at least 3 in an hour. Elsewhere `source` is `research` where two published studies of other accounts agree on a window: a starting time, general research and not this audience, which the account's own hours replace once it has them. `source` null means no hour is offered and `sentence` says why. Nothing is made up and no AI is called. Each hour carries `next_at`, the next time it comes round at least an hour from now, ready to send as `scheduledAt`; it does not look at the queue or at whether the account can take a post now, so `GET /free-slots` is the call for a time no post holds yet. Not paged: one row per connected account, in the order they were connected. `truncated` is true when more posts were published in the window than one read takes, so only the newest were scored. On the Free plan the window is the last 30 days, as Analytics reads it, and `window_days` says the window used. The Creator plan and every plan above it read all 90.
member token
| Name | In | Description |
|---|---|---|
accountId | query | Only this account, as `GET /accounts` names it. Omit it, or leave it empty, for every account. One this workspace does not hold answers `not_found`. |
| Field | Type | Description |
|---|---|---|
time_zone | string | The workspace's time zone, an IANA name, which every hour and `next_local` is on. |
window_days | integer | How many days of posts were read: 90, or fewer where the plan keeps less history. |
truncated | boolean | True when only the newest posts of the window were read. |
data | array | One row per account, each with the fields below. |
account_id | string | The account, as `GET /accounts` names it. |
platform | string | Its network. |
source | string | null | `own_posts` when the hours come from this account's own posts, `research` when they are a starting time from published studies of other accounts (general research, not this audience), null when no hour is offered. |
hours | array | Best first, empty when `source` is null. Each has `weekday` (1 Monday to 7 Sunday, as `POST /posts/{id}/repeat` counts), `hour` (0 to 23 on the workspace clock), `label` ("Tuesday 09:00"), `next_at` (the next time it comes round at least an hour from now, with its UTC offset, ready for `scheduledAt`, or null where the zone cannot place it) and `next_local` (the same moment on the workspace clock, `YYYY-MM-DDTHH:MM`). |
sentence | string | Why these hours, or why there are none, as the app says it. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/analytics/best-times"
/analytics/repliesHow the team answered comments
How the team answered comments in a window, the figures Analytics shows under Replies to comments, counted over the comments on Instagram, Facebook, Threads, Bluesky and Mastodon alone (the networks whose comments the API serves; Analytics in the app counts every network, so its figures can be larger): of the comments other people wrote on the workspace's posts in the window (written then by the network's clock, else first read by Crestnote then; the brand's own replies are not comments, and a comment hidden or deleted on the network that nobody answered is left out), how many were answered (replied to from Crestnote, recorded as answered by hand, or answered in the network's own app, which Crestnote sees on its next comment read), how many were marked done without a reply, and the median time from a comment to its first reply. The median is clock time, nights and weekends included, over the answered comments whose first reply carries a time: a comment whose network gives no written time, or a reply recorded by hand or whose send its network has not confirmed, until Crestnote reads it under the comment, is answered but not timed. Who answered is shown in the app only. The window is 7, 30 or 90 calendar days in the workspace's time zone ending today, from the first day's midnight there, as Analytics' range tabs read it, and reaches back only as far as the plan's analytics history (the last 30 days on the Free plan): a longer `range` answers the window the plan keeps, which `window_days` names. Not paged: one object.
member token
| Name | In | Description |
|---|---|---|
range | query | `7d`, `30d` or `90d`. `30d` when absent. Any other value answers `invalid_field`. |
| Field | Type | Description |
|---|---|---|
time_zone | string | The workspace's time zone, an IANA name, whose calendar days the window counts. |
window_days | integer | How many days the window holds: the range asked for, or fewer where the plan keeps less history. |
from | string | The first instant counted, ISO 8601: the first day's midnight in the workspace's zone, or the plan's edge. |
comments | integer | Comments other people wrote in the window, hidden or deleted ones nobody answered left out. |
answered | integer | Of those, how many were answered, here or on the network. |
answered_share | number | null | `answered` over `comments`, 0 to 1, or null when no comment was written (no rate exists, which is not 0). |
marked_done_without_reply | integer | Comments marked done in the app with no reply: not answered, and counted apart. |
timed_replies | integer | The answered comments whose first reply carries a time, which the median stands on. |
median_first_reply_seconds | integer | null | The median seconds from a comment to its first reply, clock time with nights and weekends included, or null when no reply is timed. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/analytics/replies?range=30d"
/instagram-audioSearch Instagram music for a Reel
The music and original sounds Instagram lets other apps add to a Reel, for one Instagram account: the trending list when `q` is absent, else a search. Use an item's `id` as `instagramAudio.id` on `POST /posts` or `PATCH /posts/{id}` for a Reel on that same account. Instagram's list differs per account and from the one in its app. Each page holds what Instagram returns (25 items), so there is no `limit`. The search spends the account's own Instagram budget, which its publishing shares, so it pauses for that account when Instagram reports the budget half used, and answers `rate_limited` until then. `not_found` also answers while music on Reels is not open on this workspace.
member token
| Name | In | Description |
|---|---|---|
accountIdRequired | query | The Instagram account, as `GET /accounts` names it. One this workspace does not hold answers `not_found`. |
type | query | Music or the original sounds of other Reels. Defaults to `music`.music | original_sound |
q | query | Words to search for, up to 100 characters. Omit it for the trending list. |
cursor | query | The `next_cursor` from a previous response, for the same `type`. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
| Field | Type | Description |
|---|---|---|
id | string | The track's Instagram id, digits as a string. This is what `instagramAudio.id` takes. |
type | string | `music` or `original_sound`. |
title | string | The title Instagram gives it. An original sound whose title names its creator reads `Original audio`. |
artist | string | null | The artist Instagram names, for music. Null for an original sound. |
durationMs | integer | null | Its length in milliseconds, when Instagram says. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/instagram-audio?accountId=ACCOUNT_ID&q=summer"
/mediaList media
The workspace library. Upload in two calls: `POST /media` for a signed URL, then `POST /media/register` once the bytes are in place, or bring a file in from a public address with `POST /media/import`.
member token
| Name | In | Description |
|---|---|---|
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
tag | query | Return only files carrying this tag. Matched ignoring case, the way the Library matches it, so `product` finds files tagged `Product` too. |
| Field | Type | Description |
|---|---|---|
id | string | The asset id. This is what `mediaIds` takes. |
kind | string | image, video or document (a PDF, which LinkedIn publishes as a document post). |
url | string | Where it is served from. |
mime_type | string | As uploaded. |
width | integer | null | Pixels, when known. |
height | integer | null | Pixels, when known. |
byte_size | integer | null | Bytes, when known. |
page_count | integer | null | How many pages a PDF has, when counted. Null for pictures and videos. |
has_audio_track | boolean | null | Videos only: true when the file has a sound track, false when it has none, null when not measured. |
filename | string | null | The original name. |
alt_text | string | null | What is in the image, for somebody who cannot see it. Null means nobody has described it; an empty string means it was judged decorative. |
tags | array | null | Library tags, as typed in the app. Null when the file carries none. |
created_at | string | When it was added, ISO 8601 with its UTC offset. |
curl -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/media
/mediaStart a media upload
Returns a signed URL to PUT the file to. The bytes never pass through this API, which is what lets you upload a 200 MB video: a request body here is capped at 4.5 MB by the platform, and a binary body would be corrupted by the idempotency fingerprint before any handler saw it. PUT the bytes to `signedUrl` with `Content-Type` set to the `contentType` answered here and `Cache-Control: max-age=31536000`, then follow with `POST /media/register`. Without the Cache-Control header storage marks the file `no-cache`, and every view of it or of a resized copy goes past the cache to storage. A workspace may hold at most 2 GB of uploads started and not yet registered (less when its plan has less room left): a file already sent counts at its size, and a URL whose file has not arrived counts at the largest a file can be for the two hours it is good for. A start past that is refused with `limit_reached` until some are registered, so send and register one file at a time, or a few.
admin tokenIdempotent
| Field | Type | Description |
|---|---|---|
filename | string | The original name. Used to work out the type when `contentType` is absent, which is what browsers do for some files. |
contentType | string | The mime type, for example `image/jpeg`. An unsupported type is refused here. |
byteSize | integer | The file size. Checked against the limit for its kind before a URL is minted, so an oversized file is refused before it is uploaded rather than after. |
| Field | Type | Description |
|---|---|---|
storagePath | string | Pass this back to `/media/register`. |
signedUrl | string | PUT the file here, with `Content-Type` set to `contentType` and `Cache-Control: max-age=31536000`. |
token | string | The upload token, for clients that take one. |
kind | string | image, video or document, decided from the type. |
contentType | string | The normalised mime type. |
curl -X POST https://crestnote.com/api/v1/media \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"filename":"launch.jpg","contentType":"image/jpeg","byteSize":482114}'/media/registerFinish a media upload
Records the uploaded object as an asset, and returns the id `mediaIds` takes. The object is checked for real existence in storage first, so a PUT that failed silently cannot leave a library row whose image is missing. Registering a path that is already in the library answers 409. Register a file within three hours of sending it: a file still unregistered after that is deleted and has to be sent again.
admin tokenIdempotent
| Field | Type | Description |
|---|---|---|
storagePathRequired | string | The `storagePath` from `POST /media`. |
contentTypeRequired | string | The same type declared at step one. It must agree with the path. |
altText | string | What is in the image, for somebody who cannot see it. Worth sending: some networks require the field, and one that arrives without a description publishes an empty one. A blank is read as not described yet. |
width | integer | Pixels. Improves how some networks frame it. |
height | integer | Pixels. |
durationSeconds | number | For a video, in seconds, kept to the millisecond. |
folderId | string | A folder in this workspace to file it under. |
| Field | Type | Description |
|---|---|---|
data | object | The created asset. |
curl -X POST https://crestnote.com/api/v1/media/register \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"storagePath":"<workspace-id>/images/....jpg","contentType":"image/jpeg","altText":"A cortado on a wooden counter"}'/media/importImport media from a link
Downloads one picture, video or PDF from a public address into the library and returns it with the id `mediaIds` takes: the way in for a caller that cannot PUT bytes to a signed URL, such as an AI assistant. The address must serve the file itself, never a page that shows it, and what it serves decides the kind; a file whose first bytes are not that kind is refused. Our server fetches it over http or https on the standard ports only, refuses an address that resolves to a private network, and checks every redirect again. It takes JPEG, PNG and WebP pictures up to 15 MB, MP4, MOV and WebM videos up to 300 MB and PDFs up to 100 MB, refuses a larger file, stops a download after 45 seconds, and brings in at most 300 MB a minute for one workspace. It counts against the same windows as `POST /media` (files and megabytes added per day, files per hour) and the minute window above, answered `rate_limited`, and against the plan's media library storage, answered `plan_limit_reached`. A web page, a type the library does not take, an address it may not fetch, a file over its limit, or a host that refuses the file or has nothing there is `invalid_field` on `url`, and a retry will not help. A host failing on its own side, asking for fewer requests, dropping the connection, sending nothing or not answering a name lookup just now is `download_failed` at 502, and a download over 45 seconds is `download_failed` at 504: those can work later. A file brought in from a link is never marked as made with AI, whatever made it. If a model made or changed it, a person marks it Made or changed with AI in the Library, and a post carrying it then carries the AI label on the networks where Crestnote sets one; a YouTube post can also send youtubeContainsSyntheticMedia as true. Importing the same address twice adds it twice, so send `Idempotency-Key` to make a retry safe; `duplicate_of` names a file the library already held with the same bytes.
admin tokenIdempotent
| Field | Type | Description |
|---|---|---|
urlRequired | string | The address of the file itself, http or https, up to 2,048 characters. |
altText | string | null | What is in it, for somebody who cannot see it, up to 1,000 characters; a longer one is refused. An empty string marks it decorative (`POST /media/register` reads a blank as not described); leaving it out leaves it undescribed. No other field is taken: one this endpoint does not know is refused with `invalid_field` naming it. |
| Field | Type | Description |
|---|---|---|
data | object | The file, in the shape `GET /media` lists it: `id`, `kind`, `url`, `mime_type`, `width`, `height`, `byte_size`, `page_count`, `has_audio_track`, `filename`, `alt_text`, `tags` and `created_at`. `filename` and `tags` are null, since an import names and tags nothing. |
duplicate_of | string | null | The id of a file this library already held with exactly these bytes, or null. The new file is added either way. |
curl -X POST https://crestnote.com/api/v1/media/import \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: launch-photo-1" \
-d '{"url":"https://images.example.com/cortado.jpg","altText":"A cortado on a wooden counter"}'/linksList tracked links
The workspace's tracked links, newest first: the short `/go/` addresses that send a tap on to a destination and count it. Each carries the public `url` to put in a caption, a bio or a QR code, its taps in the window and of all time, and whether a link in bio button uses it. The window is `range`, in whole UTC days ending today, so `7d` is today and the six days before it. `taps_in_range` is counted exactly, and agrees with `GET /links/{id}/stats` for the same range unless that answer says `truncated`. Taps are kept 90 days, so `90d` is the widest window; `total_taps` is the all-time count kept on the link, which survives that. Before making a link, pass `destination` to find one that already goes there. A tap records when it happened and the host of the page it came from; its country and kind of device, system and browser are each added to a daily count on their own, and no address or identifier of the person who tapped is kept.
member token
| Name | In | Description |
|---|---|---|
range | query | The window `taps_in_range` counts and `tapped` reads. Defaults to `30d`. `24h` is refused: taps are counted by UTC day.7d | 30d | 90d |
tapped | query | `true` lists only the links tapped at least once in the window. `false`, the default, lists every link.true | false |
destination | query | Lists only the links that send taps to exactly this address, compared as a browser reads it, the way `POST /links` stores it. Campaign fields are kept apart from the address, so leave them off. |
campaign | query | Lists only the links counted under this campaign name (`campaign_label`), capitals aside, up to 120 characters and no asterisk. Without `tapped=true` it lists every such link, one never tapped too (`taps_in_range` 0, `last_tap_at` null). |
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
| Field | Type | Description |
|---|---|---|
id | string | The link’s id, for `GET /links/{id}/stats`. |
slug | string | The short name, the part after `/go/`. It never changes. |
url | string | The public address: this deployment’s https origin, `/go/`, then the short name. |
destination | string | Where a tap goes while the link is live, before the campaign fields are added. |
label | string | null | The workspace’s own name for it, never shown to whoever taps. |
utm_source | string | null | Added to the destination when somebody taps, replacing any `utm_source` already on it. |
utm_medium | string | null | The same, for `utm_medium`. |
utm_campaign | string | null | The same, for `utm_campaign`. |
utm_content | string | null | The same, for `utm_content`. |
campaign_label | string | null | The campaign name the link is counted under: `utm_campaign` as first typed, then moved when the campaign is renamed in the app, which `utm_campaign` never is. Null when the link has no campaign name. `campaign` filters on it. |
state | string | `live`; `archived` (the workspace switched it off, and the short name stays held); `expired` (past `expires_at`: a tap goes to `expired_destination`, or nowhere when that is null); or `taken_down` (we took it down, and `taken_down_reason` says why). Only `live` and `expired` send anybody anywhere. |
taken_down_reason | string | null | Our reason, written for the workspace, when `state` is `taken_down`; null otherwise. |
expires_at | string | null | When it stops sending taps to `destination`, or null for never. |
expired_destination | string | null | Where a tap goes once it has expired, or null for nowhere. |
taps_in_range | integer | Taps in the window, counted by the database. 0 is a counted zero. |
total_taps | integer | Every tap since the link was made, kept on the link, so it outlives the 90 days the taps themselves are kept. |
last_tap_at | string | null | When it was last tapped, or null if never. |
bio_button | boolean | True when a button on one of the workspace’s link in bio pages points at it. |
created_at | string | When it was made. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/links?range=7d"
/linksMake a tracked link
A short address on this domain, `/go/<slug>`, that sends a tap to `destination` and counts it. It works for anybody the moment it is made, so it needs an admin token: it puts an address of your choosing on our domain, and the link records who made the token. The short name is shared by every workspace, so one already taken anywhere answers 409 `slug_taken` and is never changed for you, because a person may already have pasted the name they asked for: choose another. `destination` must be a complete https address, and an address we took a link down for is refused with `invalid_field`. A workspace holds at most 500 links, archived ones included, and the next answers 409 `limit_reached`; a workspace we suspended answers 423 `workspace_suspended`. The short name cannot be changed later; changing the destination, archiving and deleting are done in the app. A field this endpoint does not take is refused rather than ignored, so `utm_source` answers `invalid_field`: send `utmSource`. Check `GET /links?destination=` first: a link to the same address may already exist.
admin tokenIdempotent
| Field | Type | Description |
|---|---|---|
slugRequired | string | 2 to 32 characters: lowercase letters, digits and hyphens, not starting with a hyphen. Capitals and surrounding spaces are folded away rather than refused, and a few names the product keeps for itself are refused. |
destinationRequired | string | A complete https address, up to 2,048 characters, stored as a browser reads it. |
label | string | null | The workspace’s own name for it, up to 120 characters; longer is refused. |
utmSource | string | null | Sent as `utm_source` when somebody taps, up to 120 characters; longer is refused. Empty or null is none. |
utmMedium | string | null | Sent as `utm_medium`, the same way. |
utmCampaign | string | null | Sent as `utm_campaign`, the same way. |
utmContent | string | null | Sent as `utm_content`, the same way. |
| Field | Type | Description |
|---|---|---|
data | object | The link, with the fields `GET /links` returns except `taps_in_range` and `campaign_label`. |
curl -X POST https://crestnote.com/api/v1/links \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"slug":"autumn-menu","destination":"https://example.com/menu","utmSource":"instagram","utmCampaign":"autumn"}'/links/{id}/statsRead a link’s taps by day
One link’s taps per UTC day over the window, oldest day first, and the hosts they came from, busiest first: the chart and list behind a row on Links. A day’s `taps` is 0 when it was counted with none, and null when it was not read. That happens only when the read stops at its ceiling of 5,000 day and host pairs: `truncated` is then true, the oldest days read are partial, and `taps_in_range` is a floor. A referrer `host` of null means none was sent: a direct visit, a QR scan, a typed address, some apps, or a page that withholds it. Taps are kept 90 days, so `90d` is the widest window; `total_taps` counts all time. The rest is on the workspace’s clock over the same number of calendar days ending today there: the days, the hours of the week, the sources and the taps counted by country, device, system and browser.
member token
| Name | In | Description |
|---|---|---|
idRequired | path | The link’s `id` from `GET /links`, or its short name. One this workspace does not hold answers `not_found`. |
range | query | Defaults to `30d`. `24h` is refused: taps are counted by UTC day.7d | 30d | 90d |
| Field | Type | Description |
|---|---|---|
data | object | `link_id`, `slug`, `url`, `label`, `bio_button`, `state` (as on `GET /links`), `range`, `days` (each `day`, a UTC date as YYYY-MM-DD, and `taps`, null when not read), `taps_in_range`, `truncated`, `referrers` (each `host`, null when none was sent, and `taps`), `total_taps` and `last_tap_at`; `time_zone`, and on that clock over the same number of days: `local_days` (each `day` and `taps`), `hours` (each `weekday`, 1 for Monday, `hour` 0 to 23, and `taps`, only the hours with taps), `sources` (each `host`, null when none was sent and `*` for the rest past the 50 busiest, `source`, the network or kind it names, and `taps`) and `facets` (`counted_taps`, the window’s taps they cover, and `country`, `device`, `os` and `browser`, each a list of `value` and `taps`, counted one attribute at a time; a tap from a browser that asks not to be tracked is not in them), null when the counts could not be read. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/links/autumn-menu/stats?range=7d"
/brandRead the brand kit
What the workspace wrote in its Brand kit, which Crestnote's own writing reads before every caption: its positioning, audience, voice, key facts, the claims it may make and the phrases it never uses, and each network's voice, language and hashtag policy. Write for the workspace by these: never use a banned phrase, and claim only what `allowed_claims` and `key_facts` support. It changes nothing; the Brand kit is written in the app.
member token
| Field | Type | Description |
|---|---|---|
data | object | `profile`: `positioning`, `audience`, `voice`, `key_facts`, `allowed_claims` (each the text written, empty when left blank), `banned_phrases` (a list) and `updated_at`, or null when nobody has saved the Brand kit. `platform_voices`: one row per network with `platform`, `voice` (empty when nobody wrote one, so Crestnote's own default for that network applies), `language` (a language code, or `auto`: written in the language of the audience) and `hashtag_policy` (`inherit` follows the brand voice; otherwise the network's own rule for hashtags). |
curl -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/brand
/labelsList post labels
Every campaign or pillar label on the workspace's posts, most used first, grouped ignoring case the way the app groups them, so a post written through `POST /posts` reuses the workspace's label rather than starting a second spelling of it. Not paged: one read lists up to 5,000 labels, and `truncated` is true when a read reaches that many, since the workspace may hold more, the least used then missing. Labels are renamed and merged in the app.
member token
| Field | Type | Description |
|---|---|---|
data | array | Each `label` (the spelling on its newest post, the one to reuse), `posts` (how many carry it, in any spelling) and `spellings` (every spelling stored). |
truncated | boolean | True when the workspace holds more labels than one read lists. |
curl -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/labels
/snippetsList saved text
The workspace's saved text, newest first: hashtag groups, caption snippets (a sign-off, a disclaimer) and saved replies to comments, as the composer and Signal offer them. Use a hashtag group or a snippet as it is written rather than inventing one. A workspace keeps at most 300. Saved text is written in the Brand kit and the composer.
member token
| Name | In | Description |
|---|---|---|
limit | query | Rows to return, 1 to 200. Defaults to 50. |
cursor | query | The `next_cursor` from a previous response. Omit for the first page. Cursors are opaque and must not be constructed by hand. |
kind | query | Only one kind: `hashtags`, `caption` or `reply`.hashtags | caption | reply |
| Field | Type | Description |
|---|---|---|
id | string | Our id for it. |
kind | string | `hashtags`, `caption` or `reply`. |
name | string | What the workspace called it. |
body | string | The text itself, exactly as it is inserted. |
created_at | string | When it was saved. |
updated_at | string | When it last changed. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/snippets?kind=hashtags"
/platform-limitsWhat each network accepts
Caption ceilings, the unit each network counts them in, how much media each takes, and whether we can publish there at all. Read this rather than hardcoding it: these are somebody else's numbers, they move, and what comes back is what the publish path is currently enforcing rather than a summary of it.
member token
| Field | Type | Description |
|---|---|---|
platform | string | The id used everywhere else in this API. |
label | string | What a person calls it. |
char_limit | integer | The caption ceiling. |
char_unit | string | `characters` or `graphemes`. Bluesky counts graphemes, so a caption of 300 emoji is 300 there and 3,300 to `String.length`. Measure in the unit named here. |
publishes | boolean | False when no post can be sent there from this API: the network takes posts only by hand, its publisher is waiting on the network's approval and no account can be connected yet, or its posts are written in the app itself and never over the API (Google Business Profile). `publish_note` says which. |
publish_note | string | null | Why publishing is unavailable. Null when it is available. |
media | object | What a post there accepts: `max_images`, `min_images`, `max_videos`, `max_documents`, `text_only`, and `accepted_image_types` where the network gates on it. `max_documents` is 1 on LinkedIn, which publishes a PDF as a swipeable document post, and 0 everywhere else. |
post_formats | array | null | The surfaces `postFormat` may name on this network, or null where it has only one and the field is refused. Instagram and Facebook both report `feed`, `reel` and `story`; every other network reports null. Read this rather than assuming a network with Reels in its app accepts them here. What it does NOT say is what each network infers from an omitted value, because the two differ. |
surface_media | object | null | What a post on each of those surfaces accepts, keyed by the same words, or null exactly where `post_formats` is. Each entry has the fields of `media` plus `min_video_seconds` and `max_video_seconds`, the length of its one video in whole seconds, each null where that end is not checked. A `reel` reports one video and no pictures, and a `story` one picture or one video, which `media` alone cannot say. |
curl https://crestnote.com/api/v1/platform-limits
/webhooksSubscribe to events
Adds a webhook endpoint that receives the events named, which is how our Zapier app subscribes when somebody turns on a Zap, and our Make app when somebody creates a webhook for its Watch events trigger in a scenario. The address is checked exactly as on API access: it must start with https, and one that resolves to a private network address is refused, then checked again on every delivery. A workspace can hold 50 endpoints subscribed this way, counted apart from the ones a person adds on API access, and the next is refused with `limit_reached`. The endpoint appears on API access marked as added through the API. The signing secret is not in the response, because a response to a request carrying `Idempotency-Key` is stored for replay and a secret is never stored readable: rotate it on API access to read one. An endpoint that answers a delivery with 410 is removed, the same as calling `DELETE /webhooks/{id}`.
admin tokenIdempotent
| Field | Type | Description |
|---|---|---|
urlRequired | string | Where deliveries are POSTed. https only, up to 2,048 characters. |
eventsRequired | array | One or more of `post.published`, `post.failed`, `post.awaiting_approval`, `post.first_comment_failed`, `connection.expired`. A repeat is dropped. |
| Field | Type | Description |
|---|---|---|
data | object | The endpoint: `id` (keep it, to unsubscribe), `url`, `events`, `active`, `created_via` (always `api`) and `created_at`. |
curl -X POST https://crestnote.com/api/v1/webhooks \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"https://hooks.example.com/crestnote","events":["post.published"]}'/webhooks/{id}Unsubscribe
Removes an endpoint this API subscribed, with its delivery history. An endpoint a person added on API access is not reachable here, so turning off a Zap or deleting a webhook in Make can never remove somebody's own server. When nothing this API subscribed in the workspace has that id (it is already gone, a person added it, or it belongs to another workspace) the answer is a 200 with `deleted: false`, the same in all three cases, so a retried unsubscribe succeeds and nothing is confirmed about the id.
admin tokenIdempotent
| Name | In | Description |
|---|---|---|
idRequired | path | The `id` from `POST /webhooks`. |
| Field | Type | Description |
|---|---|---|
data | object | `id`, and `deleted`: true when this call removed the endpoint, false when there was nothing to remove. |
curl -X DELETE -H "Authorization: Bearer $TOKEN" https://crestnote.com/api/v1/webhooks/{id}/webhooks/samplesRecent events of one type
Up to three recent events of one type in this workspace, newest first, each in the envelope a delivery carries. They are the deliveries this workspace's endpoints were actually sent, with Send test deliveries left out. When there are none, they are built from the notifications the same events raised, and then `id` is the notification's id and `message` holds at most 1,000 characters where a delivery holds up to 2,000. An empty list means the event has not happened here yet. Our Zapier app calls this to show real data while a Zap is being set up.
member token
| Name | In | Description |
|---|---|---|
eventRequired | query | Which event.post.published | post.failed | post.awaiting_approval | post.first_comment_failed | connection.expired |
| Field | Type | Description |
|---|---|---|
data | array | Envelopes: `id`, `type`, `created_at`, `workspace_id` and `data`, exactly as delivered. |
curl -H "Authorization: Bearer $TOKEN" "https://crestnote.com/api/v1/webhooks/samples?event=post.published"
MCP server
The same operations, spoken to by an agent instead of a script. Point any MCP client at the endpoint with the same token in the same header.
{
"mcpServers": {
"social": {
"url": "https://crestnote.com/api/mcp",
"headers": { "Authorization": "Bearer $TOKEN" }
}
}
}A client that signs in needs no token. A request without one is answered 401 with a WWW-Authenticate header pointing at the protected resource metadata (RFC 9728), at /.well-known/oauth-protected-resource/api/mcp, which names this origin as the authorization server (RFC 8414, at /.well-known/oauth-authorization-server). It takes a Client ID Metadata Document or dynamic client registration (RFC 7591), public clients only, requires PKCE with S256, and sends a person to a consent screen where an owner or admin picks one workspace and Read only (read, the member role) or Read and write (read write, admin). An access token lasts an hour; a refresh token is good for 90 days and is replaced every time it is used. A connection never does more than the person who made it can do now, and is listed and disconnected under Connected apps on API access. Where an owner requires two-factor of everybody in the workspace, it works only while that person has an authenticator app, and their consent is refused until they sign in with one. Only /api/mcp accepts its token.
Every tool carries a title and three hints: readOnlyHint is true on the 21 that only read, destructiveHint true on the 5 that change, cancel, stop or hide something already there, and openWorldHint true on the 9 that reach past the workspace: a post that can publish to a network, a reply or a hidden comment on one, a tracked link anybody can open, a file downloaded from a link, or a search of Instagram’s music.
It speaks JSON-RPC 2.0 over a single POST: initialize, tools/list and tools/call. There is deliberately no SSE stream, no notifications, no sampling and no resources, because each needs server state a serverless deployment does not have, and a capability claimed and then unanswered reads as a broken server rather than a smaller one.
Each tool calls the same function its REST endpoint calls, so an agent and a script cannot see different rows of the same workspace.
| Tool | Same as | Needs |
|---|---|---|
get_workspace | GET /me | member token |
list_accounts | GET /accounts | member token |
list_posts | GET /posts | member token |
get_post | GET /posts/{id} | member token |
list_free_slots | GET /free-slots | member token |
create_post | POST /posts | admin token |
update_post | PATCH /posts/{id} | admin token |
cancel_post | DELETE /posts/{id} | admin token |
repeat_post | POST /posts/{id}/repeat | admin token |
stop_repeat | DELETE /posts/{id}/repeat | admin token |
list_rivals | GET /rivals | member token |
list_rival_posts | GET /rivals/posts | member token |
add_rival | POST /rivals | admin token |
remove_rival | DELETE /rivals/{id} | admin token |
list_comments | GET /comments | member token |
reply_to_comment | POST /comments/{id}/reply | admin token |
hide_comment | POST /comments/{id}/hide | admin token |
get_analytics | GET /analytics | member token |
list_posts_worth_promoting | GET /analytics/worth-promoting | member token |
suggest_hashtags | GET /analytics/hashtags | member token |
get_best_times | GET /analytics/best-times | member token |
get_reply_figures | GET /analytics/replies | member token |
search_instagram_audio | GET /instagram-audio | member token |
list_media | GET /media | member token |
import_media_from_url | POST /media/import | admin token |
list_links | GET /links | member token |
create_link | POST /links | admin token |
get_link_stats | GET /links/{id}/stats | member token |
get_brand_profile | GET /brand | member token |
list_labels | GET /labels | member token |
list_snippets | GET /snippets | member token |
get_platform_limits | GET /platform-limits | member token |
Webhooks, signed
Events
When something happens in your workspace, we POST a JSON body to an https address you choose. An admin adds the address in Settings, under API access, and presses Send test to send a ping, a test in the shape of one event with every id null, or a replay of the newest real event: its type and data as they were, under a new id. The test in the shape of an event and the replay carry test: true on the envelope, which a real event never does, so a receiver can tell them apart; the ping is told apart by its type.
| Event | Sent when |
|---|---|
post.published | A post went live on a network. |
post.failed | A post failed to publish. |
post.awaiting_approval | A post is waiting for somebody to approve it. |
post.first_comment_failed | A post went live without its first comment. |
connection.expired | A connected account stopped working and needs reconnecting. |
ping | You press Send test. Nothing subscribes to it. |
Every event arrives in the same envelope, and id is the same value as the webhook-id header. For a post event, data carries post_id, platform, scheduled_at, post_url, post_format and group_id. post_format is where the post went on Instagram or Facebook (feed, reel or story), and null means the surface the network picks by default. group_id is shared by every post made in one press, so a run of Stories sent as one arrives as one event per Story, each with the same group_id. On post events it also carries last_error_kind: on post.failed, what the failure needs (credential, media, board, content or unknown_outcome, as on a post), or null when nobody could classify it; null on every other post event. The reason in words is the message. Connection events do not carry it. For connection.expired it carries account_id and platform. Both also carry a title and a message in words, and a field we could not fill is null. A ping carries only a message.
{
"id": "...",
"type": "post.published",
"created_at": "2026-09-14T09:00:00.000Z",
"workspace_id": "...",
"data": {
"post_id": "...",
"platform": "instagram",
"scheduled_at": "2026-09-14T09:00:00.000Z",
"post_url": "https://...",
"post_format": "story",
"group_id": "...",
"last_error_kind": null,
"title": "...",
"message": "..."
}
}Subscribing from code
A tool can add its own endpoint with POST /webhooks and remove it with DELETE /webhooks/{id}. Our Zapier app does this when a Zap is turned on and off, and our Make app when a webhook for its Watch events trigger is created and deleted in Make. Both calls need an admin token. An endpoint added this way appears on API access marked as added through the API, and a token can only remove the endpoints a token added. Removing one that is already gone answers 200 with deleted: false, so an unsubscribe can be retried safely.
A workspace holds up to 50 endpoints added this way and 10 added on API access, counted separately. GET /webhooks/samples?event=post.published returns up to three recent events of one type in the same envelope, for showing real data while an integration is set up. The signing secret of an endpoint added this way is read by rotating it on API access.
Signing
Every delivery is signed, following the Standard Webhooks specification, so any library written for it can check the signature. Three headers carry it: webhook-id, webhook-timestamp in Unix seconds, and webhook-signature. The signature is v1, followed by the base64 HMAC-SHA256 of the id, the timestamp and the raw body joined by full stops. The key is your secret with its whsec_ prefix removed and the rest decoded from base64. Refuse a timestamp far from the current time, because every retry is signed again with a fresh one.
Retries
Answer with any 2xx status within 10 seconds. A redirect is not followed and counts as a failure, like any other status or no answer. A failed delivery is tried again on this schedule, then given up.
| Retry | Minutes after the attempt before it |
|---|---|
| 1 | 5 |
| 2 | 15 |
| 3 | 60 |
| 4 | 240 |
| 5 | 720 |
The same event keeps the same webhook-id on every retry, so use it to skip one you have already handled. An endpoint that has failed 20 times in a row and has had no success for 24 hours is switched off, and nothing queued for it is sent later.
Answer 410 to stop the deliveries. It is never retried: an endpoint added through the API is removed, the same as unsubscribing, and one added on API access is switched off and the workspace is told.
Addresses must start with https, and one that resolves to a private network address is refused on every attempt.