Reference

REST API

Every endpoint, every header, every status code the SDK can receive.

The SDK speaks RDUI/1 over HTTPS. You rarely call these endpoints yourself — but when a turn goes wrong, this is the layer the answer is in.

Base URL: https://api.rendel.ai

Headers

Sent on every request. Before the rename they were X-NC-Key, X-NC-Device and X-NC-User-Token, and keys started nc_pk_; both spellings are accepted, and an nc_pk_ key keeps working.

HeaderRequiredWhat it is
X-Rendel-KeyYesYour publishable key. rd_pk_live_… serves live traffic and counts against your plan; rd_pk_test_… opens test conversations, whose answers count against your plan too, shown apart as test. Publishable keys are public by design — they ship inside your binary — so nothing they can reach is a secret.
X-Rendel-DeviceRecommendedAn opaque per-install id, 32 lowercase hex characters. It is what rate limits are bucketed by, what identify binds a user to, and what makes two launches of one install a returning device rather than two new ones. Required on POST /v1/invocations/:id/confirm, /edit and /undo, /v1/feedback, /v1/ratings, /v1/uploads, /v1/pairings/claim, /v1/identify/reset, /v1/memory, /v1/push/token, POST /v1/followups/:id/open and POST /v1/conversations/:id/away. Omit it and every request from every device that omits it shares one bucket.
Content-TypeOn POSTapplication/json, except on POST /v1/uploads, where it is the file's type.
X-Rendel-User-TokenOn POST /v1/chat, /v1/invocations/:id/confirm and /undo, when a console action calls your API as the signed-in userThe signed-in user's token from your app, passed to console actions set to use the signed-in user's token. Cut at 8,192 characters. Never logged or stored.
X-Rendel-User, X-Rendel-User-HmacOn /v1/memory and /v1/invocations/:id/confirm, for a signed-in personWho the request is about: the id your app passes to identify, and its HMAC when identity verification is on. Without them, the install's own anonymous record. On /v1/memory a signed-in person needs a valid HMAC: an id alone is the install's anonymous record too.
X-Rendel-SDK, X-Rendel-PlatformOn GET /v1/apps/configWhich build is calling, as client.sdk names it (web/0.21.0), and from where (web, ios, android…), for the console's device records.
X-Rendel-FilenameOn POST /v1/uploads, optionalThe file's name, URL-encoded, up to 200 characters, so the model and a card can name it.
X-Request-IdNoYour own trace id for this turn. If you send one we use it; otherwise we mint one. Either way it comes back on the response as X-Request-Id and inside turn.start.
If-None-MatchNoOn GET /v1/apps/config only. Send the last ETag you saw to get a 304 with no body.

Where the device id comes from

The Flutter SDK mints one and, if you give it RendelConfig.deviceIdStore, keeps it across launches. Without a store it is new on every cold start, which is correct but forgetful: rate limits reset per launch and your console device counts read high.

Status codes

The same codes mean the same things on every endpoint.

