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>'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.agentpowers.ai/llms.txt

Use this file to discover all available pages before exploring further.

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

access_token
string
required
refresh_token
string
required
token_type
string
required
expires_in
integer
required