Skip to main content
POST
Exchange authorization code for OAuth token

Headers

x-signature
string
required

Required for API-key authenticated requests. HMAC-SHA256(secretKey, timestamp + METHOD + path + body) as lowercase hex. Omit only for JWT/OAuth session tokens or public routes.

x-timestamp
string
required

Required with x-signature. Epoch milliseconds; rejected if drift exceeds 5 minutes. Omit only for JWT/OAuth session tokens or public routes.

Body

application/json
grant_type
string
required
Example:

"authorization_code"

code
string
required
redirect_uri
string
required
Example:

"http://127.0.0.1:8765/callback"

client_id
string
required
Example:

"echozero-cli"

code_verifier
string
required

Response

201