StatusWhenBody
200SuccessThe endpoint's response body.
201Created{ id, media_type, bytes }. Only POST /v1/uploads.
204Accepted, nothing to sayEmpty. POST /v1/events, POST /v1/push/token, DELETE /v1/memory, and GET /v1/followups/next when there is nothing to show.
304Your cached copy is currentEmpty. Only GET /v1/apps/config.
400The request did not parse, or a required header was missing{ error: { code, message, details? } }
401Unknown, revoked or malformed key; on POST /v1/goals and POST /v1/people/:id/notes, a signature that does not check{ error: { code: "invalid_key" } }; invalid_signature on those two
403The app is suspended (app_suspended on config, logo, launcher icon and uploads; quota_exceeded on chat, confirm, edit, undo and pairing), identity verification is required and was not presented (on DELETE /v1/memory/:id, a signed-in person's note asked for without a valid HMAC, from an install that did not save it), or a browser request came from an origin not listed under Settings › Security › Allowed domains (origin_not_allowed; a test key also answers on localhost){ error: { code, message? } }
404The thing named does not exist, or is not yours{ error: { code: "invalid_request", message } }; no_logo on the logo, no_launcher_icon on the launcher icon, pairing_not_found on pairing, and not_found on memory, follow-ups and speech
409A confirmation card changed after it was answered or expired; on POST /v1/goals and POST /v1/people/:id/notes, the app has no identity secret yet; on notes, also memory off or too many facts{ error: { code: "invalid_request", message }, status } on POST /v1/invocations/:id/edit; { error: { code: "no_identity_secret", message } } on goals and notes; memory_off and too_many_notes on notes
413An upload over 20 MB{ error: { code: "payload_too_large", message } }
415An upload of a type the model cannot read{ error: { code: "unsupported_media_type", message } }
422A value changed on a confirmation card fails the action's checks; on POST /v1/people/:id/notes, a fact the filter will not keep{ error: { code: "invalid_params", message, fields } } on POST /v1/invocations/:id/edit; { error: { code: "note_refused", message, key, reason } } on notes
429Rate limited{ error: { code: "rate_limited", message } }, sometimes with Retry-After
502Storage refused an upload{ error: { code: "upload_failed", message } }. Retry.
503The service is not able to serve this deployment{ error: { code: "internal", message } }; uploads_unavailable on uploads, logo_unavailable on the logo and launcher_icon_unavailable on the launcher icon

A 404 is deliberately the same answer for "no such id" and "not your id". Telling a caller holding a public key which ids exist is a lookup oracle over another tenant's id space.

Once the SSE stream has opened, POST /v1/chat reports failures inside the stream as an error event with the same codes, not as an HTTP status — the response was already 200 by then. See Error codes.

POST /v1/chat

The one workhorse. Send exactly one of message, form_submission, selection or tool_results, plus the client handshake. Returns text/event-stream.

FieldRequiredWhat it is
conversation_idNoOmit it to start one. The server mints it and returns it on turn.start.
messageOne of four{ text, detail_of? }. text is 1 to 4,000 characters. detail_of ({ title, subtitle?, image_url? }) names the card a detail sheet was opened from, in a build that declares detail_pages.
form_submissionOne of four{ form_id, values }. Each value is a string, a number, a boolean, or an array of up to 100 strings (each up to 500 characters). Arrays carry a multi_select's picks and an upload field's ids from POST /v1/uploads. Upload ids count only for fields that the newest form with that form_id declared as upload.
selectionOne of fourWhat the user picked on a variant_picker, datetime_slots or choice this conversation drew: { block_id, ids, other_text? }. block_id is the block's wire id. ids holds 0 to 24 option ids (each up to 64 characters). Each must be an option the block offers that is not available: false. variant_picker and datetime_slots take exactly one id. A single choice takes one, and a multi choice takes between min_selected and max_selected. Send empty ids to skip a choice that has skip, or with other_text (1 to 300 characters) for a choice that has other; other_text never comes with ids. The server checks the pick against the block it drew. The turn ends with a non-retryable invalid_request if the pick does not fit, if the block was already answered, or if a newer revision of its surface_id replaced it.
tool_resultsOne of four1 to 10 results, each { invocation_id, status, confirmed?, data?, error? }. status is success, error, declined or timed_out. data up to 32 KB serialized; a larger one is cut to its start, with _cut saying so. error is up to 1,000 characters. A success on a write or destructive action without confirmed: true is recorded as declined.
attachmentsNoUp to 4 ids from POST /v1/uploads, uploaded by this device. Ids that are not this device's are dropped silently.
turn_idNoA uuid you mint once per turn and resend unchanged when you retry. The server writes the user's message at most once per (app_id, turn_id), so a retry after a dropped stream neither duplicates the message nor bills for it twice. App-scoped rather than conversation-scoped on purpose: conversation_id is minted by the server and only reaches you on turn.start, so a stream that dies before that leaves you with no conversation to name — which is exactly the case worth deduping. Omit turn_id and every retry counts as a new turn.
userNoWho is signed in to your app, on this turn: { id, hmac? }, or null when nobody is. The turn goes to that person whatever device sent it, and a conversation that belongs to somebody else is not continued — a new one opens. null puts the turn on the device's anonymous record, never on whoever used the device before. hmac is the same signature /v1/identify takes; a person whose record was signed for only takes signed turns, and an unsigned one is served as anonymous. Without hmac, a person's existing record is opened only from an install that has been them before; from any other install the turn is that install's anonymous record. Omit the field entirely and the server falls back to the device's /v1/identify binding, which is how the Flutter SDK before 0.13.0 works.
clientYesThe capability handshake: { protocol, sdk, catalog_version, components, manifest_hash?, locale?, languages?, capabilities?, actions? }, described below. The server builds the model's toolset from the intersection of its catalog and your components, so an old build is never offered a block it cannot draw.
contextNo{ app_state?, current_screen?, open_forms? }, treated as untrusted data and never as instructions. app_state must serialize to 8 KB or less. current_screen (up to 120 characters) is the screen the question was asked on, which the SDKs send on every turn and the server keeps with the question; the model also reads the few screens the device showed before it, from its screen views. open_forms holds up to 3 unsubmitted forms ({ form_id, values, edited }), sent by a build that declares form_update. edited names the fields the user changed, which the model is told not to overwrite.
curl -N https://api.rendel.ai/v1/chat \
  -H "X-Rendel-Key: rd_pk_test_..." \
  -H "X-Rendel-Device: 4f3c1a0b9d2e8f7a6b5c4d3e2f1a0b9c" \
  -H "Content-Type: application/json" \
  -d '{
    "message": {"text": "Where is my order 1042?"},
    "turn_id": "3f1c2b90-8e4d-4a71-9c15-2b7e0a4d6f83",
    "client": {
      "protocol": 1,
      "sdk": "web/0.21.0",
      "catalog_version": "2026-09.a",
      "components": ["text", "quick_replies", "order_tracker", "confirm_card"],
      "actions": ["reply", "open_url", "navigate", "call", "copy", "add_to_calendar"],
      "capabilities": ["answer_pages", "detail_pages"]
    }
  }'

The client handshake

FieldWhat it is
protocol1.
sdkYour client and its version, such as web/0.21.0. Up to 60 characters.
catalog_versionThe catalog the build was made against, such as 2026-09.a.
components1 to 96 names, each optionally name@N (for example form@2). A bare name means version 1. Unknown names are ignored, not refused. At least one known component other than confirm_card is required. A version suffix is accepted today but does not yet change what the server sends; declaring @2 readies a build for a later server.
manifest_hashThe hash POST /v1/apps/manifest returned.
localeThe device's language (BCP-47). The server words its own sentences (errors, confirm templates) in it, and Rendel answers in it (chosen from languages when those are set) unless the user writes in another language, which always wins.
languagesUp to 12 language tags, in preference order.
utc_offset_minutesThe device's offset from UTC, from -840 to 840, so "today" and "tomorrow" are the person's own. Absent, the server uses the time zone a push registration gave, else UTC.
capabilitiesform_update, surface_update, answer_pages, detail_pages, notices, read_aloud (the build will read this answer's opening aloud, so the server sends speech as soon as it is written), card_fill (the build draws a card's editable value empty when the call left it out, and holds the confirm button until the person sets it); unknown ones are ignored.
capabilities, supportThe build draws a support page, so the turn can hand the person to the team and a contact block can carry a chat channel. A build that leaves it out gets today's turn, byte for byte.
actionsThe control kinds this build carries out, from reply, open_url, navigate, call, copy, add_to_calendar. If absent, the server assumes reply and open_url only, and a block carrying another kind arrives as a text block of its fallback_text. screens is offered only when navigate is declared and the manifest has routes, and contact only when the console lists contact channels.

Stream events

Every event carries v: 1 and a monotonic seq.

