AI agent instructions
AI agent instructions
Authorization header.
Get your API key
- Sign in to the Notte Console
- Open the API keys page
- Generate or copy your API key
Using the API key
Set your API key locally before calling the REST API or using either SDK:NOTTE_API_KEY automatically:
Access tokens
To give an agent or a sandbox a credential that expires, mint a short-lived access token (nat_...) from your API key instead of handing out the key. A token is sent in the same Authorization: Bearer header and acts as its API key. A full token, the default, works on every route but minting and revoking tokens, admin routes, and starting an existing function run by its id (POST /functions/{function_id}/runs/{run_id}, used by the SDK’s function.run()), which take an API key. A restricted token works only on browser sessions, page actions, session files, search, scrape, usage and health (see the restricted route list). A token expires within an hour and can be revoked at any time. Code that holds a full token can obtain your API key through a function run, and the key keeps working after the token expires, so give a full token only to code you would trust with the key; use restricted when the expiry must bound access. See Access tokens.