Making Authorized Requests
Once you have obtained an API access token, you can make authorized requests to the REST API by including the following header:
Authorization: Bearer {access_token}
Replace{access_token}with your valid access token.
Response Behavior
The API responds according to the validity of the access token provided:
| Condition | Response |
|---|---|
| Token is present and valid | Request succeeds and returns the appropriate data. |
| Token is missing, invalid, or expired | HTTP 401 Unauthorized |
| Token is valid but lacks required permissions | HTTP 403 Forbidden |
Example Error Responses
{
"errors": [
{
"status": 401,
"title": "Unauthorized",
"detail": "This request requires authorization in the form of a bearer token or API key."
}
]
}{
"errors": [
{
"source": {
"header": "Authorization"
},
"title": "Invalid Token",
"code": "2-10",
"detail": "Verification failed"
}
]
}{
"errors": [
{
"status": 401,
"title": "Unauthorized",
"detail": "The access token is expired."
}
]
}{
"errors": [
{
"status": 403,
"title": "Invalid Scope",
"detail": "View menu data for listings"
}
]
}Troubleshooting Tips
| Issue | Error Message / Description | How to Fix |
|---|---|---|
| Invalid Client Credentials |
(401 Unauthorized) | • Double-check your • Ensure there are no extra spaces or incorrect characters. • These values are case-sensitive. |
| Missing or Insufficient Scopes |
(403 Forbidden) | Confirm that: • The listing has granted you access to the required scopes. • Check |
| Token Not Refreshing | Calling New tokens only issued after 50% of lifespan or scope change. | • Check • If urgent, request a token with a different scope. |
| Token Expired |
(401 Unauthorized) | • Request a new access token by calling • Expired tokens cannot be refreshed. |
Diagnosing Authorization Issues
Checklist:
- Token included in
Authorizationheader. - Token is not expired (
expclaim orcreated_at + expires_in). - Token scopes include the required permissions for the endpoint you're calling.
- The listing has assigned you as an integrator.
Updated 6 days ago
What’s Next
Now that you know how to make an Authorized Request, let's go over rate limits real quick.