401
Unauthorized
https://api.quotastack.io/errors/unauthorized
QuotaStack did not accept your API key, so it did not run the call.
Why it happened
- The
Authorizationheader was missing. - The key was revoked, or it was typed wrong.
- You sent a dashboard session where the call wants an API key.
How to fix it
- Send
Authorization: Bearer <your key>. - Check the key is still live in the dashboard.
- Remember that a sandbox key and a live key are two different keys.
Example response 401
{
"type": "https://api.quotastack.io/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Missing or invalid API key."
} Which calls return this
GET /v1/customersPOST /v1/customersGET /v1/customers/{id}PATCH /v1/customers/{id}DELETE /v1/customers/{id}GET /v1/customer-by-external-id/{external_id}PATCH /v1/customer-by-external-id/{external_id}DELETE /v1/customer-by-external-id/{external_id}GET /v1/customers/{customer_id}/creditsPOST /v1/customers/{customer_id}/credits/grantPOST /v1/customers/{customer_id}/credits/adjustGET /v1/customers/{customer_id}/credits/historyGET /v1/customers/{customer_id}/overageGET /v1/customer-by-external-id/{external_id}/creditsPOST /v1/customer-by-external-id/{external_id}/credits/grantPOST /v1/customer-by-external-id/{external_id}/credits/adjustGET /v1/customer-by-external-id/{external_id}/credits/historyGET /v1/customer-by-external-id/{external_id}/overageGET /v1/entitlements/checkGET /v1/customers/{id}/entitlements/{metric}GET /v1/customers/{id}/entitlementsGET /v1/customer-by-external-id/{external_id}/entitlements/{metric}GET /v1/customer-by-external-id/{external_id}/entitlementsPOST /v1/customers/{id}/entitlements/{billable_metric_key}/incrementPOST /v1/customers/{id}/entitlements/{billable_metric_key}/decrementPOST /v1/entitlements/consumePOST /v1/customer-by-external-id/{external_id}/entitlements/{billable_metric_key}/incrementPOST /v1/customer-by-external-id/{external_id}/entitlements/{billable_metric_key}/decrementPOST /v1/usagePOST /v1/usage/batchPOST /v1/imports/customersPOST /v1/subscriptionsGET /v1/subscriptions/{id}/overridesPOST /v1/subscriptions/{id}/overridesPATCH /v1/subscriptions/{id}/overrides/{billable_metric_key}DELETE /v1/subscriptions/{id}/overrides/{billable_metric_key}GET /v1/audit-logGET /v1/admin/api-keysGET /v1/admin/tenants/{tenant_id}/configPATCH /v1/admin/tenants/{tenant_id}/configPOST /v1/admin/tenants/{tenant_id}/webhook-secret/rotate
See also
● raw markdown · unauthorized.md ↗ — this is exactly what an agent fetches
Loading…