REST API

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.

Bash
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" }
}

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:

400
{
  "status": "error",
  "data": {
    "key": "validation_error",
    "errors": [
      { "field": "id", "message": "An id is required." }
    ]
  }
}

Response codes

Success

StatusWhenBody
200A read, or an update that was appliedThe resource, or a page of them
201A resource was createdThe created resource
202A feedback report was accepted, and Sleek Intelligence works on it in the backgroundThe report's intake_id
204A resource was deleted or unassignedEmpty: do not parse it

Errors

Statusdata.keyMeaning
400validation_errorA field is missing or malformed; data.errors lists them
400invalid_argumentA value is well formed but cannot be used, for example a key this workspace does not define
400user_requiredThe request needs a person in user, and the body has none
401unauthorizedMissing, malformed, or non-API-key credential
402credits_exhaustedYour workspace has no Sleek Intelligence credits left, so a feedback report is refused
403forbiddenThe key's user lacks the permission for this action
404not_foundNo such resource in this workspace, or no endpoint at this path
404user_not_foundNone of your users matches the data_id or email in user
405method_not_allowedThe path exists, but not for this HTTP method; the Allow header lists the methods it takes
409identifier_takenThat identifier is already used in this workspace
409invalid_transitionThe work item's status does not allow this; the message says what is allowed now
409already_claimedAnother run holds the work item; the message says who
409run_not_activeThe report names a run that is not the work item's active run
409feedback_already_linkedA post belongs to one work item, and another one holds it; the message names it
409conflictThe change does not apply to the conversation as it is now, for example closing one that is already closed
409stale_versionSomeone saved the docs article after the version you sent; read it again and apply your change to the new text
409slug_takenAnother page of the same docs tab already uses that slug
409spec_ownedThe docs article or collection follows an API reference, so it cannot be changed this way
409not_publishedThe docs article is not published
409identity_conflictMore than one of your users matches the data_id or email in user
409idempotency_key_reusedThis Idempotency-Key came with another body before; use a new key for a new request
409request_in_progressA request with this Idempotency-Key is still running; Retry-After gives the seconds to wait
409maybe_startedStarting a conversation may have worked anyway; look for it in GET /v2/conversations before you send it again with a new key
409intelligence_offSleek Intelligence is turned off for this workspace
409source_offFeedback reports from this source (api or mcp) are turned off in Settings → Feedback Channels
409docs_offDocs are turned off for this workspace
409ask_offSleekmate for end users is turned off, so no conversation can be started
409no_addressThe customer has no email address to write to
409chat_unavailableThe customer can't open the chat on your board; send an email instead
422upload_refusedA docs article links a temporary upload that was not made for this workspace, or is gone
429rate_limitOver the rate limit
429rate_limitedOver 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
500write_failedThe write could not be completed. The resource is unchanged, so the call is safe to retry
500internal_errorSomething failed on our side that the endpoint does not name specifically
503index_unavailableThe docs article could not be deleted right now; nothing was removed, so try again in a minute
503storage_unavailableThe images of a docs article could not be stored right now; nothing was saved, so try again in a minute
503unavailableThe request couldn't be processed right now, and it wrote nothing; try again, with the same Idempotency-Key if you sent one
Note

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

Warning

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.

200
{
  "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_error naming it, so a typo never goes unnoticed.
  • null is the same as leaving a field out. An optional field sent as null counts as not sent, and a required one sent as null is 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_error lists every field that's off at once, the Idempotency-Key header included. A body that isn't a JSON object is one error, on the field body.

These three endpoints take the person a request is about as user: your own ID for them, data_id, or their email.

JSON
{
  "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.

Bash
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 null or left out, and a data_id sent as 1042 or "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_progress with Retry-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 answers maybe_started again and never starts a second conversation. Look for the conversation in GET /v2/conversations before you send it again with a new key.
  • 503 unavailable means 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.

ParameterDefaultNotes
page0Zero-based. The first page is 0, not 1
per_page30Maximum 100; anything higher is clamped rather than rejected
JSON
{
  "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:

ParameterDefaultNotes
cursornoneThe next_cursor of the page before. Pass it on as you got it
per_page301 to 50. Any other value is rejected with 400
JSON
{
  "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

Note

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.

Groups

Companies, accounts, and teams, and who belongs to them.

Documents

Plans, specs and research: the thinking behind your feedback.

Work Items

What gets worked on next, from the brief to the merged pull request.

Feedback reports

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.

Conversations

Your customers' chats and emails: start them, read them, reply or add a note, snooze or close them.

Docs

Your help center and developer docs: write articles, publish them, take them offline, and search what's published.

API keys

Create, use, and rotate your key.