EventFieldsMeaning
turn.startconversation_id, message_id, model, request_id, lang?Assistant turn begins. message_id is the id of the row this turn is stored as — it is what you send back to rate the answer. lang is the language the answer is written in, for the SDK's own words around it.
turn.langlangThe answer's language, before turn.start, when the person's words say it and it is not the device's. For your own words around the wait; ignore it if you draw none.
turn.statusstep, action?What the turn is doing while the reader waits. action means it started calling one of your actions (named in action); composing means it started drawing the answer. Ignore it if you show no progress.
block.startindex, id, block_typeA component is announced; draw its skeleton.
block.deltaindex, text_deltaStreaming text for a text block.
block.readyindex, blockThe validated block; hydrate the skeleton.
action.executeinvocation_id, name, params, timeout_msRun this registered read action, or a write that runs with no card, and send the result back.
action.doneinvocation_id, name, risk, paramsA write the server carried out for the person has happened: a confirmed console action, or one that ran with an Undo. Refresh what your app caches of that data. Sent once the answer about it is written, just before turn.end.
turn.endstatus, pending, usage?, billable?, remaining?completed, awaiting_tool_results, awaiting_confirmation or error. usage carries this turn's input_tokens, output_tokens and cache_read_tokens. remaining ({ count, hint }, to a client that declares notices) says the person has one question left under the app's usage limit: show hint ("1 question left today") quietly until the next one. lang is the answer's language, and speech its opening sealed for GET /v1/speech/:token, absent where the server has no voice.
support.handoffthread_id, conversation_idThe message asked for a person on an app with Support on, so it went to the team instead of the model. Sent only to a build that reports support.
errorcode, message, retryableTyped failure.
noticekind, message, hint, until, actionThe assistant will not answer, on purpose: limit (the person's usage limit) or paused (the spending cap, the month's generated screens used up, or the app's questions per day). For either, draw message where the answer goes, rest the composer with hint ("Back tomorrow") until until (ISO 8601), and offer action ({ label, url }, or null) as a link. Keep the way in on screen; GET /v1/apps/config says available again once a new conversation can start. A build before Flutter 0.72.2 or Web 0.49.3 hid its way in on paused, so it is sent the pause as limit, and the config tells it available: true. Sent only to a client that declares notices; any other gets an error with the same sentence. Not a failure: turn.end follows with completed.
speechtoken, text, lang?, parts?The answer's opening, to a client that declares read_aloud, once a turn, as soon as it is written: token for GET /v1/speech/:token, text and lang for a build that reads it in the device's own voice. parts holds the same words a sentence at a time, each sealed the same way, so the first is heard sooner.
ping—Keep-alive every 15 seconds. Do not filter it: your idle timeout should be reset by it, or a long-thinking turn dies for looking idle.

When turn.end reports an awaiting status, answer with a continuation POST /v1/chat carrying tool_results for the pending invocations.

GET /v1/apps/config

Rendel's published appearance and opening surface, for a device that has just called init(). Cached by ETag.

Everything here is public by construction — a publishable key can read it, and a publishable key ships in your binary.

Response 200

{
  "channel": "published",
  "version": 7,
  "updated_at": "2026-09-01T10:12:04.000Z",
  "config": {
    "theme": { "accent": "#2E40EA", "radius": { "card": 16 } },
    "copilot": { "assistantName": "Ada", "launcherLabel": "Ask", "suggestions": ["Where is my order?"] }
  },
  "available": true
}
FieldWhat it is
channelpublished for a live key, draft for a test key. Your own app on a test key is the preview device; there is no second thing to keep in step.
versionThe published version number, or null when nothing has been published.
updated_atWhen it was published. Carried for information; it does not decide the ETag.
configThe payload, or {}. An empty config means "keep whatever the code passed to init()".
availableWhether a new conversation can start now. false while the organization's usage is paused (its generated screens for the month used, its spending cap reached, the app's questions per day used); hide the way in until it is true again. Part of the ETag.
unavailable_reasonWith available: false: credits, budget, daily_ceiling or spend_ceiling, for your logs. Never show it to the user.
captureSent only when the app's tap capture is not the default (on, every device, nothing masked): taps (on, no_text or off), sample (the share of devices whose taps are kept, 0 to 1, chosen by a hash of the device id) and mask (up to 50 screen names or, on the web, CSS selectors whose taps keep no label). Set in Settings › Data & privacy › What Rendel records.
languagesSent only when the persona names the languages it answers in (Persona): their subtags in order (["tr", "en"]), the draft's for a test key. Without a locale from your app, the SDKs draw their own words in the device's language when it is one of these; otherwise in English when it is one of these, else in the first.

Responses carry Vary: X-Rendel-Key, X-NC-Key, Origin — on the 401 and 403 as well as the 200, because the body depends entirely on a request header and a cache keyed on the URL alone would hand one tenant's branding to the next device that asks.

A row that fails validation on the way out is served as {} rather than as something the SDK might try to read.

StatusWhen
200A payload, or {} when nothing is published.
304Your If-None-Match matches. No body.
401Unknown or revoked key.
403origin_not_allowed, or app_suspended.
429With Retry-After: 5. Two buckets: 12/minute per device and 600/minute per app. The app-wide one protects the connection pool /v1/chat shares, and it is the one that still holds when a caller rotates X-Rendel-Device on every request.

POST /v1/apps/manifest

Idempotent upload of your action manifest. Snapshots are immutable, keyed by (app, hash); posting the same manifest twice touches one row.

Request

{
  "manifest": {
    "version": 1,
    "actions": [ … ],
    "routes": [
      {
        "name": "order_detail",
        "title": "Order",
        "description": "One order's details",
        "params": { "order_id": { "type": "string", "required": true, "fromActions": true } }
      }
    ]
  },
  "sdk": "flutter/0.44.0"
}

routes (optional, up to 50) are the screens navigate may open, registered with registerRoute. name is snake_case, up to 64 characters. title (up to 60 characters) is what the card shows, and you write it. description (up to 300 characters) tells the model when to use the screen. params takes up to 8, each string, number or boolean and optionally required. A param marked fromActions must carry a value one of your actions returned in this conversation. A build with no routes omits the field, and its hash is unchanged.

