Skip to main content
POST
/
v1
/
tenants
Create a tenant
curl --request POST \
  --url https://tally-platform-api-xwka6vu2kq-ue.a.run.app/v1/tenants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tenant_id": "acme-corp",
  "display_name": "Acme Corporation"
}
'
{
  "tenant": {
    "tenant_id": "<string>",
    "display_name": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Firebase Auth JWT issued by Google Identity Platform. Obtain a token by signing in at your app domain and calling firebase.auth().currentUser.getIdToken().

Body

application/json
tenant_id
string
required

Desired tenant ID. Must be unique across the platform.

Example:

"acme-corp"

display_name
string
Example:

"Acme Corporation"

Response

Tenant created.

tenant
object