POST
/
tenants
Add Tenant
curl --request POST \
  --url https://apimgmt.cometchat.io/tenants \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Example User",
  "email": "my-email@example.com",
  "password": "somePassword#!",
  "contactNumber": "1234567890",
  "role": "engineer",
  "appName": "Create App",
  "appRegion": "us"
}'
{
  "data": {
    "name": "Sachin Bahukhandi",
    "email": "sachin.bahukhandi+113@cometchat.com",
    "createdAt": 1715947984,
    "contactNumber": "8936985734",
    "app": {
      "name": "Create APP",
      "appId": "2531446b588709f6",
      "region": "us",
      "authKey": "05753974edb58b7ce7c1ab10eb3eb3033e3dd1e9",
      "apiKey": "5db447476272190a2cda793e10e59f58bcc17317",
      "createdAt": 1715947984,
      "plan": "Build"
    }
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Response

200 - application/json

Map Settings

The response is of type object.