Skip to content
RelationsAI
Error codes

insufficient_permissions

HTTP status
403
Retry
No
Execution
Nothing was done
Admin needed
Yes

Key creator lacks permission. A key can never do more than the member who created it is currently allowed to do. If that member was removed from the workspace or moved to a role without this permission, the key loses it too, even though the scope is still listed on the key.

What it means

The API returns HTTP 403 with error.code set to insufficient_permissions. The default message is: "The member who created this API key no longer has permission for this operation."

Common causes

  • The key's creator was moved to a role without this permission.
  • The key's creator left the workspace.

How to identify it

Check the response status (403) and error.code (insufficient_permissions). Branch on error.code, not on the message text: messages can be reworded, codes do not change within v1. Log error.request_id (also sent as the X-Request-Id header) so support can find the request.

How to fix it

  • Ask a workspace admin to create a new key from an account that holds the permission.

Retry guidance

Sending the request unchanged fails the same way. Fix the cause first (see How to fix it), then send it again.

Did anything happen?

This request was refused before any call was placed and before anything was charged.

Idempotency

Nothing was done and nothing was stored (under an Idempotency-Key, if you sent one), so the request can be sent again, with the same key if you used one, once the cause is fixed.

Who can fix it

A workspace administrator usually has to act, in the RelationsAI console.

When to contact support

If the error persists after the steps above, contact support@relationsai.com. See Support for what to include (the request_id, the time in UTC, the operation, and whether you used a test or live key) and what never to send (API keys, Authorization headers, webhook signing secrets, recording links, transcripts or customer data).

Example error response

JSONJSON
{ "error": { "code": "insufficient_permissions", "message": "The member who created this API key no longer has permission for this operation.", "details": { "required_scopes": [ "campaigns:write" ] }, "request_id": "req_7sky3cy2br4bx34yd4bn5ezq", "retry": "no", "doc_url": "https://docs.relationsai.com/errors/insufficient_permissions" } }

See all codes in the error-code reference.