Skip to main content
err:unkey:data:key_auth_not_found
The keyspaceId you sent doesn’t match a keyspace in your workspace. You get HTTP 404. Only the deprecated deploy.createDeployment endpoint returns this, and the unkey deploy CLI command still calls it.
Example response

Likely causes

  • The keyspace ID has a typo, or isn’t a keyspace ID. Keyspace IDs start with ks_.
  • The keyspace is in another workspace.

How to fix

  1. Pass the keyspace ID of an API in the same workspace, or leave out keyspaceId.
  2. For new integrations, use deployments.createDeployment and set key auth with gateway.setPolicies. A missing keyspace there returns err:unkey:data:key_space_not_found.
Last modified on October 22, 2026