API v2
Authentication, response codes, request bodies, safe retries, pagination, and the stability promise for the /v2 namespace
Updated Dec 3, 2026
/v2 is where new Sleekplan endpoints are built. It sits alongside /v1 rather than replacing it: your existing integration keeps working unchanged, the same API key authenticates both, and you can call either namespace from the same codebase.
Authentication
/v2 accepts Bearer tokens only. Unlike /v1, there is no Basic auth and no ?api_key= query parameter.
curl https://api.sleekplan.com/v2/groups \
-H "Authorization: Bearer YOUR_API_KEY"Your key identifies the workspace, so no workspace or product ID appears anywhere in a /v2 URL. Get your key from Settings → Developer.
A credential that is missing, malformed, or simply not an API key (an admin dashboard session token, for example) is rejected with 401.
Response envelope
Every response carries the same envelope as /v1: a status and a data object.
{
"status": "success",
"data": { "group_id": 17, "name": "Acme Corporation" }
}{
"status": "error",
"data": { "key": "not_found", "message": "Group not found" }
}Errors carry a machine-readable data.key. Branch on that rather than on the message, which is written for humans and may be reworded.
A validation error carries data.errors instead of a message, one entry per offending field:
{
"status": "error",
"data": {
"key": "validation_error",
"errors": [
{ "field": "id", "message": "An id is required." }
]
}
}Response codes
Success
| Status | When | Body |
|---|---|---|
200 | A read, or an update that was applied | The resource, or a page of them |
201 | A resource was created | The created resource |
202 | A feedback report was accepted, and Sleek Intelligence works on it in the background | The report's intake_id |
204 | A resource was deleted or unassigned | Empty: do not parse it |
Errors
| Status | data.key | Meaning |
|---|---|---|
400 | validation_error | A field is missing or malformed; data.errors lists them |
400 | invalid_argument | A value is well formed but cannot be used, for example a key this workspace does not define |
400 | user_required | The request needs a person in user, and the body has none |
401 | unauthorized | Missing, malformed, or non-API-key credential |
402 | credits_exhausted | Your workspace has no Sleek Intelligence credits left, so a feedback report is refused |
403 | forbidden | The key's user lacks the permission for this action |
404 | not_found | No such resource in this workspace, or no endpoint at this path |
404 | user_not_found | None of your users matches the data_id or email in user |
405 | method_not_allowed | The path exists, but not for this HTTP method; the Allow header lists the methods it takes |
409 | identifier_taken | That identifier is already used in this workspace |
409 | invalid_transition | The work item's status does not allow this; the message says what is allowed now |
409 | already_claimed | Another run holds the work item; the message says who |
409 | run_not_active | The report names a run that is not the work item's active run |
409 | feedback_already_linked | A post belongs to one work item, and another one holds it; the message names it |
409 | conflict | The change does not apply to the conversation as it is now, for example closing one that is already closed |
409 | stale_version | Someone saved the docs article after the version you sent; read it again and apply your change to the new text |
409 | slug_taken | Another page of the same docs tab already uses that slug |
409 | spec_owned | The docs article or collection follows an API reference, so it cannot be changed this way |
409 | not_published | The docs article is not published |
409 | identity_conflict | More than one of your users matches the data_id or email in user |
409 | idempotency_key_reused | This Idempotency-Key came with another body before; use a new key for a new request |
409 | request_in_progress | A request with this Idempotency-Key is still running; Retry-After gives the seconds to wait |
409 | maybe_started | Starting a conversation may have worked anyway; look for it in GET /v2/conversations before you send it again with a new key |
409 | intelligence_off | Sleek Intelligence is turned off for this workspace |
409 | source_off | Feedback reports from this source (api or mcp) are turned off in Settings → Feedback Channels |
409 | docs_off | Docs are turned off for this workspace |
409 | ask_off | Sleekmate for end users is turned off, so no conversation can be started |
409 | no_address | The customer has no email address to write to |
409 | chat_unavailable | The customer can't open the chat on your board; send an email instead |
422 | upload_refused | A docs article links a temporary upload that was not made for this workspace, or is gone |
429 | rate_limit | Over the rate limit |
429 | rate_limited | Over a limit of the action itself: the key owner's own limit for conversation replies, notes, updates and starts, which counts their work in the dashboard too, or a cap on feedback reports or on conversations a person starts. Retry-After gives the seconds to wait |
500 | write_failed | The write could not be completed. The resource is unchanged, so the call is safe to retry |
500 | internal_error | Something failed on our side that the endpoint does not name specifically |
503 | index_unavailable | The docs article could not be deleted right now; nothing was removed, so try again in a minute |
503 | storage_unavailable | The images of a docs article could not be stored right now; nothing was saved, so try again in a minute |
503 | unavailable | The request couldn't be processed right now, and it wrote nothing; try again, with the same Idempotency-Key if you sent one |
404 means "not in your workspace", which is the same answer you get for a resource that belongs to someone else. A /v2 request can never reach another workspace's data, because the key decides which workspace it runs against.
The one that is not a normal error
A feature your plan does not include answers with HTTP 200, not 402 or 403, and the key is in data.code, not data.key. Checking only the status code makes this read as a success.
{
"status": "error",
"data": {
"code": "upgrade_required",
"message": "User groups is available on the Business plan and above.",
"feature": "groups",
"feature_name": "User groups",
"required_plan": "business",
"required_plan_name": "Business",
"cta": "billing"
}
}Treat status === "error" as the reliable signal, then look at data.key or data.code.
Request bodies
POST /v2/intelligence/intake, POST /v2/docs/search and POST /v2/conversations read their JSON bodies the same way, and new endpoints follow them:
- Only the fields the endpoint takes. Any other field answers
400 validation_errornaming it, so a typo never goes unnoticed. nullis the same as leaving a field out. An optional field sent asnullcounts as not sent, and a required one sent asnullis missing.- A blank text is no text. An optional text of nothing but spaces, line breaks or invisible characters counts as not sent, and a required one is missing.
- Text is UTF-8, and lengths count characters, not bytes.
- One answer names every problem. A
400 validation_errorlists every field that's off at once, theIdempotency-Keyheader included. A body that isn't a JSON object is one error, on the fieldbody.
These three endpoints take the person a request is about as user: your own ID for them, data_id, or their email.
{
"user": { "data_id": "usr_1042", "email": "jane@example.com" }
}When both are sent, data_id decides. Two of your users with the same value answer 409 identity_conflict. What happens when nobody matches depends on the endpoint, as its page in the API reference says. Matching only reads: it never sets a data_id or an address on anyone.
Safe retries
A write that timed out may have happened anyway. POST /v2/intelligence/intake and POST /v2/conversations take an Idempotency-Key header, so you can send the same request again without reporting the same feedback twice or starting a second conversation.
curl https://api.sleekplan.com/v2/conversations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 4f9c2a1e-8b7d-4c3a-9e6f-2d1b0a9c8e7f" \
-d '{"from": "user", "user": {"email": "jane@example.com"}, "subject": "Export to CSV fails", "text": "The export button does nothing on my account."}'- A key is 1 to 255 visible ASCII characters, without spaces. Make a new one, such as a UUID, for every new request, and send it again only with a retry of that request.
- The same key with the same body within 24 hours answers the first request's answer again and writes nothing. That answer carries the header
Idempotent-Replayed: true. - Bodies are the same when their values are. The order of the fields, a field sent as
nullor left out, and adata_idsent as1042or"1042"make no difference. - The same key with another body answers
409 idempotency_key_reused. - While the first request is still running, a repeat answers
409 request_in_progresswithRetry-After: 2. - A request that was refused before it wrote anything leaves no record, so its key is free again: fix the request and send it with the same key.
409 maybe_started, when you start a conversation, means the start failed after its first message may have been stored. The key keeps that answer: a repeat answersmaybe_startedagain and never starts a second conversation. Look for the conversation inGET /v2/conversationsbefore you send it again with a new key.503 unavailablemeans the request wrote nothing: try again with the same key.
A key counts for one endpoint in one workspace.
Pagination
List endpoints take page and per_page and return the page alongside the items. The conversations list is the exception: it pages by cursor.
| Parameter | Default | Notes |
|---|---|---|
page | 0 | Zero-based. The first page is 0, not 1 |
per_page | 30 | Maximum 100; anything higher is clamped rather than rejected |
{
"status": "success",
"data": {
"items": [],
"has_more": true,
"page": 0
}
}page echoes the page you asked for. Keep requesting the next one while has_more is true. There is no total count, so do not compute a page count.
Cursor paging
The conversations list, GET /v2/conversations, pages by an opaque cursor instead of a page number. It answers next_cursor in place of page:
| Parameter | Default | Notes |
|---|---|---|
cursor | none | The next_cursor of the page before. Pass it on as you got it |
per_page | 30 | 1 to 50. Any other value is rejected with 400 |
{
"status": "success",
"data": {
"items": [],
"has_more": true,
"next_cursor": "1kRC8Td-M1s3oqg3HJWimAPV"
}
}Send next_cursor back as cursor, with the same filters and sort, until has_more is false. On the last page next_cursor is null. A cursor from another sort, or a page parameter, answers 400.
Rate limits
300 requests per 60 seconds per workspace, independent of plan. Exceeding it returns 429 with "key": "rate_limit".
Some writes also count toward a limit of the key's owner, together with what that person does in the dashboard. Conversation replies and notes (60 per 10 minutes) and conversation updates (120 per 10 minutes) answer 429 with "key": "rate_limited". A conversation your team starts counts as a reply, and toward 30 starts an hour for the key's owner. Docs article saves, which are creates, updates and publishes (120 per 10 minutes), answer 429 with "key": "rate_limit". Both carry a Retry-After header with the seconds to wait.
Feedback reports and conversations started through the API also have caps per person and per workspace, listed with their endpoints in the API reference. Over a cap, the answer is 429 with "key": "rate_limited" and Retry-After.
Stability
Changes to /v2 are additive. We may add endpoints, optional parameters, and response fields, but we do not remove or rename existing ones, change a field's type, or change a status code.
Write your integration to ignore response fields it does not recognise, and new fields will never break it. There is no version to pin and no upgrade to schedule: a breaking change would arrive as a new namespace, not as a change to this one.
Endpoints
Every /v2 endpoint, with its parameters, request bodies, and responses, is in the API reference under Sleekplan API v2.
Companies, accounts, and teams, and who belongs to them.
Plans, specs and research: the thinking behind your feedback.
What gets worked on next, from the brief to the merged pull request.
Report what a customer asked for from your backend or MCP server. Sleek Intelligence adds it to a matching post or files a new one.
Your customers' chats and emails: start them, read them, reply or add a note, snooze or close them.
Your help center and developer docs: write articles, publish them, take them offline, and search what's published.
Create, use, and rotate your key.
