# Anything API Source: https://docs.notte.cc/anything-api/app Turn any website into an API # Anything API Docs Source: https://docs.notte.cc/anything-api/docs Anything API documentation # Anything Start Source: https://docs.notte.cc/api-reference/anything/anything-start https://api.notte.cc/openapi.json post /anything/start # List Audit Events Source: https://docs.notte.cc/api-reference/audit/list-audit-events https://api.notte.cc/openapi.json get /audit-events List audit events for the caller's workspace, newest first. With an organization API key, owners and admins get the whole organization's audit trail; members only get events about them or performed by them. A personal API key returns the personal workspace's events. Only approved customer-facing details appear in `metadata`. # Authentication Source: https://docs.notte.cc/api-reference/authentication Authenticate with the Notte API > [!TIP] > > Read [the Notte skill](https://notte.cc/skill.md) 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](https://console.notte.cc) 2. Open the [API keys page](https://console.notte.cc/apikeys) 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: ```bash theme={null} export NOTTE_API_KEY=your_api_key_here ``` Both SDKs read `NOTTE_API_KEY` automatically: ```python client.py theme={null} theme={null} theme={null} theme={null} from notte_sdk import NotteClient client = NotteClient() ``` ```typescript client.ts theme={null} theme={null} theme={null} theme={null} import { NotteClient } from 'notte-sdk'; const client = new NotteClient(); ``` If you want the full machine-readable API contract, the OpenAPI spec is available at: ```text theme={null} https://api.notte.cc/openapi.json ``` ```bash theme={null} curl https://api.notte.cc/sessions \ -H "Authorization: Bearer $NOTTE_API_KEY" ``` ## 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 on sessions, page actions, session files, search and usage. It expires within an hour and can be revoked at any time. See [Access tokens](/concepts/access-tokens). ## Request headers | Header | Required | Description | | - | - | - | | `Authorization` | Yes | Bearer token with your API key or an [access token](/concepts/access-tokens) | | `Content-Type` | Yes | `application/json` for POST/PATCH requests | # Account Changes Source: https://docs.notte.cc/api-reference/data-apis/account-changes https://api.notte.cc/openapi.json get /data/monitors/changes # Account Runs Source: https://docs.notte.cc/api-reference/data-apis/account-runs https://api.notte.cc/openapi.json get /data/monitors/runs # Attempts Source: https://docs.notte.cc/api-reference/data-apis/attempts https://api.notte.cc/openapi.json get /data/webhooks/deliveries/{delivery_id}/attempts # Brand Retrieve Source: https://docs.notte.cc/api-reference/data-apis/brand-retrieve https://api.notte.cc/openapi.json post /data/brand/retrieve # Changes Source: https://docs.notte.cc/api-reference/data-apis/changes https://api.notte.cc/openapi.json get /data/monitors/{monitor_id}/changes # Create Source: https://docs.notte.cc/api-reference/data-apis/create https://api.notte.cc/openapi.json post /data/monitors # Credit Usage Source: https://docs.notte.cc/api-reference/data-apis/credit-usage https://api.notte.cc/openapi.json get /data/monitors/credit-usage # Delete Source: https://docs.notte.cc/api-reference/data-apis/delete https://api.notte.cc/openapi.json delete /data/monitors/{monitor_id} # Deliveries Source: https://docs.notte.cc/api-reference/data-apis/deliveries https://api.notte.cc/openapi.json post /data/webhooks/deliveries # Detail Source: https://docs.notte.cc/api-reference/data-apis/detail https://api.notte.cc/openapi.json get /data/analytics/requests/{request_id} # Extract a website styleguide Source: https://docs.notte.cc/api-reference/data-apis/extract-a-website-styleguide https://api.notte.cc/openapi.json get /data/web/styleguide # Extract Product Endpoint Source: https://docs.notte.cc/api-reference/data-apis/extract-product-endpoint https://api.notte.cc/openapi.json post /data/products/extract # Fetch Specialized Data Source: https://docs.notte.cc/api-reference/data-apis/fetch-specialized-data https://api.notte.cc/openapi.json post /data/web/fetch # Get Policy Source: https://docs.notte.cc/api-reference/data-apis/get-policy https://api.notte.cc/openapi.json get /data/cache # History Source: https://docs.notte.cc/api-reference/data-apis/history https://api.notte.cc/openapi.json get /data/analytics/requests # Invalidate Source: https://docs.notte.cc/api-reference/data-apis/invalidate https://api.notte.cc/openapi.json delete /data/cache # Limits Source: https://docs.notte.cc/api-reference/data-apis/limits https://api.notte.cc/openapi.json get /data/monitors/limits # List Data Apis Source: https://docs.notte.cc/api-reference/data-apis/list-data-apis https://api.notte.cc/openapi.json get /data # List Monitors Source: https://docs.notte.cc/api-reference/data-apis/list-monitors https://api.notte.cc/openapi.json get /data/monitors # Maps Search Source: https://docs.notte.cc/api-reference/data-apis/maps-search https://api.notte.cc/openapi.json post /data/maps/search # News Search Source: https://docs.notte.cc/api-reference/data-apis/news-search https://api.notte.cc/openapi.json post /data/news/search # People Enrich Source: https://docs.notte.cc/api-reference/data-apis/people-enrich https://api.notte.cc/openapi.json post /data/people/enrich # Retrieve Source: https://docs.notte.cc/api-reference/data-apis/retrieve https://api.notte.cc/openapi.json get /data/monitors/{monitor_id} # Retrieve Change Source: https://docs.notte.cc/api-reference/data-apis/retrieve-change https://api.notte.cc/openapi.json get /data/monitors/{monitor_id}/changes/{change_id} # Retrieve Delivery Source: https://docs.notte.cc/api-reference/data-apis/retrieve-delivery https://api.notte.cc/openapi.json get /data/webhooks/deliveries/{delivery_id} # Retrieve Run Source: https://docs.notte.cc/api-reference/data-apis/retrieve-run https://api.notte.cc/openapi.json get /data/monitors/{monitor_id}/runs/{run_id} # Retry Source: https://docs.notte.cc/api-reference/data-apis/retry https://api.notte.cc/openapi.json post /data/webhooks/deliveries/{delivery_id}/retry # Rotate Secret Source: https://docs.notte.cc/api-reference/data-apis/rotate-secret https://api.notte.cc/openapi.json post /data/monitors/{monitor_id}/webhook/rotate-secret # Run Now Source: https://docs.notte.cc/api-reference/data-apis/run-now https://api.notte.cc/openapi.json post /data/monitors/{monitor_id}/run # Runs Source: https://docs.notte.cc/api-reference/data-apis/runs https://api.notte.cc/openapi.json get /data/monitors/{monitor_id}/runs # Summary Source: https://docs.notte.cc/api-reference/data-apis/summary https://api.notte.cc/openapi.json get /data/analytics # Update Source: https://docs.notte.cc/api-reference/data-apis/update https://api.notte.cc/openapi.json patch /data/monitors/{monitor_id} # Youtube Endpoint Source: https://docs.notte.cc/api-reference/data-apis/youtube-endpoint https://api.notte.cc/openapi.json post /data/youtube/extract # API Error Codes Source: https://docs.notte.cc/api-reference/errors API error responses and status codes > [!TIP] > > Read [the Notte skill](https://notte.cc/skill.md) 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. The API uses standard HTTP status codes and returns structured error responses. ## HTTP status codes | Status | Description | | - | - | | `200` | Success | | `401` | Authentication failed (invalid or missing API key, or an expired or revoked access token), or your plan's credits are exhausted | | `403` | Forbidden, for example a route that does not accept [access tokens](/concepts/access-tokens#where-tokens-work) | | `422` | Validation error - malformed request or invalid parameters | | `429` | Rate limit exceeded, or too many active sessions, agents, vaults, or personas for your plan | | `500` | Internal server error | | `529` | Cluster overloaded - no browser capacity available. Includes a `Retry-After` header | ## Error response format Most errors raised by the API share this envelope. `detail`, `error`, and `message` carry the same text: ```json theme={null} { "detail": "Description of what went wrong", "session_id": "the session involved, or null", "status": 401, "error": "Description of what went wrong", "message": "Description of what went wrong" } ``` These responses also include an `X-Error-Class` header naming the error type, for example `NotteApiInvalidApiKeyError` or `NotteApiRateLimitExceededError`. Use the status code and this header rather than parsing the message text. ## Common errors ### Authentication (401) Header `X-Error-Class: NotteApiInvalidApiKeyError`: ```json theme={null} { "detail": "Unauthorized. Invalid API key.", "session_id": null, "status": 401, "error": "Unauthorized. Invalid API key.", "message": "Unauthorized. Invalid API key." } ``` ### Access tokens (401, 403) Requests made with an [access token](/concepts/access-tokens) can fail with one of these classes, in the standard envelope: | `X-Error-Class` | Status | `detail` | | - | - | - | | `NotteApiAccessTokenExpiredError` | `401` | `access token expired at