Skip to main content
POST
/
tenants
Criar tenant (admin)
curl --request POST \
  --url http://localhost:3000/tenants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Empresa XYZ",
  "slug": "empresa-xyz",
  "whatsappRateLimit": {
    "max": 100,
    "durationMs": 60000
  }
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"Empresa XYZ"

slug
string
required
Example:

"empresa-xyz"

whatsappRateLimit
object

Response

Tenant criado com apiKey gerada