> ## 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.

# portal_domain_limit_exceeded

> The workspace already has as many portal domains as it can hold.

> [!CAUTION]
>
> `err:unkey:limits:portal_domain_limit_exceeded`

Your workspace already has as many portal domains as it can hold, so `portal.createDomain` didn't add another one. You get HTTP 403. Waiting won't change it.

```json Example response theme={"system"}
{
  "meta": {
    "requestId": "req_2c9a0jf23l4k567"
  },
  "error": {
    "detail": "A workspace can hold at most 10 portal domains. Remove a domain you no longer need, then retry.",
    "status": 403,
    "title": "Forbidden",
    "type": "/errors/unkey/limits/portal_domain_limit_exceeded"
  }
}
```

## How to fix

1. Remove a portal domain you no longer use with `portal.deleteDomain`.
2. Create the domain again.

## Related errors

* [`err:unkey:limits:custom_domain_limit_exceeded`](https://www.unkey.com/docs/errors/unkey/limits/custom_domain_limit_exceeded): the same limit for custom domains on your apps, which your plan sets.
* [`err:unkey:data:domain_already_exists`](https://www.unkey.com/docs/errors/unkey/data/domain_already_exists): the domain is already attached to this workspace.


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