Response 200

{ "manifest_hash": "9b2f…" }

Send that hash as client.manifest_hash on every chat request. A hash the server has not seen ends the turn with manifest_unknown rather than being served with no actions — an empty action set would let the model say "I can't do that" about something your app definitely can.

Response 400 names the action and the field:

{
  "error": {
    "code": "invalid_request",
    "message": "Invalid action manifest: actions.1.name — snake_case action names (+2 more)",
    "details": [
      { "path": "actions.1.name", "message": "snake_case action names" },
      { "path": "actions.3.nc.timeoutMs", "message": "Too big: expected number to be <=120000" }
    ]
  }
}

details carries up to twelve issues. path is the location inside the document you posted, so it greps against your own source.

POST /v1/identify

Binds the device to a known user, records their traits, and moves the device's anonymous history onto them. From Flutter 0.13.0, and on the web from the start, the turns themselves say who is signed in (user on POST /v1/chat); this call still carries the traits.

Request

FieldRequiredWhat it is
external_user_idYesYour id for this person, 1–128 characters.
traitsNoAnything you want Rendel to know about them, up to 16 KB serialized. Treated as data, never as instructions.
user_hmacWhen verification is onLowercase hex HMAC_SHA256(external_user_id, app identity secret), computed on your backend. The secret never goes in your app.

Response 200: { "end_user_id": "…", "verified": true }

verified is the whole point of the call. Traits move only when the caller proved who they are, or when the record was never verified in the first place — otherwise anyone holding your publishable key could rewrite a verified user's profile while the verified badge stayed on it. Without user_hmac, an existing person is bound and their traits change only from an install that has been them before; from any other install the call binds nothing and answers end_user_id: null, with code: "identify_unsigned" and a message saying why, which the SDKs log as identify_refused. Names need proof, under Settings › Security, answers the same for every unsigned call.

StatusWhen
400Malformed body.
403The app requires verification and no valid user_hmac was presented.
429Rate limited per device, at your app's questions per minute, per device.

POST /v1/identify/reset

The person signed out of your app. The device sending X-Rendel-Device is its own anonymous record again, and so is its push token, so the person's follow-ups, inbox and push stop reaching it, and a task notice still waiting for them on it is dropped. Rendel.reset() calls it from Flutter 0.72.0 and Web 0.49.0. No body. A chat turn with user: null does the same for a device still bound to somebody.

Response 200: { "ok": true }, also for a device the server has not seen.

StatusWhen
400No X-Rendel-Device header.
429Rate limited with POST /v1/identify.

POST /v1/invocations/:id/confirm

The user's answer to a confirmation card, recorded by the server. Call it the moment the button is pressed and before your handler runs, so the record exists independently of what the handler does. X-Rendel-Device is required.

Request: { "decision": "confirm" } or { "decision": "decline" }

Response 200: { "status": "confirmed" }, { "status": "declined" }, or { "status": "expired" }

A second call returns { "status": "…", "already_answered": true } with the answer that was recorded. The first answer stands: a double tap over a flaky link changes one row once, and a decline cannot overwrite a confirmation.

Send the signed-in person's token in X-Rendel-User-Token, as on a chat turn, with X-Rendel-User (and X-Rendel-User-Hmac) naming them, and a console action that changes something runs here, at the tap. The response is then { "status": "succeeded" } or { "status": "failed" }, the result is in the conversation, and a short fixed answer closes the turn, so it finishes even if the app never continues it. An app that does continue gets Rendel's own answer in its place. The token is used for that one call and never stored. Flutter 0.73.0 and Web 0.50.0 send it; without it the response is confirmed and the write runs on the continuation, as before.

StatusWhen
400No X-Rendel-Device, a malformed decision, or an invocation whose risk is read — a read has no confirmation to give.
404No such invocation, not this app's, or the calling device does not own the conversation. One answer for all three: the publishable key ships in your binary, so holding it is not evidence of anything.
429Rate limited per device.

The server's own record is the only thing that counts: a result that carries confirmed: true without this call reads as a decline, so a client of your own calls it when the person taps. See the security summary.

POST /v1/invocations/:id/edit

