WaMCP
Api referenceTenants

Provision Tenant

Called once after a tenant's first login. Returns the plaintext API key exactly once — never stored.

POST
/api/tenants/provision

Called once after a tenant's first login. Returns the plaintext API key exactly once — never stored.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name*Name

Response Body

application/json

application/json

curl -X POST "https://example.com/api/tenants/provision" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}