oauth

Request OAuth2 device authorization

Changed on

Issues a device code and user code for the device authorization flow per RFC 8628.

post/oauth/device/code

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/oauth/device/code
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Request body multipart/form-data

client_idstring required

OAuth2 client ID

Response

OK

device_codestring
expires_ininteger
intervalinteger
user_codestring
verification_uristring
verification_uri_completestring

The verification URI with the user code included, so the user confirms the code instead of typing it (RFC 8628 §3.3.1).

Changes