Skip to main content
err:unkey:data:connection_not_found
The workspace has no connection with this id. You get HTTP 404.
Example response

Likely causes

  • The id has a typo, or it is the id of an environment or a resource instead of a connection.
  • Someone already deleted the connection.
  • Your root key can’t read the connection. You get this 404 instead of a 403, so the response doesn’t tell whether the connection exists. A key that can read it but can’t change or delete it gets a 403 err:unkey:authorization:insufficient_permissions that names the missing permission.

How to fix

  1. List the connections of the resource with connections.listConnections to get the id.
  2. Give the root key the permission for the action on projects/{project_id}/apps/{app_id}/environments/{environment_id}/connections/{connection_id}:
    • To update the connection, give write.
    • To delete the connection, give delete.
Last modified on November 30, 2026