Skip to main content
POST
Error

Authorizations

X-Api-Key
string
header
required

LangSmith API key (lsv2_...).

Body

application/json

Session details

is_default
boolean

Defaults to true. When adding a secondary account (strategy: CREATE), set false.

provider_slug
string
redirect_uri
string

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.

scopes
string[]
strategy
enum<string>
Available options:
REUSE,
CREATE
token_id
string

Target a specific stored token in multi-account flows; must belong to the caller.

Response

Existing token reused; no new session created.

id
string
metadata
object
provider_slug
string
status
enum<string>
Available options:
PENDING,
COMPLETED,
CONNECTION_REQUIRED,
TOKEN_EXPIRED
token
string
verification_url
string