Skip to main content
POST
/
profile
/
authentication
/
tokens
Exchange token
curl --request POST \
  --url https://developersandbox-api.flutterwave.com/profile/authentication/tokens \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "token_type": "auth_code",
  "redirect_uri": "<string>"
}
'
{
  "status": "success",
  "message": "<string>",
  "data": {
    "access_token": "<string>",
    "refresh_token": "<string>",
    "access_expires_in": 123,
    "refresh_expires_in": 123,
    "token_type": "<string>",
    "id_token": "<string>",
    "session_state": "<string>",
    "scope": "<string>"
  }
}

Headers

X-Trace-Id
string

A unique identifier to track this operation. It must be between 12 and 255 characters in length.

Required string length: 12 - 255

Body

application/json
token
string
token_type
enum<string>
Available options:
auth_code,
refresh_token
redirect_uri
string

Response

OK

status
enum<string>
Available options:
success,
failed
message
string
data
object