oauth

Authorize a device code

Changed on

Marks a device code as authorized for the authenticated user. Called by the /activate page when the user enters their user code. Requires authentication.

post/oauth/device/authorize

Request

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

Request body multipart/form-data

organization_idstring required

Organization ID; must match the authenticated org

workspace_idstring

Default workspace ID; must belong to organization and be accessible to user

user_codestring required

User code displayed on the device

Response

OK

object required

Changes