forbidden
This caller may not act on this resource. Often the API key is not tied to a member of the workspace.
What it means
This caller may not act on this resource. Often the API key is not tied to a member of the workspace.
How to fix it
Use an API key that belongs to a member of the workspace who may act on this resource.
Where it comes from
403 forbidden from 71 endpoints, such as:
access-requests.cancelagent-sandbox-auto-run-settings.update-workspaceagent-sandbox-runs.createagent-work.release-claimagent-work.submit-answersbooking-links.createbooking-links.listbooking-links.suggested-timesbooking-links.updatebookings.bulk-cancelbookings.bulk-reassignbookings.getbookings.listbookings.no-showcalling.calls-createcalling.calls-hangupcalling.calls-voicemail-dropcalling.tokens-createcalling.voicemails-createcalling.voicemails-delete- and 51 more
The error body carries this code in error.code. Branch on the code, not on message. See the errors guide.