v2

latestOpenAPI 3.1.02026-07-26512050.1 KB
oauth

Token

Exchange authorization code for API key (as access_token).

ChatGPT sends: POST /oauth/token Content-Type: application/x-www-form-urlencoded grant_type=authorization_code&code=...&redirect_uri=...&client_id=...&client_secret=...

post/api/v1/oauth/token

Response

Successful Response

{"stackTrail":"paths:/api/v1/oauth/token:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}