oauth

Approve OAuth2 authorization request

Changed on

Issues an authorization code after the authenticated user approves the request. Called by the frontend consent page. Requires authentication.

post/oauth/authorize/approve

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/oauth/authorize/approve
  • 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

client_idstring required

OAuth2 client ID

redirect_uristring required

Redirect URI registered with the client

code_challengestring required

PKCE code challenge

code_challenge_methodstring required

PKCE method, must be 'S256'

statestring

Opaque state value to prevent CSRF

Response

JSON body with redirect_uri the frontend should navigate the browser to

object required

Changes