Approval Not Found

approval-not-found · 404

The API found no approval by that id in the workspace the call ran in.

resourceId repeats the id the API looked up. An approval in another workspace answers this same 404.

Besides the members every error carries, this type adds resourceType and resourceId.

Common causes

  • The poll ran in another workspace than the held call: a call runs in the workspace its X-Ghaym-Workspace header names, or a stream's ?workspace=<id> when the header is absent.
  • The id has a typo in it.

How to fix the call

  • Read resourceId and compare it with the value you meant to send.
  • Take the id from the held call's approvalId or pollUrl, or list them with ghaym cloud approvals list.
  • Poll with the same X-Ghaym-Workspace header as the call that was held.
  • Don't retry unchanged: the same call answers the same 404 for as long as nothing changes.

Example response

json
{
  "type": "approval-not-found",
  "title": "Approval Not Found",
  "detail": "Approval with ID '0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401' was not found",
  "resourceType": "Approval",
  "resourceId": "0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
  "requestId": "req-1785231000000-4f7b2c9ae",
  "timestamp": "2026-07-28T09:30:00.000Z",
  "path": "/v1/approvals/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
  "method": "GET",
  "instance": "GET /v1/approvals/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
  "status": 404,
  "docs": "https://ghaym.me/docs/errors/approval-not-found"
}