Skip to main content
POST
/
v1
/
oauth
/
token
Token Exchange
curl --request POST \
  --url https://api.agentpowers.ai/v1/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'grant_type=<string>' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'code=<string>' \
  --data 'redirect_uri=<string>' \
  --data 'code_verifier=<string>' \
  --data 'refresh_token=<string>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Body

application/x-www-form-urlencoded
grant_type
string
required
client_id
string
required
client_secret
string
required
code
string | null
redirect_uri
string | null
code_verifier
string | null
refresh_token
string | null

Response

Successful Response