> ## Documentation Index
> Fetch the complete documentation index at: https://www.unkey.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Unkey is two separate products. Compute builds, deploys, and runs apps behind a gateway. API Management issues API keys, enforces rate limits, manages identities and permissions, and reports usage. Say which product a page belongs to; a reader can use either without the other.
> Every Unkey API endpoint is an HTTP POST to https://api.unkey.com/v2/{service}.{procedure} with a root key in the Authorization: Bearer header. Root keys are workspace scoped.
> Error codes have the form err:{system}:{category}:{specific} and each has a page at /errors/{system}/{category}/{specific}.
> The word environment means production or preview in Compute. Rate limiting has four meanings on this site; the glossary lists them.

# client_error

> PlanetScale refused the request.

> [!CAUTION]
>
> `err:planetscale:upstream:client_error`

PlanetScale refused the request with a status that has no error code of its own, such as a 422. You get HTTP 500, unless the endpoint's reference lists another status for this case.

## Likely causes

* A value in your request is one PlanetScale does not accept, such as a name that is already used.

## How to fix

1. Check the values of your request against the endpoint's reference.
2. If they are valid, send the request ID to support.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.