Skip to main content
Use Navigator as the backend for your own application. You control the interface, branding, and how results appear. Your users do not need to open Navigator. Choose separately whose Darwin account authorizes the work, whose connections it uses, and who pays.

Choose your integration

White-labeling describes the experience, not a permission level. You can build a custom interface in all three models. A customer who chooses Sign in with Darwin sees Darwin’s sign-in and consent screen; do not hide whose account they are authorizing. An application key or an arbitrary userId never becomes permission to access that person’s accounts. Start with the API quickstart for the account → agent or application → session → message flow.

Register your application

Create and verify your account, then register an application with POST /api/v2/account/applications. Your verified account authorizes this setup, so you do not need an API key before registering your first application. Create an application key using POST /api/v2/account/api-keys. Choose only the scopes needed. The secret is shown once. Keep keys, OAuth access tokens, and refresh tokens on your server, outside client bundles and logs. An application key with directory:read can discover public capabilities and plan application-scoped sessions where those APIs are enabled. It cannot authorize Act, access a connected person’s private resources, approve payments, or publish on their behalf. Newly created application keys are not user-bound execution keys.

1. White-label with your own users

Keep your existing sign-in and build any experience you want over the API. Your backend authenticates each app user and derives a stable, opaque userId from that authenticated identity. Send that same ID when creating and continuing their application-scoped session. Do not trust a user ID supplied by an unauthenticated browser request.
Set DARWIN_API_BASE to your API origin including /api, such as http://localhost:8000/api locally. Session availability depends on the API environment. Use audience: "agent" for structured facts and Markdown that you render yourself. Human-oriented DarwinUI delivery is optional; you do not need to embed Navigator’s interface. Store the returned sessionId against your authenticated app user. On follow-up, send their original userId with a new clientMessageId. Only your trusted backend holds the application credential: it can access application-managed data, so your own authorization checks must prevent one app user from requesting another user’s session or results. The same userId in another application is a different scope. For execution funded by you, connect your developer account once using OAuth with the required scopes, then use that grant on your server. Create execution-capable sessions with that same grant from the start. An application-key session does not silently acquire account authority when you switch credentials. Your developer account supplies the connections, permissions, and spending context; an app-local userId does not supply the customer’s credentials.

2. Sign in with Darwin

Offer a Sign in with Darwin or Connect Darwin action inside your app. Use OAuth authorization code flow with PKCE, a registered redirect URI, and a fresh state value bound to the app user’s login. Discover the authorization and token endpoints through:
Use the discovered authorization_endpoint and token_endpoint. Request response_type=code, send a fresh state, and use code_challenge_method=S256 with a challenge derived from your verifier. Exchange the returned code with grant_type=authorization_code, the same client_id and redirect_uri, and the original code_verifier. Use the API resource audience https://api.darwin.so/api/v2, including when calling Navigator v3 routes.
  1. Ask for the minimum scopes. Discovery uses directory:read; execution on the person’s behalf requires the applicable grant, such as account-level human:actions.
  2. Redirect the person to Darwin sign-in and consent. Signing in alone does not authorize every resource or action.
  3. Verify state at your callback and exchange the code using the matching verifier and redirect URI.
  4. Store the resulting grant securely against that app user. Send Authorization: Bearer <access-token> from your backend.
  5. Use the same connected account and application when continuing its sessions. Stop on revoked or expired authorization; refresh only when a refresh token was granted, otherwise reconnect.
The connected person brings the permissions and provider connections they have authorized. A Darwin login does not automatically connect every provider, guarantee a balance, or waive approval for paid work or external changes. The existing payer and operation policy decides which credits or funding source apply. Application-scoped OAuth sessions are bound to both the application and the verified Darwin account. Another connected person in the same app cannot read that session by supplying its ID or the same app-local userId. Application-only keys cannot read these connected-person sessions. Older application-managed sessions without a recorded OAuth owner are not automatically assigned to a person. The app can render results in its own interface after consent. Do not send one person’s grant to another user, or use your developer grant while presenting the action as authorized by the customer.

3. Run through one developer account

Connect your own Darwin account once and keep its OAuth grant on your backend. Existing user-bound API keys can also authorize the work they permit until revoked. Use the scopes documented by each endpoint; for Act, an account-level OAuth human:actions grant or an existing user key with agent:read and agent:write supplies account authority. All work uses your account’s connections, permissions, approvals, and spending context. Your app can show the returned outputs to its users without asking each one to create a Darwin account. This is appropriate for a developer-operated service where you own the work. It does not let you act as a customer or access their private provider account without a separate connection and authorization. For multiple app users, retain the same stable user-to-session mapping described above, and enforce it in your backend before reading or submitting work. Set per-user budgets and permitted operations in your app in addition to Darwin’s account-wide limits. Do not expose a raw proxy that lets arbitrary users spend against your account or choose any session ID.

Sessions, retries, and limits

Use the same credential identity and application context throughout a session. Changing the payer, account, or credential model is not an automatic ownership transfer.
  • Create with POST /v3/sessions, continue with POST /v3/sessions/{sessionId}/messages, and read with GET /v3/sessions/{sessionId}.
  • Give each new user message a new clientMessageId. Reuse IDs only with identical inputs when retrying an uncertain response.
  • Use operation-local endpoints for operation inputs and approvals; sending an ordinary message does not grant payment or execution authority.
  • Keep outputs and artifacts scoped to their owner. A successful HTTP response or rendered interface is not proof that a provider completed the work.
  • Respect rate-limit headers and spending controls. New keys, application users, and sessions do not multiply the verified account’s allowance.
The guest session also supports account-free exploration with a private token and bounded allowances. Guest access does not replace a developer-funded integration or a connected user’s OAuth grant.

Usage and spending

Application owners can read the spending report and usage report with an owner credential carrying usage:read and the required applicationId. Application-only discovery keys and customer OAuth grants do not administer application-wide reports. The usage metric is api_request_success: request counts, successes, failures, unknowns, and average latency by operation. An HTTP success is not a verified task outcome. Reports cover recorded application requests; inspect coverage for source limitations. Customer-funded transactions are excluded from the application’s payer scope. Reserved amounts and wallet funding are not settled spending.

Personal context

Personal context explains personal, application-user, and business memory scopes. Supplied context and memory can personalize results; they never grant execution, account access, or payment permission.
Last modified on November 16, 2026