post deprecatedhttps://partner-api.yelp.com/token/v1/refresh
This endpoint is deprecated
Please use the Get Access Token v2 endpoint for exchanging a refresh token with an access token.
Request Headers
Content-Type: application/x-www-form-urlencoded
Response
Parameter Name | Description |
---|---|
access_token | Token issued by the authorization server. The token will be 128 characters long. Tokens will be valid for the R2R api for 7 days. |
expires_in | Seconds until token expires. |
expiration_timestamp | The expiration time of the access token in ISO8601 format. |
token_type | The type of token issued. Default to ‘Bearer’ |
Error Scenarios
For the following error scenarios, Yelp will respond with an HTTP error with the following format for the response body:
{
"error": {
"id" : "<ERROR_CODE_ID>",
"description": "<Human readable description.>",
"http_code": "<http_code>"
}
}
id | description | http_code |
---|---|---|
INVALID_REQUEST | Missing a required parameter or includes an unsupported parameter. | HTTPBadRequest (400) |
CLIENT_NOT_FOUND | Supplied client ID does not exist. | HTTPNotFound (404) |
INVALID_CLIENT | Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method. | HTTPUnauthorized (401) |
UNAUTHORIZED_CLIENT | The authenticated client is not authorized to use this authorization grant type. | HTTPBadRequest (400) |
UNSUPPORTED_GRANT_TYPE | The authorization grant type is not supported by the authorization server. | HTTPBadRequest (400) |
TOKEN_NOT_FOUND | Supplied refresh token does not exist. | HTTPNotFound (404) |
INVALID_SCOPE | The request is unauthorized for the given scope. | HTTPBadRequest (400) |
INVALID_TOKEN | The access token linked to this refresh token is expired, revoked, malformed, or invalid for other reasons. | HTTPBadRequest (400) |