Skip to main content
POST
Start provider sign-in
Starts the provider’s interactive flow. Follow next_action and poll until terminal. Codex and Radius default to device-code authentication; other interactive flows may require pasting a callback URL from the user’s browser. Copilot supports github.com accounts only; answer its Enterprise-domain prompt with an empty string. Starting again cancels only this user’s previous login. Requires a workspace-bound user OAuth grant with org:write and workspace membership; a member signs in again only to an account they connected. API keys and browser sessions are not accepted. Login challenges are private to the initiating user. Sessions are persisted for recovery across API instances and restarts until expires_at. An uncertain token exchange is not replayed: an explicit restart-required failure means start a fresh login, retaining account_key. After expiry or a 404, start a new login. Provider device codes may expire sooner. Never share login URLs or codes. Scope: org:write

Authorizations

Authorization
string
header
required

A workspace-bound human user OAuth grant with org:write scope. The user must be an organization owner/admin. API keys and browser sessions are not accepted.

Scopes

org:write

Path Parameters

orgId
string
required

Organization id or slug. Resolve it with GET /v3/self.

providerId
string
required

The provider identifier (e.g. openai, anthropic, google, deepseek), returned as provider_id by listProviderCatalog.

Body

application/json
method
enum<string>

Which sign-in flow to run, one of the provider's oauth_login.methods from listProviderCatalog. Omitted, the provider's default_method runs.

Available options:
interactive,
browser,
device_code
account_key
string

An existing OAuth account to reconnect. Omit to connect the provider-identified Codex account; other enabled providers replace their single default connection.

Required string length: 1 - 512

Response

Sign-in started.

login
object
required

The sign-in's current state. Never contains provider tokens.