---
title: "Add Tenant"
method: POST
path: "/v1/tenant"
tags: ["tenants"]
---

# Add Tenant

`POST /v1/tenant`

## Request

- Base URL: `https://api.shapemaker.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.shapemaker.io/v1/tenant`
- Auth: OAuth 2
  - Password
  - Token URL: `/v1/auth`

This endpoint creates new tenant and adds it to the tenant database.
The data for the new tenant should be provided in the request body.

## Request body

- TenantCreateInput
  - `name` string, required
  - `color` string, nullable

## Response `201`

Successful Response

- TenantView
  - `id` integer, required
  - `name` string, required
  - `color` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/shapemaker/apis/shapemaker-api.md) - [All operations](https://skmtc.dev/shapemaker/apis/shapemaker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shapemaker/apis/shapemaker-api/revisions/b8461cf1236c?raw)
