Skip to main content
Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
All API requests require a Bearer token in the Authorization header.

Get your API key

  1. Sign in to the Notte Console
  2. Open the API keys page
  3. Generate or copy your API key

Using the API key

Set your API key locally before calling the REST API or using either SDK:
Both SDKs read NOTTE_API_KEY automatically:
If you want the full machine-readable API contract, the OpenAPI spec is available at:

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.

Request headers