Documentation Index
Fetch the complete documentation index at: https://docs.nusomi.com/llms.txt
Use this file to discover all available pages before exploring further.
All Nusomi REST and streaming endpoints accept a workspace API key in the Authorization header.
Authorization: Bearer nsk_live_...
| Prefix | Use |
|---|
nsk_live_… | Production. Real captures and exports. |
nsk_test_… | Test mode. Sessions auto-deleted after 7 days. No charges. |
nsk_local_… | Self-hosted control plane. Never reaches Nusomi infrastructure. |
Workspace + scope
Each key is bound to one workspace. The scope determines what the key can do:
| Scope | Read | Write | Admin |
|---|
| Read sessions / events / frames / exports | ✓ | ✓ | ✓ |
| Create / start / stop / tag sessions | | ✓ | ✓ |
| Create exports | | ✓ | ✓ |
Trigger replays in dry sandbox | | ✓ | ✓ |
Trigger replays in live sandbox | | with replay:live | ✓ |
| Manage webhooks | | | ✓ |
| Manage workspace members + billing | | | ✓ |
Errors
| Code | Meaning |
|---|
401 missing_authorization | No Authorization header. |
401 invalid_api_key | Key doesn’t match any active workspace key. |
403 insufficient_scope | Key is valid but doesn’t carry the required scope. |
403 workspace_disabled | Workspace is in a non-billing state (suspended, expired). |
Every error response includes a request_id — quote it when emailing support.
Programmatic key issuance
Admin-scope keys can mint other keys via REST:
curl https://api.nusomi.com/v1/keys \
-X POST \
-H "Authorization: Bearer nsk_live_<admin-key>" \
-H "Content-Type: application/json" \
-d '{
"label": "ci-ingest",
"scope": "write",
"expires_at": "2027-01-01T00:00:00Z"
}'
Response:
{
"id": "key_01HZ...",
"label": "ci-ingest",
"scope": "write",
"key": "nsk_live_..."
}
The full key value is returned only once — store it immediately.