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

# Provisions (or updates) a tenant. Used by the dashboard gateway to create a…

> The provisioned tenant

### Request body

`Tenant`

**created\_at** `string,null (date-time)`

**display\_name** `string` *required*

**enabled** `boolean`

**id** `string` *required*

Stable tenant identifier (slug), e.g. `acme-com`.

### Response

`Tenant`

**created\_at** `string,null (date-time)`

**display\_name** `string` *required*

**enabled** `boolean`

**id** `string` *required*

Stable tenant identifier (slug), e.g. `acme-com`.

### Status codes

| Code | Meaning |
| - | - |
| `200` | The provisioned tenant |
| `403` | Admin credential required |
| `422` | Single-tenant deployment (no DATABASE\_URL) |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request POST \
  --url 'https://api.edi.stateset.com/v1/tenants' \
  --header "Authorization: Bearer $EDI_API_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "created_at": "2026-08-31T14:22:05Z",
  "display_name": "Ada Lovelace",
  "enabled": true,
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
```

```json 200 theme={null}
{
  "created_at": "2026-08-31T14:22:05Z",
  "display_name": "Ada Lovelace",
  "enabled": true,
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
```


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