Start an authorization session
Initiates an OAuth flow for the caller. strategy is optional and defaults to REUSE (return an existing token when scopes match); use CREATE to force a new OAuth flow. Status values: COMPLETED — a valid token is available and the response includes token (HTTP 200); PENDING — the user must visit verification_url to authorize (HTTP 201, includes session id and Location header); CONNECTION_REQUIRED — no usable token or connection exists for the provider; TOKEN_EXPIRED — the stored token expired and cannot be refreshed, re-authorize. is_default defaults to true; set false when adding a secondary account with strategy CREATE. token_id targets a specific stored token in multi-account flows.
Authorizations
LangSmith API key (lsv2_...).
Body
Session details
Defaults to true. When adding a secondary account (strategy: CREATE), set false.
Custom OAuth callback URL for headless flows. Must be a member of the provider's allowed_redirect_uris allowlist (enforced by host-backend); forwarded as-is.
REUSE, CREATE Target a specific stored token in multi-account flows; must belong to the caller.

