Skip to content

Error Codes

All API errors return a JSON body with an error key.

{
"error": "Human-readable error message"
}

For plan limit errors, an upgrade_url is also included:

{
"error": "Free plan limit reached (50 wins). Upgrade to Pro for unlimited wins.",
"upgrade_url": "https://app.myhypedoc.com/settings"
}
StatusMeaningWhen
400Bad RequestMissing required parameter
401UnauthorizedMissing or invalid authentication token
402Payment RequiredFree plan limit reached
404Not FoundResource doesn’t exist or belongs to another user
422Unprocessable EntityValidation error (e.g. invalid data)
429Too Many RequestsRate limit exceeded
{
"error": "Authentication required"
}

Your token is missing, invalid, or expired. Generate a new token in Settings → API Tokens.

{
"error": "Free plan limit reached (50 wins). Upgrade to Pro for unlimited wins.",
"upgrade_url": "https://app.myhypedoc.com/settings"
}

You’ve hit the free plan limit. Upgrade to Pro or delete existing resources.

{
"error": "Not found"
}

The resource doesn’t exist or belongs to another user. All resources are scoped to the authenticated user.

{
"error": "Body can't be blank"
}

The request data failed validation. The error message describes what went wrong.

{
"error": "Rate limit exceeded. Retry after 45 seconds."
}

You’ve exceeded the rate limit. Wait for the Retry-After duration before retrying. See Rate Limits.