Skip to main content
POST
/
v2
/
TenantCreate
Create a new tenant
curl --request POST \
  --url http://localhost:3000/v2/TenantCreate \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "tenantname": "<string>",
  "tenantorg": "<string>",
  "email": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok",
  "tenantid": 123,
  "xtoken": "<string>"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
tenantname
string
required

Name of the tenant

tenantorg
string
required

Organization name

email
string

Email address for tenant contact

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Tenant created successfully

status
string
Example:

"ok"

tenantid
integer

ID of the created tenant

xtoken
string

Access token for the tenant