err:unkey:data:key_auth_not_foundkeyspaceId 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
- Pass the keyspace ID of an API in the same workspace, or leave out
keyspaceId. - For new integrations, use
deployments.createDeploymentand set key auth withgateway.setPolicies. A missing keyspace there returnserr:unkey:data:key_space_not_found.
Related errors
err:unkey:data:key_space_not_found: the same problem on the gateway policy endpoints.err:unkey:data:api_not_found: the API doesn’t exist.err:unkey:data:project_not_found: the doesn’t exist.