Skip to main content
POST
/
oauth
/
token
Error
A valid request URL is required to generate request examples
{
  "access_token": "<string>",
  "expires_in": 123,
  "refresh_token": "<string>",
  "token_type": "<string>",
  "workspace_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.langchain.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Body

multipart/form-data
grant_type
string
required

Grant type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token

client_id
string
required

OAuth2 client ID

code
string

Authorization code (authorization_code grant)

code_verifier
string

PKCE code verifier (authorization_code grant)

redirect_uri
string

Redirect URI (authorization_code grant)

device_code
string

Device code (device_code grant)

refresh_token
string

Refresh token (refresh_token grant)

Response

OK

access_token
string
expires_in
integer
refresh_token
string
token_type
string
workspace_id
string