Limits and errors
Partner API request limits, the shape of an error response, and what each status and code, such as LICENSE_REQUIRED or INSUFFICIENT_SCOPE, means and how to fix.
This is the reference for what the Partner API allows and what it says when something goes wrong.
Request limits
Each API key can make:
- up to 50 requests a second, with short bursts of up to 100;
- up to 10,000 requests a day.
Over either limit, requests get 429 Too Many Requests. Wait and retry, with a growing delay between attempts. Each of your brewery's two keys has its own limits.
Other limits:
| What | Limit |
|---|---|
| Active keys per brewery | 2 |
| Pours returned by one GET /pours | 1000 (100 by default) |
| externalId | 255 characters: letters, numbers, dots, underscores, colons and hyphens |
| metadata | 10 keys; keys up to 64 characters of letters, numbers and underscores; text values up to 1,024 characters |
| Taps | Your plan's limit (below) |
Your plan sets how many taps you can have: 3 taps on Free, 8 taps on Basic and 100 taps on Professional.
What an error looks like
Errors from RaspberryPints come back as JSON with an error message and, for many errors, a code you can check in your code:
{
"error": "API key does not have the pours:write scope",
"code": "INSUFFICIENT_SCOPE"
}When there is a code, check it rather than the message text.
Key and plan errors
These can come back from any endpoint.
| Status and code | What it means | What to do |
|---|---|---|
| 403 (no code) | The x-api-key header is missing, or the key is wrong or revoked. A new key also gets this for its first 30 to 60 seconds. | Check the header name and the key. Wait a minute after creating a key. |
| 401 INVALID_API_KEY | The key is valid, but the Brewery ID in the path isn't its brewery. Message: Invalid or missing API key. | Use the Brewery ID from the key's own API Keys page. |
| 403 INSUFFICIENT_SCOPE | The key doesn't have the scope this endpoint needs. The message names it, such as API key does not have the taps:write scope. | Create a key with that permission. A key's permissions can't be changed. |
| 403 LICENSE_REQUIRED | The brewery's plan doesn't include API keys: it's on Free, or its paid plan has lapsed. Message: Brewery does not have an active professional license. | Renew or upgrade to Basic or Professional. The key works again once the plan is active. |
| 429 | Over the request rate or the daily limit. | Retry later, with a growing delay. |
| 500 | Something went wrong on our side. Message: Internal server error. | Retry. If it keeps happening, email support@raspberrypints.com. |
The LICENSE_REQUIRED message says "professional", but Basic plans pass this check too.
Request errors
| Status and code | When you see it |
|---|---|
| 400 (no code) | A required field is missing or invalid. The message says which, such as Missing required fields: name, style, abv, ibu, srm, breweryName or externalId must be at most 255 characters. |
| 400 INVALID_VOLUME | A pour's volume is missing or not above 0. |
| 400 NO_ACTIVE_SESSION | A pour was sent to a tap with no beer on it. |
| 400 (no code) | Untapping a tap that's already empty: Tap does not have an active session. |
| 402 TAP_LIMIT_EXCEEDED | Creating a tap when the brewery already has as many as its plan allows. |
| 403 (no code) | Tapping another brewery's private beer: Beer does not belong to your brewery and is not public. |
| 404 TAP_NOT_FOUND | Recording a pour on a tap that isn't in your brewery. |
| 404 (no code) | A beer, tap, taplist or external ID that doesn't exist in your brewery, such as Beer not found or Tap not found. |
| 409 EXTERNAL_ID_CONFLICT | Recording a pour with an externalId that's already used. |
| 409 (no code) | Tapping a tap that already has a beer; reusing a beer's or tap's externalId; deleting a tap that isn't empty or isn't the last tap; deleting a beer that's on tap; changing or deleting a public beer another brewery is using. |
Still stuck?
- Check the endpoint and its fields in the API reference.
- Check the key's Scopes and Last Used on the API Keys page. See Manage API keys.
- Email support@raspberrypints.com with the endpoint, the status, the
codeand the time of the request. Never send us the key itself.
Was this article helpful?
