---
title: "Create tenant (account)"
method: POST
path: "/resources/tenants/v1"
tags: ["Tenants (Accounts)"]
---

# Create tenant (account)

`POST /resources/tenants/v1`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/tenants/v1`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/tenants/v1/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new tenant. If tenant with given ID had existed before and was removed, then this action will reactivate that tenant. A vendor token is required for this route, it can be obtained from the vendor authentication route.

## Request body

- CreateTenantRequest
  - `tenantId` string: Send your own unique tenantId or Frontegg will auto-generate a UUID
  - `name` string
  - `status` string: This field can be used for custom logic, it is not enforced in Frontegg flows
  - `website` string
  - `applicationUrl` string
  - `logo` string: Base64-encoded image to use as logo.
  - `logoUrl` string
  - `address` string
  - `timezone` string
  - `currency` string
  - `creatorName` string
  - `creatorEmail` string
  - `isReseller` boolean
  - `parentTenantId` string

## Other responses

- `400`: When the tenant ID does not pass the validation.

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
