---
title: "Tenant Create V1"
method: POST
path: "/1/tenants"
tags: ["Tenant"]
---

# Tenant Create V1

`POST /1/tenants`

## Request

- Base URL: `http://localhost:3000/api`
- URL: `http://localhost:3000/api/1/tenants`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/ironcorelabs/apis/vendor-api-bridge/docs/1/tenants/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new tenant with the provided ID and name.  
If `tenantAdminEmail` is provided, an invite email will be sent to the tenant to claim their account.
The Tenant ID will be needed for all subsequent tenant calls.
The tenant will be created with the default tag of the vendor organization.
The Tenant Create V2 endpoint can be used to set tags explicitly.

## Headers

- `icl-requestor-id` string, required

## Request body

- object
  - `id` string, required: Tenant ID
  - `name` string, required: Name for new tenant
  - `tenantAdminEmail` string: Optional email addresss to send tenant invite to

## Response `200`

Result of creating a tenant

- object
  - `id` string, required: Tenant ID
  - `name` string, required: Tenant name
  - `tenantCreatedConfigs` boolean, required: Has the tenant created their own KMS configurations?
  - `emailSent` boolean, required: Whether an invitation was sent to the tenant email (if provided)
  - `keyLeasingRequired` boolean, required: Whether key leasing must be enabled for all KMS configurations assigned to this tenant.
  - `archived` boolean, required: Is the tenant archived?
  - `tags` Tag[], required
    - `id` integer, required: Tag ID
    - `tagText` string, required: Human-readable text associated with tag
    - `default` boolean, required: Whether this is the default tag for tenants/service accounts
    - `created` string, required: RFC3339 timestamp
  - `createdBy` CreatedBy, required: Metadata about creating user/service
    - `id` string, required: Creator ID
    - `name` string, required: Creator name
    - `type` 'Tsp' | 'Admin' | 'Va', required: Creator type
  - `created` string, required: RFC3339 timestamp
  - `updated` string, required: RFC3339 timestamp

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/ironcorelabs/apis/vendor-api-bridge.md) - [All operations](https://skmtc.dev/ironcorelabs/apis/vendor-api-bridge/llms.txt) - [OpenAPI document](https://skmtc.dev/ironcorelabs/apis/vendor-api-bridge/revisions/5c0e553ffa21?raw)
