Docs Agent API reference
DocsAPI referenceAgent API reference

Agent API reference

Audience-scoped OpenAPI endpoints, schemas, streaming events, and approval contracts.

On this page
1
Start or resume

Open a conversation pinned to your released agent version.

2
Stream SSE

Receive live text deltas, tool activity, and structured UI.

3
Approve writes

Pause on gated tools and submit exact call decisions.

4
Recover safely

Reconcile disconnected turns from saved snapshots.

Base URL & audiences

https://app.norilu.com

Norilu enforces separate credential prefixes and fail-closed guards for server, browser, and management calls.

Secret key (server-only)NORILU_SECRET_KEY · nrl_sk_...

Backend SDKs & REST. Rejects browser Origin headers (403).

Browser-safeBearer nrl_bt_...

Short-lived scoped token minted via norilu.tokens.create(). Rejects server keys.

ManagementBearer nrl_mgmt_...

Workspace admin & CI automation for spaces, versions, and releases.

Conversations

Turns and approvals

Agents, tokens & spaces

Server-only · nrl_sk_...

Browser Embed API

Browser-safe · nrl_bt_...

Events, types & errors

Standard error envelope

Every non-2xx response returns { "error": { "code": "...", "message": "..." } }. Common codes: 402 spend/plan cap reached · 403 wrong audience or missing scope · 409 stale approval or release conflict · 429 rate limit (includes Retry-After).

Still have a question? Talk to us

Search documentation

Find a guide, endpoint or concept.

↑ ↓ to navigate · ↵ to openSearch stays in your browser