Skip to main content
err:unkey:data:database_not_found
The project has no database with this id or name. You get HTTP 404.
Example response

Likely causes

  • The database id or name has a typo. The name is the name of the database in PlanetScale.
  • The database is connected to another project of the workspace.
  • Your root key can’t read the database. You get this 404 instead of a 403, so the response doesn’t tell whether the database exists.

How to fix

  1. Check the project and the database in the request. The database is its Unkey id, or its name in PlanetScale.
  2. Give the root key read on projects/{project_id}/databases/{database_id}.
Last modified on November 27, 2026