Access denied (403)

The credential is valid but can't perform this operation.

Status: 403 Forbidden · type: https://api.sparkle.ai/errors/forbidden

When it happens

  • None of the API key's scopes covers the resource and action, or the key's role doesn't allow the action.
  • The personal access token's user has no access to the organization (forbidden.organization_access).
  • The company is scheduled for deletion (forbidden.tenant_deleted).
  • Sparkle suspended the company (forbidden.tenant_suspended). Every API key and personal access token of the company gets it until the suspension is lifted; its live conversations take no turns and its webhooks send nothing meanwhile.
  • The company's plan doesn't allow it: a limit.* code, such as limit.minutes_exceeded, or plan.capability_required. See Plans & limits.

How to fix it

Retrying doesn't change the outcome. Read code for the reason, then adjust the key's scopes and role, use a credential that has access to the organization, restore the company from the dashboard, change the plan in Settings → Plan and billing, or, for a suspended company, write to support@sparkle.ai.

Example

{
  "type": "https://api.sparkle.ai/errors/forbidden",
  "title": "Access Denied",
  "status": 403,
  "detail": "insufficient permissions",
  "instance": "/public/v1/webhooks",
  "code": "forbidden.insufficient_permissions",
  "request_id": "req_abc123",
  "timestamp": "2026-02-15T12:00:00Z",
  "documentation_url": "https://docs.sparkle.ai/docs/api/errors/forbidden"
}

On this page