Skip to main content
POST
/
tenants
Create tenant
curl --request POST \
  --url https://api.tenants.resistant.ai/v0/tenants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "cells": [
    "eu-1"
  ]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "created": "<string>",
  "updated": "<string>",
  "cells": [
    "eu-1"
  ],
  "_links": {
    "documents-ui": [
      {
        "href": "name-org-name.documents.resistant.ai",
        "rel": "eu-1"
      },
      {
        "href": "name-org-name.us-1.documents.resistant.ai",
        "rel": "us-1"
      },
      {
        "href": "name-org-name.ap-2.documents.resistant.ai",
        "rel": "ap-2"
      },
      {
        "href": "name-org-name.ap-3.documents.resistant.ai",
        "rel": "ap-3"
      },
      {
        "href": "name-org-name.ca-1.documents.resistant.ai",
        "rel": "ca-1"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

JWT with private key. Java example Please note that Token URL is specific for a given environment. Correct URL is in the corresponding environment documentation.

Body

application/json
name
string
required

Desired name of the tenant. Must be unique within the organization and contain only lowercase letters (a-z) and digits (0-9).

Required string length: 1 - 61
cells
enum<string>[]

List of cells where the UI should be accessible

An enumeration.

Available options:
eu-1,
us-1,
ap-2,
ap-3,
ca-1

Response

Tenant created successfully.

id
string
required
name
string
required
created
string
required
updated
string
required
cells
enum<string>[]
required

An enumeration.

Available options:
eu-1,
us-1,
ap-2,
ap-3,
ca-1