---
title: "Create a tenant"
method: POST
path: "/tenants"
tags: ["Tenants"]
---

# Create a tenant

`POST /tenants`

Create a new tenant.

Returns the created tenant with a unique `id`. Store this ID in your database
to reference this tenant later.

## Request body

- object
  - `name` string, required — Display name for the tenant (e.g., your customer's company name)
  - `metadata` TenantMetadata, nullable — Custom key-value pairs. Useful for storing references to your internal systems. **Limits:** - Max 50 keys - Key names max 40 characters - String values max 500 characters - Total size max 8KB

## Response `201`

Tenant created

- TenantResponse
  - `success` true, required
  - `data` Tenant, required
    - `id` string, required — Unique identifier for the tenant
    - `name` string, required — Display name for the tenant
    - `metadata` object, required — Custom key-value pairs for storing additional data
    - `status` 'active' | 'suspended' | 'archived', required — Current status of the tenant: - `active` - Normal operation - `suspended` - Temporarily disabled - `archived` - Soft-deleted
    - `createdAt` string, date-time, required — When the tenant was created
    - `updatedAt` string, date-time, required — When the tenant was last updated
  - `meta` ApiMeta, required
    - `requestId` string, required — Unique request identifier for debugging and support

## Other responses

- `400` — Invalid request parameters
- `401` — Invalid or missing API key
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/arkhq-io/apis/ark-email-api.md) · [All operations](https://skmtc.net/arkhq-io/apis/ark-email-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/arkhq-io/ark-email-api/revisions/98a90852ffca/schema)