A value the user changed on a confirmation card, before they answer it. Only the parameters the action marks editable (an action's nc.editable in the manifest, set by editable in either SDK, or Changeable on the card on a console action) may be changed. The server merges the change into the proposed parameters, checks the whole call against the action's schema exactly as it checks the model's, keeps the new values for the invocation, and redraws the card with them. Headers as for /confirm: X-Rendel-Key (or X-NC-Key) and X-Rendel-Device (or X-NC-Device), which is required.

Request: { "params": { "quantity": 3 } }

Response 200: { "card": { … } }, the confirmation card's props as redrawn. Draw it in place of the old one. Confirming afterwards runs the action with the changed values.

Response 422 names each value that was refused:

{
  "error": {
    "code": "invalid_params",
    "message": "\"quantity\" must be <= 10",
    "fields": { "quantity": "\"quantity\" must be <= 10" }
  }
}

A parameter the action does not mark editable is refused the same way, with "This cannot be changed on the card."

StatusWhen
400No X-Rendel-Device, or a body that is not { params: { … } }.
404No such invocation, not this app's, a read, or the calling device does not own the conversation. One answer for all of them, as for /confirm.
409The card was already answered or has expired. status carries what it is now.
422A changed value fails the action's checks, or cannot be changed on the card.
429Rate limited per device.

POST /v1/invocations/:id/undo

The Undo on an action_done line: takes back a write that ran with no card. Headers as for /confirm; X-Rendel-Device is required, and only the device the conversation belongs to may undo.

Request: {} to ask for the undo, with user ({ id, hmac? }, as on POST /v1/chat) for a signed-in person. A console action is undone only for the person it ran for.

Response 200, one of:

stateWhat it means
runRun your inverse handler name with params (and timeout_ms), then call again with { "report": { "undo_id", "status": "success" | "error", "data"?, "error"? } }.
undoneTaken back. A console action's inverse ran on the server.
undoingAnother tap already has it. Nothing runs twice.
failedThe inverse failed, with error. It can be tried again.
expiredMore than ten minutes since the action ran.
StatusWhen
400No X-Rendel-Device, or a body that is not {} or { report }.
403quota_exceeded when the app is suspended.
404No such invocation, not this app's, nothing to undo, or the calling device does not own the conversation. One answer for all of them, as for /confirm.
429Rate limited per device, at your app's questions per minute, per device.

POST /v1/feedback

One thumb on one assistant turn. X-Rendel-Device is required.

Request

FieldRequiredWhat it is
message_idYesThe message_id from that turn's turn.start.
ratingYes1 or -1.
reasonNoOne of wrong, incomplete, not_what_i_asked, unclear or other. Any other value is dropped and the rating is still recorded, so no free text an end user types is stored.

Response 200: { "ok": true }

Keyed by (message, device): a second call changes the rating rather than adding a vote. 404 covers both "no such turn" and "not your turn".

POST /v1/ratings

The answer to a rating block, recorded with no model turn. X-Rendel-Device is required.

Request

FieldRequiredWhat it is
message_idYesThe message_id from that turn's turn.start.
block_idYesThe rating block's id.
scoreYesAn integer checked against the block's scale: stars_5 takes 1 to 5, thumbs takes 0 or 1 (not the 1/-1 of /v1/feedback), nps_11 takes 0 to 10.
commentNoUp to 500 characters, redacted like a message.

Response 200: { "ok": true }

Answers are keyed by (message, block, device): a second call changes the score and keeps the earlier comment unless it sends a new one.

StatusWhen
400No device header, a malformed body, or a score outside the block's scale.
404Unknown device, turn or block, all with one answer.
429Rate limited per device, at your app's questions per minute, per device.

POST /v1/uploads

One file a user hands Rendel, uploaded before the turn that carries it. The body is the file's bytes and nothing else (no multipart). Content-Type is one of image/png, image/jpeg, image/webp, image/gif, application/pdf or text/plain, up to 20 MB. X-Rendel-Device is required. The file belongs to that device, and a turn from another device that names its id is answered without it.

Response 201: { "id": "…", "media_type": "image/png", "bytes": 48213 }, with name when you sent X-Rendel-Filename.

StatusWhen
400No device header, or an empty body.
403app_suspended, origin_not_allowed, or invalid_request for an app with Strict PII on, which takes no files.
413payload_too_large: over 20 MB.
415unsupported_media_type.
42920 per minute per device, with Retry-After: 5.
502upload_failed: storage refused the file. Retry.
503uploads_unavailable.

Send the id in attachments on POST /v1/chat (up to 4 per turn), or as the value of a form's upload field. A file is in front of the model only on the turn that carries it, and is not replayed in later history. A form can ask for files only after Files in forms is turned on in the console (Settings › Reaching a person).

The logo the config names: the draft's for a test key, the published one for a live key. Call it as /v1/apps/logo?v= followed by the logoAssetId from config. v serves as the cache key, and the response is immutable for a year.

StatusWhen
200The image.
403app_suspended.
404no_logo: the config names none, or storage no longer has it.
42912 per minute per device and 600 per app.
503logo_unavailable.

GET /v1/apps/launcher-icon

The launcher icon you uploaded in the console, which the config names as launcherIconAssetId: the draft's for a test key, the published one for a live key. Called as /v1/apps/launcher-icon?v= followed by that id, and immutable for a year, like the logo. The image is a PNG mask the console made from your upload.

StatusWhen
200The image.
403app_suspended, or origin_not_allowed.
404no_launcher_icon: the config names none, or storage no longer has it. The SDK draws its own icon.
42912 per minute per device and 600 per app, with Retry-After: 5.
503launcher_icon_unavailable.

POST /v1/apps/launcher-snapshot

What the Mobile SDK sends from 0.99.0 when your app draws its launcher as its own widget (RendelLauncher(builder:)): a PNG of that button as the body, and where it sits in X-Rendel-Launcher-Rect, six numbers in logical points (x, y, width, height, the screen's width and height). The console's Appearance › Launcher shows it where your app draws it. A picture the app already has is not stored again, nor one sent within two minutes of the last. From 0.99.1 it sends Rendel's own launcher too, so Appearance draws it where your app placed it.

StatusWhen
201Stored; the picture it replaces is deleted.
204The app already has this picture, or one came within the last two minutes.
400invalid_request: the body is not a PNG of at most 256 KB, or the rect header is missing or not a button on a screen.
403app_suspended, origin_not_allowed.
4293 per minute per device and 30 per app.
502launcher_snapshot_failed.

POST /v1/pairings/claim

What pair calls. Request: { "code": "K7Q2-M9XD" }, as the console shows it. X-Rendel-Device is required. Test keys only.

Response 200: { "paired": true, "ends_at": "…" }, where ends_at is when the pairing ends.

StatusWhen
400No device header, or a malformed body.
403pairing_test_only on a live key, or quota_exceeded when the app is suspended.
404pairing_not_found: a wrong, used or expired code, all with one answer.
4295 per minute per device and 30 per app.

See Pair a test app.

GET /v1/conversations/:id/messages

History, and convergence after a dropped stream. Requires X-Rendel-Device (400 invalid_request without it): a conversation is read only by the device that holds it, and a signed-in person's only while that device is still theirs. After a sign-out, or with somebody else signed in on it since, the list is empty. Reading a conversation closes a task notice still waiting about it.

QueryDefaultWhat it is
limit50Capped at 200.

Response 200

{
  "conversation_id": "…",
  "messages": [
    { "id": "…", "role": "user", "blocks": [ … ], "created_at": "…" },
    { "id": "…", "role": "assistant", "blocks": [ … ], "created_at": "…", "lang": "tr" }
  ]
}

An assistant message carries lang, the language its turn read from the person's words, as turn.start says it live, so a thread reopened from a push or a relaunch shows the SDK's own words in it. It is absent when the words did not say. Flutter 0.73.2 and Web 0.50.3 use it.

Blocks are stored in placeholder form and restored on the way out, so the device asking for its own history gets the values its user typed. A live key cannot read a test conversation and vice versa; a key from another app, or another device, gets an empty list rather than an error, because the two are the same answer.

POST /v1/conversations/:id/away

The person left the conversation ({ "away": true }) or is back in it ({ "away": false }). Flutter 0.73.0 sends it when the sheet closes or the app goes to the background, Web 0.50.0 when the panel closes or the page is hidden. An answer that finishes while they are away counts as one they left, so its task notice goes, and a notice already waiting goes sooner; coming back makes "Your answer is ready" moot. X-Rendel-Device is required.

Response 204, no body.

StatusWhen
400No X-Rendel-Device, or a body without away set to true or false.
404No such conversation, or it is not the calling device's and its person's now: after a sign-out, or with somebody else signed in. One answer for all of them.
429Rate limited per device.

GET /v1/memory

What Rendel remembers for the person on this device, for the SDK's "What I remember for you" list. X-Rendel-Device is required. The person is the signed-in one named by X-Rendel-User, with a valid X-Rendel-User-Hmac, so a signed-in person's list needs identity verification. Signed out, or named without a valid HMAC, it is this install's anonymous record: your publishable key is public, so an id alone never opens a signed-in person's notes or traits.

Response 200: { "enabled": true, "notes": [ … ], "other": [ … ], "traits": [ … ] }. Each note is { id, kind, key, label, value, category, expires_at, updated_at }: kind is stated (the person said it), learned (Rendel noticed it, and they saw it saved) or set (your app's own fact, from POST /v1/people/:id/notes). category is null, or one of the app's kind's set chosen under Settings › Data & privacy › Preference memory: a shop's diet, sizes, brands, delivery, budget, style; a bank's accounts, cards, payments, contact; a travel app's seating, stays, trips, diet, schedule, budget; any other app's topics, contact, schedule, format; and language and other in each. other holds the notes Rendel noticed without naming them (label null): answers read them, so show them by value, with Forget. traits holds the identify traits that read as text, { key, label, value }, with label the key in words: answers read those too, and they cannot be forgotten here. enabled is false, with nothing in the lists, when the app keeps no memory.

DELETE /v1/memory and /v1/memory/:id

"Forget all", or one note's Forget. Same headers as GET /v1/memory. Forget all removes every note the person told Rendel or it noticed; your app's own facts stay. One note is only ever the person's own. Named without a valid HMAC, Forget all reaches only this install's anonymous record. One note may be that record's, or one saved in a conversation on this install for the person named, so the Undo under a save keeps working; any other answers 403 with invalid_request rather than 404, so a client never reads it as gone.

Response 204. 404 not_found for a note that is not theirs or does not exist; 400 without X-Rendel-Device.

POST /v1/push/token

What Rendel.setPushToken sends, so follow-ups can go by push. Bound to the device in X-Rendel-Device, which is required.

Request: { token, platform, timezone?, locale?, provider?, environment?, topic?, team_id? }. token is the push token (up to 4,096 characters), or null when the operating system's permission is gone. platform is ios, android or web. provider is fcm (the default) or apns for a token sent straight to Apple, with environment sandbox for a debug build or production. topic is the bundle id or package name the token belongs to, and team_id the Team ID the iOS build is signed with.

Response 204. 400 without a device or with a malformed body; 429 past 10 a minute per device.

GET /v1/push/config

/v1/push/config?package=<your Android package name>: the Firebase client settings rendel_push starts Firebase with, on an Android app that has none of its own. Read from the service account under Settings › Push & email.

Response 200: { "firebase": { "package", "app_id", "api_key", "sender_id", "project_id" } }, or { "firebase": null } while push is not set up or the Firebase project has no app for that package. 400 for a malformed package name; 429 past 60 a minute per app.

GET /v1/followups/next

The follow-up this device should show on your app's own screens now, asked when the app comes to the front. At most one, written at that moment.

Response 200: { "followup": { id, type, title, body, button, style, conversation_id? } }, where style is popup or banner. A task notice carries conversation_id, the conversation it is about: while Rendel shows that conversation the notice is moot, and Flutter 0.73.2 and Web 0.50.3 do not show it. Response 204 when there is none, which is most of the time, and also without X-Rendel-Device or past 6 a minute per device. A device the server has not seen yet is recorded on its first ask, so an in-app message can reach it from its first launch, test key or live.

GET /v1/followups/inbox

The messages waiting inside Rendel for this device's person, asked when Rendel opens: each one that went to them on any channel in the last 7 days and was not opened or put away, newest first, up to 3.

Response 200: { "cards": [ { id, type, channel, title, body, button, sent_at, conversation_id? } ] }. A task notice's card carries conversation_id, as on GET /v1/followups/next. An empty list, not an error, for a device the server does not know.

POST /v1/followups/:id/open

A follow-up the person tapped, from the popup, a card or a push. The server writes a conversation on this device that opens on it, and the SDK loads it as history. X-Rendel-Device is required. No body.

Response 200: { "conversation_id": "…" }. 404 not_found for a follow-up that is not this device's person's; 429 past 10 a minute per device.

GET /v1/speech/:token

An answer's opening read aloud, for the token in speech or turn.end.speech. No key: the token is the authority, and it lives 30 minutes. Without a query it returns the whole MP3; with ?f=pcm, raw 24 kHz mono 16-bit PCM as it is made, for a build that plays a stream. Every voice made uses screens from your plan on a live key; a test key's is free.

StatusWhen
200audio/mpeg, or audio/pcm with ?f=pcm.
404not_found for a wrong or expired token, or voice_off when the app's voice was turned off since.
429rate_limited: this token has been played as often as it may be.
502unavailable: the voice could not be made. Read it in the device's own voice.
504timeout: a ?f=pcm stream did not start in time.

POST /v1/events

Batched SDK telemetry. Billing and usage are server-derived and never trust this endpoint. Send X-Rendel-Device: every kept event belongs to a device, and a batch without one is accepted and dropped.

{
  "events": [
    { "type": "session", "session": "5f0c…", "started_at": "2026-10-26T09:13:58Z", "super_props": { "plan": "pro" } },
    { "type": "screen_view", "screen": "/orders/:id", "at": "2026-10-26T09:14:03Z", "session": "5f0c…" },
    { "type": "tap", "screen": "/orders/:id", "role": "button", "label": "Track order", "locator": "track_order", "platform": "web", "at": "2026-10-26T09:14:09Z", "session": "5f0c…" },
    { "type": "event", "name": "add_to_cart", "props": { "product_id": "sku_812", "price": 549.9 }, "at": "2026-10-26T09:14:20Z", "session": "5f0c…" },
    { "type": "goal", "name": "booking", "value": 120, "currency": "TRY" },
    { "type": "screen_open", "message_id": "7b0c3a52-…", "block_id": "blk_65475c9e", "route": "orders" }
  ]
}

events holds up to 50. Each event is read on its own, so a malformed one is skipped, and a type this server does not know is accepted and dropped: a newer SDK is never refused for sending more. These are kept:

typeFieldsNotes
screen_viewscreen (1–120 characters), at (ISO 8601 time with offset), session?A screen the app showed, on any device, whether or not Rendel was opened. The name only: the path or route with its ids replaced, or a title. session is the id of the session it belongs to. Up to 50 per batch. An at in the future is read as now, and one more than 24 hours old is dropped.
eventname, props?, value?, currency?, at, session?Rendel.track(name, props). name matches ^[a-z][a-z0-9_]{0,39}$ and is not purchase. props is a flat object of up to 20 keys, each matching the same pattern, each value a string of up to 255 characters, a finite number, a boolean or null. value is 0 or more and needs a three-letter currency. A name the app has marked as a goal is also recorded as a goal.
tapscreen, role, label?, locator, target?, platform, rage?, at, session?A tap the SDK saw by itself. role is one of button, link, tab, menuitem, option, switch, checkbox, radio, field, row, other. label is the control's caption, at most 50 characters; a longer one is dropped. locator (1–200) names the control stably. target is a link's destination: a cleaned path, or an external host. platform is web, ios, android, flutter_web, macos, windows or linux. Kept only while the app's tap capture is on, and without label when it is set to no labels or the app has strict masking.
sessionsession (a UUID), started_at, super_props?A session began on the device, or its super properties changed. super_props follows the rules of props. The country is read from the request as a two-letter code; the IP address is never stored.
goalname, value?, currency?What SDKs sent for Rendel.track(name) before event; still accepted. name matches ^[a-z][a-z0-9_]{0,39}$ and is not purchase. value is 0 or more and needs a three-letter currency. Up to 5 per batch. Recorded as an event and as a goal, for the device's person when it has one, else the device, and shown as reported by the app.
purchasevalue, currency, items?Rendel.track("purchase", …), credited to the follow-up the person last opened. items holds up to 20 of { id?, name?, quantity?, price? }.
screen_openmessage_id, block_id, routeA screen of the app opened from a card in an answer, which the console's Screens page counts. Recorded only when that answer is your app's and that block in it carries a navigate to route. A second tap on the same card counts as a tap, not a second person. At most 10 per batch.

A string in props, super_props or label that looks personal (an email address, a phone number, a card number, an IBAN, an 11-digit national id or a run of four or more digits) is replaced with [masked] on the server too, whatever the SDK did. A device sends at most 3,000 events and taps a day; past that they are dropped and counted. When an organization is past twice its plan's monthly events, taps are kept from a share of devices, chosen by device; events, screen views, goals and purchases are never sampled.

The SDK also sends assistant_open and contact_open for the console's adoption and contact counts, and Follow-ups' own events. After each request it sends turn_timing: the request's id and how many milliseconds each step took on the device, until the request left, its first event, its first block, its first words and its end, and how long the device's own reads then took. Rendel keeps these numbers beside its server's own, to see where a person waits. A device is rate limited as it is on chat.

Response 204, empty.

/v1/support

What a build that draws a support page calls, with the same headers as POST /v1/chat plus X-Rendel-SDK (flutter/0.97.0), which offers your team the screens of the person's own build; the SDKs do this for you. It answers for an app with Support on, otherwise 409 support_unavailable; while you have switched Support off, a device can still read the conversations it already has. One person has one open conversation with the team, and on an app that verifies identity the device needs a valid userHmac.

EndpointWhat it does
POST /v1/support/handoffOpens the person's conversation with the team, or returns the one they have. Takes trigger (user_asked, offer, open_support, server), client_msg_id, and optional conversation_id, text, locale and screen.
GET /v1/support/currentThe conversation this device has, open or resolved in the last week, with the lines after ?after=; not one the person left by mistake before your team stepped in. 204 when there is none.
GET /v1/support/unreadHow many of the team's lines this person has not read.
GET /v1/support/threads/:id/streamServer-sent events while the page is open: support.entry, support.state, support.typing, support.lookup, support.reconnect, support.resync and ping.
POST /v1/support/threads/:id/messagesThe person's message, up to 4,000 characters and four attachments from POST /v1/uploads.
POST /v1/support/threads/:id/typingThe person is typing.
POST /v1/support/threads/:id/readThe person read up to this line.
POST /v1/support/threads/:id/resolveThe person says it is sorted, or, with { "by_mistake": true }, that they came here by mistake: that conversation stays out of their recent ones unless your team already stepped in. A conversation that already holds their own request (an email for the reply, a second message, or a first one of more than twelve words) is not closed: it stays with your team, and asking for the team again opens it.
POST /v1/support/threads/:id/contactThe address to reach this person at, for this conversation only. Sends a message to confirm it.
POST /v1/support/threads/:id/contact/verifyThe code from that message.
POST /v1/support/threads/:id/contact/resendA new code for the address already given; the earlier one stops working. At most twice an hour, then 429.
POST /v1/support/threads/:id/cards/:entryId/openThe person opens a card the team sent, which builds the confirmation card.
POST /v1/support/threads/:id/continueRuns a card the person confirmed, with their token.
POST /v1/support/threads/:id/lookups/:lookupId/runRuns a read the team asked for, with the person's token, from their app.

POST /v1/goals

A goal or a purchase from your own server, for a count nobody can forge. The console shows it as verified, beside what the app reports with Rendel.track. Call it from your backend only: it is signed with the identity secret (Settings › Security › Request verification), which never goes in your app.

HeaderWhat it is
X-Rendel-KeyYour publishable key. A test key records test data, kept apart from live.
X-Rendel-TimestampNow, in unix seconds. Refused when it is more than 300 seconds from the server's clock.
X-Rendel-SignatureLowercase hex HMAC-SHA256 of <timestamp>.<raw body>, keyed with the identity secret. Sign the exact bytes you send.
Content-Typeapplication/json

Request

FieldRequiredWhat it is
event_idYesYour own id for this event, 1–64 characters, such as the order id. A second request with the same event_id in this app is answered as a success and writes nothing, so a retry is safe.
external_user_idYesThe person, by the same id your app passes to identify (1–256 characters). Someone Rendel has not seen yet is recorded under that id.
nameYespurchase, or a goal name: ^[a-z][a-z0-9_]{0,39}$, such as signup or subscription_started.
valueFor a purchase0 or more. Optional on a goal.
currencyWith a valueA three-letter code, TRY.
itemsNoA purchase only: up to 20 of { id?, name?, quantity?, price? }.
occurred_atNoWhen it happened, ISO 8601 with an offset. Defaults to now.

A purchase joins the ones the SDK sends and is credited to a follow-up the same way; a goal counts as reached after Rendel when the same person had a conversation in the 7 days before it.

Node
import { createHmac } from "node:crypto";

const body = JSON.stringify({
  event_id: order.id,
  external_user_id: user.id,
  name: "purchase",
  value: 549.9,
  currency: "TRY",
});
const timestamp = String(Math.floor(Date.now() / 1000));
const signature = createHmac("sha256", process.env.RENDEL_IDENTITY_SECRET)
  .update(`${timestamp}.${body}`)
  .digest("hex");

await fetch("https://api.rendel.ai/v1/goals", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-Rendel-Key": "rd_pk_live_…",
    "X-Rendel-Timestamp": timestamp,
    "X-Rendel-Signature": signature,
  },
  body, // the same string that was signed
});
curl
BODY='{"event_id":"signup-8812","external_user_id":"8812","name":"signup"}'
TS=$(date +%s)
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$RENDEL_IDENTITY_SECRET" | sed 's/^.* //')

curl https://api.rendel.ai/v1/goals \
  -H "X-Rendel-Key: rd_pk_test_…" \
  -H "X-Rendel-Timestamp: $TS" \
  -H "X-Rendel-Signature: $SIG" \
  -H "Content-Type: application/json" \
  -d "$BODY"

Response 200: { "ok": true, "duplicate": false }. duplicate is true when the event_id was already recorded.

StatusWhen
400invalid_request: the body is not JSON or does not fit the fields above; message names the first problem.
401invalid_key, or invalid_signature: the signature does not match, or the timestamp is missing or more than 300 seconds off.
409no_identity_secret: generate the identity secret in Settings › Security › Request verification first.
429Rate limited per app, at ten times your app's questions per minute, per device.

POST /v1/people/:id/notes

Facts your backend keeps about one person, such as a loyalty tier or a home branch. Rendel reads them into that person's answers as their app's own facts, the console shows them on the person's Memory tab under Your app set, and the person's "What I remember for you" list marks them "From the app", with no Forget: they are yours to change. Call it from your backend only: it is signed as POST /v1/goals is, with the same three headers and the identity secret.

:id is the person's id as your app passes it to identify, URL-encoded, up to 256 characters. Someone Rendel has not seen yet is recorded under it. An install's own anonymous record cannot be named.

Request: { "notes": [ … ] }, 1 to 20 notes, each key once.

FieldRequiredWhat it is
keyYesThe subject, ^[a-z][a-z0-9_]{0,39}$, such as loyalty_tier. A key the person already has a fact under is replaced.
labelYesIts name as the person reads it, 1 to 32 characters: Loyalty tier.
valueYesThe fact, 1 to 120 characters: Gold member since 2024.
categoryNoOne of the categories GET /v1/memory lists.
expires_atNoWhen it stops holding, ISO 8601 with an offset, in the future. Left out, it holds until you write it again, your team forgets it, or the person is erased or unseen for the app's retention window.

A person holds at most 20 facts from your app. A fact is held to the same rules as a note Rendel takes: one about health, religion, money, secrets or contact details, a long number or a link is refused, and so is the whole request. While memory is off for the app, nothing is written.

curl
BODY='{"notes":[{"key":"loyalty_tier","label":"Loyalty tier","value":"Gold member since 2024"}]}'
TS=$(date +%s)
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$RENDEL_IDENTITY_SECRET" | sed 's/^.* //')

curl https://api.rendel.ai/v1/people/8812/notes \
  -H "X-Rendel-Key: rd_pk_test_…" \
  -H "X-Rendel-Timestamp: $TS" \
  -H "X-Rendel-Signature: $SIG" \
  -H "Content-Type: application/json" \
  -d "$BODY"

Response 200: { "notes": [ … ] }, each note as GET /v1/memory lists it, with kind set.

StatusWhen
400invalid_request: the body is not JSON or does not fit the fields above, a key comes twice, an expires_at is past, or :id names an anonymous install; message names the problem.
401invalid_key, or invalid_signature, as on POST /v1/goals.
409no_identity_secret; memory_off, when the app keeps no memory; too_many_notes, when the person would hold more than 20 facts from your app.
422note_refused: a note the filter will not keep, named by key, with the reason. Nothing in the request was written.
429Rate limited per app, at ten times your app's questions per minute, per device.