useGrant
Tenants

Create tenant

Create a new tenant.

POST
/v1/tenants

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
nameRequiredstring

Name of the tenant.

descriptionRequiredstring

Description of the tenant.

curl -X POST "https://sdk.usegrant.dev/v1/tenants" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Auth Tenant",
    "description": "Tenant for Acme Auth App"
  }'

Tenant created successfully.

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "Acme Auth Tenant",
  "description": "Tenant for Acme Auth App"
}