Skip to main content
POST
Start provider sign-in

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.

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.