{"openapi":"3.2.0","info":{"title":"UserSignal API reference","version":"1.0.0","summary":"The endpoints you build for your site's sign-in, and the tenant API you call.","description":"UserSignal hosts your feedback board at `https://<app-id>.usersignal.dev`\nand at any custom hostname you verify (for example\n`https://feedback.example.com`). It never runs its own login for your\nusers: it asks your site who the person is.\n\n## What you build\n\n| Endpoint | Called by | Required |\n| --- | --- | --- |\n| Start URL | Your user's browser, sent by UserSignal | Yes |\n| Redeem URL | UserSignal's server | Yes |\n| Sign-out URL | Your user's browser, sent by UserSignal | No, but sign-out seems broken without it |\n\nYou choose the URLs and enter them in the console. The paths shown in the\nexamples (`/usersignal/start`, `/usersignal/redeem`,\n`/usersignal/sign-out`) are only a suggestion.\n\n## What you call: the tenant API\n\n| Endpoint | Use it for |\n| --- | --- |\n| `POST /v1/tenant/apps/{appId}/users/{userId}/erase` | Removing someone who deleted their account with you |\n| `GET /v1/tenant/apps/{appId}/users/{userId}/export` | Including board data when someone asks for a copy of theirs |\n\n## The two secrets\n\n| Secret | Direction | Where it lives |\n| --- | --- | --- |\n| Redeem secret | UserSignal → you. UserSignal sends it; you check it. | Your server only |\n| API key (`fni_tk_…`) | You → UserSignal. You send it; UserSignal checks it. | Your server only |\n\nBoth are shown once in the console and rotate with an overlap: at most two\nof each are live, so you can switch before revoking the old one. Never use\none as the other, and never put either in a browser.\n\n## Worked example\n\nA site at `example.com` serves its board at `https://feedback.example.com`.\nIts start URL is `https://example.com/usersignal/start`; it answers\nredeem with its database user id, the user's name, and `[\"admin\"]` for its\nown administrators; and on account deletion it calls erase.\n","contact":{"name":"UserSignal","url":"https://usersignal.dev"},"license":{"name":"Proprietary","identifier":"LicenseRef-UserSignal"}},"servers":[{"url":"https://api.usersignal.dev","description":"The tenant API (the `paths` below). `webhooks` are on your own servers."}],"tags":[{"name":"sign-in","summary":"Sign-in","description":"Endpoints you build. UserSignal always starts a sign-in; it refuses any\ncode that does not belong to a flow it began.\n"},{"name":"tenant-api","summary":"Tenant API","description":"Endpoints UserSignal serves, called from your server with your API\nkey. The key is bound to one app; a key for another app, a revoked\nkey and a wrong key all answer the same `401`. A suspended tenant's key\nanswers `404`.\n"}],"webhooks":{"signInStart":{"get":{"tags":["sign-in"],"operationId":"signInStart","summary":"Start URL","description":"**Called by:** your user's browser, by a top-level navigation that\nUserSignal's redirect caused. Never by a script; UserSignal refuses to\nbegin a sign-in from one. Because it is a top-level navigation, your\nown `SameSite=Lax` session cookie arrives with it, and a\n`SameSite=Strict` cookie arrives too when the board is on a custom\nhostname under your own site (`feedback.example.com` → `example.com`).\n\n**The URL** is the start URL you configured, with UserSignal's query\nappended. Any query your URL already carries is kept, except `prompt`,\nwhich is UserSignal's to set.\n\n**Do this, in order:**\n\n1. Refuse (`400`, and do **not** redirect) unless `redirect_uri` is,\n   as a whole string, one of:\n   - `https://<app-id>.usersignal.dev/auth/callback`\n   - `https://<your-hostname>/auth/callback`, one per custom domain\n   - `https://console.usersignal.dev/console/sign-in-test/callback`, the console's **Test sign-in**\n\n   Otherwise anyone can build a link that sends your users' codes to\n   themselves.\n2. Refuse (`400`) any `prompt` other than absent or `none`.\n3. **No session, and `prompt=none`:** redirect straight back with\n   `error=login_required` and `state`, with no code (response `302`,\n   example `login-required`). Do not show a login page: UserSignal\n   asks this without a click when a signed-out user arrives, at most\n   once per browser session.\n4. **No session, no `prompt`:** show your login page, or redirect to\n   it, and come back to this same URL after login (response `200` or\n   `302`, example `to-login`).\n5. **Signed in:** create a code and redirect back with it (response\n   `302`, example `code`). The code must be:\n   - random, at least 128 bits\n   - single use\n   - valid for about 60 seconds\n   - bound to your app id and to this exact `redirect_uri`\n   - at most 512 characters\n\nPass `state` back exactly as received. Do not inspect, alter or store\nit.\n","security":[],"parameters":[{"name":"state","in":"query","required":true,"description":"UserSignal's flow identifier. Opaque: return it byte for byte and\ndo not parse it. Its format differs between a board sign-in, the\nconsole's test sign-in and **Check endpoints**, and may change.\nAccept any printable ASCII without spaces, up to 512 characters.\n","schema":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]+$"},"example":"A-RG-xWPc81d.BWXFS7U_5PeDxdN2QAFBARatc_5JP1Gw"},{"name":"redirect_uri","in":"query","required":true,"description":"Where to send the browser back. Compare it whole against your allowlist (step 1).","schema":{"type":"string","format":"uri"},"example":"https://feedback.example.com/auth/callback"},{"name":"prompt","in":"query","required":false,"description":"Present only when UserSignal is asking, on the person's arrival,\nwhether they are already signed in with you. UserSignal sends no\nother value.\n","schema":{"type":"string","enum":["none"]}}],"responses":{"200":{"description":"Your login page, when there is no session and no `prompt`.","content":{"text/html":{"schema":{"type":"string"}}}},"302":{"description":"Back to `redirect_uri`, carrying either `code` and `state` (signed\nin) or `error=login_required` and `state` (`prompt=none` and\nnobody signed in). Or, with no `prompt` and no session, on to your\nlogin page.\n","headers":{"Location":{"required":true,"schema":{"type":"string","format":"uri"},"examples":{"code":{"summary":"Signed in","value":"https://feedback.example.com/auth/callback?code=Qm9vdHN0cmFwLWNvZGUtZXhhbXBsZQ&state=A-RG-xWPc81d.BWXFS7U_5PeDxdN2QAFBARatc_5JP1Gw"},"login-required":{"summary":"prompt=none, not signed in","value":"https://feedback.example.com/auth/callback?error=login_required&state=A-RG-xWPc81d.BWXFS7U_5PeDxdN2QAFBARatc_5JP1Gw"},"to-login":{"summary":"No prompt, not signed in","value":"https://example.com/login?return_to=%2Fusersignal%2Fstart%3Fstate%3D%E2%80%A6"}}}}},"400":{"description":"`redirect_uri` not on your allowlist, `state` missing or malformed,\nor an unknown `prompt`. Answer it yourself. Never redirect anywhere\non a refusal.\n","content":{"text/html":{"schema":{"type":"string"}}}}}}},"signInRedeem":{"post":{"tags":["sign-in"],"operationId":"signInRedeem","summary":"Redeem URL","description":"**Called by:** UserSignal's server. It carries your\nredeem secret, so it needs no cookie and no CSRF token.\n\n**Check in this order:**\n\n1. **The secret, first, without touching the code.** If the\n   `Authorization` header does not carry your current redeem secret,\n   or during a rotation your previous one, answer `401` (or `403`)\n   and leave the code exactly as it was: not looked up, not used.\n   While two redeem secrets are live, UserSignal tries them newest\n   first and, after a `401`/`403`, sends the same code again with\n   the other one. A code used by the first, refused attempt fails\n   the retry, and sign-in breaks for the length of every rotation.\n   The console's **Check endpoints** also relies on this order: it\n   sends a made-up code with a wrong secret and expects `401`/`403`,\n   then with your live secret and expects another `4xx`.\n2. **The code.** Refuse with a `4xx` (`400` is conventional) unless\n   the code exists, has not been used, has not expired, and was\n   created for this `app_id` and this `redirect_uri`.\n3. **Mark the code as used, then answer.** Do it before you send\n   the `200`. A second redeem of the same code must fail even when\n   the first one's answer was lost.\n\n**How UserSignal reads your answer:**\n- it waits about 5 seconds\n- it does not follow redirects\n- it refuses a body over 16 KiB\n- it re-checks the URL (https, public address) on every call\n\nIt treats each kind of answer like this:\n\n| Your answer | Sign-in health reason |\n| --- | --- |\n| `200` with a valid body | success |\n| `401`, `403` | `redeem_unauthorized` |\n| any other `4xx` | `code_rejected` |\n| `3xx`, `5xx`, another `2xx`, an invalid body | `redeem_bad_response` |\n| no answer within ~5 s, or Cloudflare `522`/`524` | `redeem_timeout` |\n| connection, DNS or TLS failure, or Cloudflare `521`/`523`/`525`/`526`/`530` | `redeem_unreachable` |\n\nThe person never sees your error. They see \"sign-in unavailable\",\nand you see the count in the console's sign-in health.\n","security":[{"redeemSecret":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Exactly what UserSignal sends.","required":["code","app_id","redirect_uri"],"properties":{"code":{"type":"string","minLength":1,"maxLength":512,"description":"The code you created, as you created it."},"app_id":{"type":"string","description":"Your app's id in UserSignal. Must equal the app the code was created for."},"redirect_uri":{"type":"string","format":"uri","description":"The `redirect_uri` the code was created for."},"nonce":{"description":"Sent only for a code created by the embed code endpoint, whose\n`redirect_uri` is then `https://<board-host>/embed`.\n","type":"string","pattern":"^[A-Za-z0-9_-]{32,128}$"}}},"examples":{"hosted":{"summary":"Full-page board","value":{"code":"Qm9vdHN0cmFwLWNvZGUtZXhhbXBsZQ","app_id":"example-app","redirect_uri":"https://feedback.example.com/auth/callback"}},"embed":{"summary":"Embedded board","value":{"code":"RW1iZWQtY29kZS1leGFtcGxl","app_id":"example-app","redirect_uri":"https://example-app.usersignal.dev/embed","nonce":"3yq0fJm9QeVZ2b6sWkTt1uRcXpLhAoN8"}}}}}},"responses":{"200":{"description":"The code was valid and is now used. This is who the person is.","content":{"application/json":{"schema":{"type":"object","description":"Who the person is. **Send no other field.** A response carrying\nanything else (`capabilities`, `is_admin`, `email`) is refused as\n`redeem_bad_response` and the sign-in fails. Capabilities come only\nfrom the role mapping you configured in the console.\n\nA field that would break these rules fails the whole sign-in. If you\ncannot send a display name cleanly, omit it rather than truncating it.\n","additionalProperties":false,"required":["user_id"],"properties":{"user_id":{"type":"string","minLength":1,"maxLength":255,"pattern":"^(?!\\s)(?![\\s\\S]*\\s$)[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]+$","description":"Your stable id for this person. It must never change for the same\nperson and never be reused for another. Use your database id, not\nan email address, which can change. No control characters, and no\nleading or trailing whitespace (JavaScript `trim()` rules).\n\nLength is counted in UTF-16 code units, at most 255, as\nJavaScript's `String.length` does: a character outside the Basic Multilingual Plane, such as\nan emoji, counts as two. JSON Schema's `maxLength` counts\ncharacters and cannot express this, so a value that passes\n`maxLength` can still be refused. Measure UTF-16 length yourself.\n"},"roles":{"type":"array","maxItems":32,"default":[],"description":"Your own role names. In the console you map each one to a\ncapability preset (`editor` or `admin`); a name you did not map\ngrants nothing beyond an ordinary user's. Each name is at most 64\nUTF-16 code units (see `user_id`).\n","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]+$"}},"display_name":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]+$","description":"Shown next to what the person writes, to other users of the board.\nAt most 128 UTF-16 code units (see `user_id`): 128 Latin letters,\nor 64 emoji. Omit a name that doesn't fit.\n"}}},"examples":{"admin":{"summary":"One of your administrators","value":{"user_id":"4815","roles":["admin"],"display_name":"Ada Lovelace"}},"member":{"summary":"An ordinary user, no name to show","value":{"user_id":"4816","roles":[],"display_name":null}},"minimal":{"summary":"Only the required field","value":{"user_id":"4817"}}}}}},"400":{"description":"Unknown, used, expired or mis-bound code, or a malformed request.\nRecorded as `code_rejected`; any other `4xx` is treated the same\nand any body is ignored.\n"},"401":{"description":"Wrong or missing redeem secret, checked before the code. The code\nmust still be redeemable: UserSignal may send it again with your\nother live secret. Recorded as `redeem_unauthorized`; any body is\nignored.\n"},"403":{"description":"Treated exactly like `401`."}}}},"signInSignOut":{"get":{"tags":["sign-in"],"operationId":"signInSignOut","summary":"Sign-out URL","description":"**Called by:** your user's browser, by a top-level navigation, after\nthey press \"Sign out\" on the board. Optional: enter it in the console's **Sign-in** tab.\n\n**Why you want it:** UserSignal cannot end your session, which lives\non your origin under your cookie. Without this URL, the board clears\nonly its own cookie. The next \"Sign in\" goes straight through on your\nsession, so sign-out looks broken.\n\n**Do this, in order:**\n\n1. Refuse (`400`, and do **not** redirect) unless the origin of\n   `return_to` is one of your board's addresses. Your endpoint is\n   public, so anyone can build a link to it.\n2. End the person's session on your site.\n3. Redirect the browser to `return_to`.\n\nUserSignal clears its own session cookie before sending the person\nhere. If your endpoint is down, they're still signed out of the board.\n","security":[],"parameters":[{"name":"return_to","in":"query","required":true,"description":"Always `https://<board-host>/?sign_in=signed_out`, built by\nUserSignal from the hostname the person signed out of, never\ntaken from user input. Still, check its origin (step 1).\n","schema":{"type":"string","format":"uri"},"example":"https://feedback.example.com/?sign_in=signed_out"}],"responses":{"302":{"description":"Session ended. Back to the board.","headers":{"Location":{"required":true,"schema":{"type":"string","format":"uri"},"example":"https://feedback.example.com/?sign_in=signed_out"}}},"400":{"description":"The origin of `return_to` is not one of your board addresses. Do not redirect.","content":{"text/html":{"schema":{"type":"string"}}}}}}},"embedCode":{"post":{"tags":["sign-in"],"operationId":"embedCode","summary":"Code URL (embedded boards only)","description":"**Called by:** the UserSignal embed script on **your** page, as a\nsame-origin `fetch` with your page's cookies\n(`credentials: \"same-origin\"`). Only used when the board is embedded\nin your site and uses your site's sign-in. The default path is\n`/usersignal/code` on the page's origin. Give the embed script a\ndifferent same-origin `codeEndpoint`, or a `getCode(nonce)` callback,\nif yours differs.\n\nAuthenticate the person with your own session, then create a code\nwith the same rules as the Start URL, but bound to:\n- your app id\n- this exact `nonce`\n- the `redirect_uri` `https://<app-id>.usersignal.dev/embed`\n\nUserSignal then redeems it at your Redeem URL, sending the `nonce`\nand that `redirect_uri`. Refuse that redeem unless the code was\ncreated for this `nonce`, as well as for the rules the Redeem URL\nlists.\n\nBecause this is a cookie-authenticated `POST` on your origin, apply\nyour usual CSRF protection. The embed script sends\n`Content-Type: application/json`, which a cross-site form cannot.\n","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["board","nonce"],"properties":{"board":{"type":"string","description":"The board id from the console's embed snippet."},"nonce":{"type":"string","pattern":"^[A-Za-z0-9_-]{32,128}$","description":"Random, chosen by the board's iframe for one code request."}}},"example":{"board":"example-app","nonce":"3yq0fJm9QeVZ2b6sWkTt1uRcXpLhAoN8"}}}},"responses":{"200":{"description":"A fresh single-use code for this nonce.","content":{"application/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string","minLength":1,"maxLength":512,"description":"Single use, about 60 seconds, bound to the app, this nonce and `https://<board-host>/embed`."}}},"example":{"code":"RW1iZWQtY29kZS1leGFtcGxl"}}}},"401":{"description":"Not signed in. Any non-2xx answer shows the person \"sign-in\nunavailable\" inside the board.\n"}}}}},"paths":{"/v1/tenant/apps/{appId}/users/{userId}/erase":{"post":{"tags":["tenant-api"],"operationId":"eraseHostedUser","summary":"Erase a user","description":"Removes the user's identity and records an erasure marker. Their name\ngoes and their votes are deleted. The board's **When a user is deleted**\nsetting decides what happens to their posts: kept as \"Deleted user\", or\ncomments deleted and suggestions replaced by a placeholder. Safe to\nretry: every outcome is a success.\n\nStop creating sign-in codes for the user first. Then a code created\nlater can't make a new, unrelated user on the board. Any session the\nuser still has is refused on its next request, because every request\nre-reads the user, and an erased user is refused.\n","security":[{"tenantApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"description":"Your app ID, which is the slug you chose when you created the board.","schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"description":"The `user_id` your Redeem URL sends. Percent-encode it.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}},"Cache-Control":{"description":"Always `private, no-store`, with `Vary: Authorization, Origin`.\n","schema":{"type":"string","const":"private, no-store"}}},"description":"The user is erased.","content":{"application/json":{"schema":{"type":"object","description":"`erased`: this request removed the user's identity; any session they\nhad stops working on its next request.\n`already_erased`: an earlier call already did this.\n`marker_only`: this user had never been seen. The erasure was recorded\nanyway, so a code created before this call is refused.\n","required":["outcome","principal"],"properties":{"outcome":{"type":"string","enum":["erased","already_erased","marker_only"]},"principal":{"description":"The erased user, when there is one to report. Never their identity.","oneOf":[{"type":"object","description":"How a user appears to others. A deleted user keeps their id (so their\nposts stay grouped) and loses their name. Each board shows its own\nlabel for them, so the API sends `deleted: true` instead of a name.\n","required":["id","display_name","deleted"],"properties":{"id":{"type":"string","pattern":"^prn_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"display_name":{"type":["string","null"]},"deleted":{"type":"boolean"}}},{"type":"null"}]}}}}}},"401":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"The key is missing, wrong, revoked or for another board. All of these\nlook the same. Check the key and the app ID.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"404":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"The board isn't being served, for example because the account is\nsuspended. Check the app ID, then contact support.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"409":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"`code: conflict`. The user's identity changed during three attempts\nin a row (a sign-in racing the erasure). Nothing is left half-done;\nretry.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"429":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until the same request can succeed.","schema":{"type":"integer","minimum":1}}},"description":"`code: rate_limited`. Too many requests. Wait `Retry-After` seconds and\nsend the same request again; nothing was written.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"503":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"`code: dependency_unavailable`. UserSignal can't record the erasure right\nnow. Nothing was erased. Retry later.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}}}}},"/v1/tenant/apps/{appId}/users/{userId}/export":{"get":{"tags":["tenant-api"],"operationId":"exportHostedUser","summary":"Export a user's data","description":"The user's data, so a tenant can include feedback in its own\naccount-export response. Per user only; a tenant admin's whole-board\nexport is a console action, which this key cannot reach. A user who has\nnever used the board, or who has been erased, gets an empty export\n(`principal: null`, empty lists) rather than a 404. That way the\nendpoint doesn't reveal who has used the board. Limits: 2,000\nsuggestions, 5,000 comments, 10,000 votes. Over any of them, the\nanswer is 422 `export_too_large`.\n","security":[{"tenantApiKey":[]}],"parameters":[{"name":"appId","in":"path","required":true,"description":"Your app ID, which is the slug you chose when you created the board.","schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"description":"The `user_id` your Redeem URL sends. Percent-encode it.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}},"Cache-Control":{"description":"Always `private, no-store`, with `Vary: Authorization, Origin`.\n","schema":{"type":"string","const":"private, no-store"}}},"description":"The user's data, or an empty export.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"required":["format_version","exported_at","principal","suggestions","comments","votes"],"properties":{"format_version":{"type":"integer","const":1},"exported_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]},"principal":{"type":"object","description":"How a user appears to others. A deleted user keeps their id (so their\nposts stay grouped) and loses their name. Each board shows its own\nlabel for them, so the API sends `deleted: true` instead of a name.\n","required":["id","display_name","deleted"],"properties":{"id":{"type":"string","pattern":"^prn_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"display_name":{"type":["string","null"]},"deleted":{"type":"boolean"}}},"suggestions":{"type":"array","maxItems":2000,"items":{"type":"object","additionalProperties":false,"required":["id","title","description","moderation_status","workflow_status","withdrawn","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Opaque. Clients compare ids for equality and parse nothing out of them.","pattern":"^sug_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"title":{"type":"string"},"description":{"type":"string"},"moderation_status":{"type":"string","enum":["pending","approved","rejected"]},"workflow_status":{"type":"string","description":"Product workflow, independent of moderation. `declined` is a decision\nabout a publishable suggestion and is not moderation rejection.\n","enum":["open","under_consideration","planned","in_progress","completed","declined"]},"withdrawn":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]},"updated_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]}}}},"comments":{"type":"array","maxItems":5000,"items":{"type":"object","additionalProperties":false,"required":["id","suggestion_id","body","hidden","deleted","created_at"],"properties":{"id":{"type":"string","pattern":"^cmt_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"suggestion_id":{"type":"string","description":"Opaque. Clients compare ids for equality and parse nothing out of them.","pattern":"^sug_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"body":{"type":"string"},"hidden":{"type":"boolean"},"deleted":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]}}}},"votes":{"type":"array","maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["suggestion_id","created_at"],"properties":{"suggestion_id":{"type":"string","description":"Opaque. Clients compare ids for equality and parse nothing out of them.","pattern":"^sug_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"created_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]}}}}}},{"type":"object","additionalProperties":false,"description":"A user with no stored data.","required":["format_version","exported_at","principal","suggestions","comments","votes"],"properties":{"format_version":{"type":"integer","const":1},"exported_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]},"principal":{"type":"null"},"suggestions":{"type":"array","maxItems":0},"comments":{"type":"array","maxItems":0},"votes":{"type":"array","maxItems":0}}}]}}}},"401":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"The key is missing, wrong, revoked or for another board. All of these\nlook the same. Check the key and the app ID.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"404":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"The board isn't being served, for example because the account is\nsuspended. Check the app ID, then contact support.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"422":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"`code: export_too_large`. The data exceeds this operation's limit.\nNothing is returned.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"429":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until the same request can succeed.","schema":{"type":"integer","minimum":1}}},"description":"`code: rate_limited`. Too many requests. Wait `Retry-After` seconds and\nsend the same request again; nothing was written.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}}}}}},"components":{"securitySchemes":{"redeemSecret":{"type":"http","scheme":"bearer","description":"The redeem secret the console issued for your app, sent by UserSignal\nas `Authorization: Bearer <secret>`. Compare it in constant time.\nDuring a rotation accept the current and the previous one.\n"},"tenantApiKey":{"type":"http","scheme":"bearer","description":"A tenant's server-to-server key for one app, issued in the console and\nshown once. Never sent to a browser. Accepted only on the routes that\nname it: per-user erase and per-user export.\n"}},"schemas":{"RedeemRequest":{"type":"object","description":"Exactly what UserSignal sends.","required":["code","app_id","redirect_uri"],"properties":{"code":{"type":"string","minLength":1,"maxLength":512,"description":"The code you created, as you created it."},"app_id":{"type":"string","description":"Your app's id in UserSignal. Must equal the app the code was created for."},"redirect_uri":{"type":"string","format":"uri","description":"The `redirect_uri` the code was created for."},"nonce":{"description":"Sent only for a code created by the embed code endpoint, whose\n`redirect_uri` is then `https://<board-host>/embed`.\n","type":"string","pattern":"^[A-Za-z0-9_-]{32,128}$"}}},"RedeemResponse":{"type":"object","description":"Who the person is. **Send no other field.** A response carrying\nanything else (`capabilities`, `is_admin`, `email`) is refused as\n`redeem_bad_response` and the sign-in fails. Capabilities come only\nfrom the role mapping you configured in the console.\n\nA field that would break these rules fails the whole sign-in. If you\ncannot send a display name cleanly, omit it rather than truncating it.\n","additionalProperties":false,"required":["user_id"],"properties":{"user_id":{"type":"string","minLength":1,"maxLength":255,"pattern":"^(?!\\s)(?![\\s\\S]*\\s$)[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]+$","description":"Your stable id for this person. It must never change for the same\nperson and never be reused for another. Use your database id, not\nan email address, which can change. No control characters, and no\nleading or trailing whitespace (JavaScript `trim()` rules).\n\nLength is counted in UTF-16 code units, at most 255, as\nJavaScript's `String.length` does: a character outside the Basic Multilingual Plane, such as\nan emoji, counts as two. JSON Schema's `maxLength` counts\ncharacters and cannot express this, so a value that passes\n`maxLength` can still be refused. Measure UTF-16 length yourself.\n"},"roles":{"type":"array","maxItems":32,"default":[],"description":"Your own role names. In the console you map each one to a\ncapability preset (`editor` or `admin`); a name you did not map\ngrants nothing beyond an ordinary user's. Each name is at most 64\nUTF-16 code units (see `user_id`).\n","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]+$"}},"display_name":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]+$","description":"Shown next to what the person writes, to other users of the board.\nAt most 128 UTF-16 code units (see `user_id`): 128 Latin letters,\nor 64 emoji. Omit a name that doesn't fit.\n"}}},"EmbedCodeRequest":{"type":"object","required":["board","nonce"],"properties":{"board":{"type":"string","description":"The board id from the console's embed snippet."},"nonce":{"type":"string","pattern":"^[A-Za-z0-9_-]{32,128}$","description":"Random, chosen by the board's iframe for one code request."}}},"EmbedCodeResponse":{"type":"object","required":["code"],"properties":{"code":{"type":"string","minLength":1,"maxLength":512,"description":"Single use, about 60 seconds, bound to the app, this nonce and `https://<board-host>/embed`."}}},"EmbedNonce":{"type":"string","pattern":"^[A-Za-z0-9_-]{32,128}$","description":"Random, chosen by the board's iframe for one code request."},"PrincipalIdString":{"type":"string","pattern":"^prn_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"PrincipalRef":{"type":"object","description":"How a user appears to others. A deleted user keeps their id (so their\nposts stay grouped) and loses their name. Each board shows its own\nlabel for them, so the API sends `deleted: true` instead of a name.\n","required":["id","display_name","deleted"],"properties":{"id":{"type":"string","pattern":"^prn_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"display_name":{"type":["string","null"]},"deleted":{"type":"boolean"}}},"AnonymizeResult":{"type":"object","description":"`erased`: this request removed the user's identity; any session they\nhad stops working on its next request.\n`already_erased`: an earlier call already did this.\n`marker_only`: this user had never been seen. The erasure was recorded\nanyway, so a code created before this call is refused.\n","required":["outcome","principal"],"properties":{"outcome":{"type":"string","enum":["erased","already_erased","marker_only"]},"principal":{"description":"The erased user, when there is one to report. Never their identity.","oneOf":[{"type":"object","description":"How a user appears to others. A deleted user keeps their id (so their\nposts stay grouped) and loses their name. Each board shows its own\nlabel for them, so the API sends `deleted: true` instead of a name.\n","required":["id","display_name","deleted"],"properties":{"id":{"type":"string","pattern":"^prn_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"display_name":{"type":["string","null"]},"deleted":{"type":"boolean"}}},{"type":"null"}]}}},"Problem":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}},"Timestamp":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]},"SuggestionIdString":{"type":"string","description":"Opaque. Clients compare ids for equality and parse nothing out of them.","pattern":"^sug_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"ModerationStatus":{"type":"string","enum":["pending","approved","rejected"]},"WorkflowStatus":{"type":"string","description":"Product workflow, independent of moderation. `declined` is a decision\nabout a publishable suggestion and is not moderation rejection.\n","enum":["open","under_consideration","planned","in_progress","completed","declined"]},"CommentIdString":{"type":"string","pattern":"^cmt_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"PrincipalExport":{"type":"object","additionalProperties":false,"required":["format_version","exported_at","principal","suggestions","comments","votes"],"properties":{"format_version":{"type":"integer","const":1},"exported_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]},"principal":{"type":"object","description":"How a user appears to others. A deleted user keeps their id (so their\nposts stay grouped) and loses their name. Each board shows its own\nlabel for them, so the API sends `deleted: true` instead of a name.\n","required":["id","display_name","deleted"],"properties":{"id":{"type":"string","pattern":"^prn_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"display_name":{"type":["string","null"]},"deleted":{"type":"boolean"}}},"suggestions":{"type":"array","maxItems":2000,"items":{"type":"object","additionalProperties":false,"required":["id","title","description","moderation_status","workflow_status","withdrawn","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Opaque. Clients compare ids for equality and parse nothing out of them.","pattern":"^sug_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"title":{"type":"string"},"description":{"type":"string"},"moderation_status":{"type":"string","enum":["pending","approved","rejected"]},"workflow_status":{"type":"string","description":"Product workflow, independent of moderation. `declined` is a decision\nabout a publishable suggestion and is not moderation rejection.\n","enum":["open","under_consideration","planned","in_progress","completed","declined"]},"withdrawn":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]},"updated_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]}}}},"comments":{"type":"array","maxItems":5000,"items":{"type":"object","additionalProperties":false,"required":["id","suggestion_id","body","hidden","deleted","created_at"],"properties":{"id":{"type":"string","pattern":"^cmt_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"suggestion_id":{"type":"string","description":"Opaque. Clients compare ids for equality and parse nothing out of them.","pattern":"^sug_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"body":{"type":"string"},"hidden":{"type":"boolean"},"deleted":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]}}}},"votes":{"type":"array","maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["suggestion_id","created_at"],"properties":{"suggestion_id":{"type":"string","description":"Opaque. Clients compare ids for equality and parse nothing out of them.","pattern":"^sug_[0-9abcdefghjkmnpqrstvwxyz]{26}$"},"created_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]}}}}}},"EmptyHostedUserExport":{"type":"object","additionalProperties":false,"description":"A user with no stored data.","required":["format_version","exported_at","principal","suggestions","comments","votes"],"properties":{"format_version":{"type":"integer","const":1},"exported_at":{"type":"string","format":"date-time","description":"ISO-8601 UTC with exactly three fractional digits, so the value sorts lexicographically in instant order.","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","examples":["2026-09-12T08:30:00.000Z"]},"principal":{"type":"null"},"suggestions":{"type":"array","maxItems":0},"comments":{"type":"array","maxItems":0},"votes":{"type":"array","maxItems":0}}}},"parameters":{"TenantApiAppId":{"name":"appId","in":"path","required":true,"description":"Your app ID, which is the slug you chose when you created the board.","schema":{"type":"string"}},"HostedUserId":{"name":"userId","in":"path","required":true,"description":"The `user_id` your Redeem URL sends. Percent-encode it.","schema":{"type":"string","minLength":1,"maxLength":255}}},"headers":{"XRequestId":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}},"TenantNoStore":{"description":"Always `private, no-store`, with `Vary: Authorization, Origin`.\n","schema":{"type":"string","const":"private, no-store"}}},"responses":{"TenantApiUnauthorized":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"The key is missing, wrong, revoked or for another board. All of these\nlook the same. Check the key and the app ID.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"TenantApiNotServed":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"The board isn't being served, for example because the account is\nsuspended. Check the app ID, then contact support.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"ErasureConflict":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"`code: conflict`. The user's identity changed during three attempts\nin a row (a sign-in racing the erasure). Nothing is left half-done;\nretry.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"TenantApiRateLimited":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until the same request can succeed.","schema":{"type":"integer","minimum":1}}},"description":"`code: rate_limited`. Too many requests. Wait `Retry-After` seconds and\nsend the same request again; nothing was written.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"TenantApiErasureUnavailable":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"`code: dependency_unavailable`. UserSignal can't record the erasure right\nnow. Nothing was erased. Retry later.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"ExportTooLarge":{"headers":{"X-Request-Id":{"description":"Sent on every response, including errors. The server generates it and ignores any value you send.","schema":{"type":"string"}}},"description":"`code: export_too_large`. The data exceeds this operation's limit.\nNothing is returned.\n","content":{"application/problem+json":{"schema":{"type":"object","description":"The error envelope. Branch on `code`. `title` is a fixed phrase for\neach code.\n","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable and machine-readable. New codes may be added. If you get\none you don't know, handle it by its HTTP status class.\n","examples":["validation_failed","precondition_failed","not_found","invalid_transition","bulk_precondition_failed","feature_disabled","parent_not_open","idempotency_key_conflict","idempotency_result_gone","payload_too_large","rate_limited","export_too_large","target_not_empty","board_busy","challenge_required","title_taken"]},"request_id":{"type":"string"},"errors":{"type":"array","description":"Present only on `validation_failed` and `title_taken`. Field names and reasons; never the rejected values.","items":{"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"}}}}}}}}}}}}