Skip to main content
POST
/
v1
/
tenants
/
register
Register a new tenant and obtain credentials
curl --request POST \
  --url https://cds.marmar.life/v1/tenants/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "code": "<string>"
}
'
{
  "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tenantCode": "<string>",
  "apiKey": "<string>"
}

Body

application/json
name
string
required
Minimum string length: 3
code
string
Required string length: 3 - 32

Response

Tenant registered successfully

tenantId
string<uuid>
required
tenantCode
string
required
apiKey
string
required