curl --request POST \
--url https://api-dev.narrative.io/oauth/token \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=refresh_token \
--data client_id=zzzzzzzzzzzzz \
--data refresh_token=yyyyyyyyyyy{
"access_token": "xxxxxxxxxxx",
"access_token_expires_in": 3600,
"refresh_token": "yyyyyyyyyyy",
"refresh_token_expires_in": 14400
}Requests or refreshes the OAuth Token.
curl --request POST \
--url https://api-dev.narrative.io/oauth/token \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=refresh_token \
--data client_id=zzzzzzzzzzzzz \
--data refresh_token=yyyyyyyyyyy{
"access_token": "xxxxxxxxxxx",
"access_token_expires_in": 3600,
"refresh_token": "yyyyyyyyyyy",
"refresh_token_expires_in": 14400
}Security scheme for requesting and refreshing tokens using the /auth/token endpoint. Uses basic authentication with
client_id as the username and client_secret as the password.
Request or refresh token
refresh_token, client_credentials "refresh_token"
A client specific identifier provided by Narrative
"zzzzzzzzzzzzz"
The token used to refresh the API session. Required if grant_type is refresh_token
"yyyyyyyyyyy"
Refreshed token
The access token
"xxxxxxxxxxx"
The TTL of the access_token in seconds
3600
The refresh token
"yyyyyyyyyyy"
The TTL of the refresh_token in seconds
14400