Tenants
This section provides an overview of your tenants. It shows the number of Monthly Active Accounts (MAA) per tenant, the tenant expiration, status, as well as a link to jump into the Tenant Administration UI for each tenant.
You can create new tenants from here. You can create up to 3 tenants, the free contingent in any subscription plan, until you are required to provide billing information.

Tenant Creation via Management API
You can also create tenants through the Management API.
The example call below with the following input variables:
{
"input": {
"label": "Demo Tenant",
"subscription": "sub_1Klq....", // a valid current subscription
"status": "ENABLED",
"config": {
"color": "#660000"
}
}
}
creates a tenant with label Demo Tenant
under your chosen subscription, status set to ENABLED
, and a color code of #660000
.
You find your subscription number under the Account Administration UI > Account & Billing > Subscriptions ("Subscription Number").
GraphQL Example
// GraphQL Query (Sample)
mutation createTenant ($input: CreateTenantInput!) {
createTenant (input: $input) {
id
}
}
// GraphQL Variables (Sample)
{
"input": {
"label": "Demo Tenant",
"subscription": "sub_1KlqjQL3CzwCmC47Gn4xxxxx",
"status": "ENABLED",
"config": {
"color": "#660000"
}
}
}
// Response (Sample)
{
"data": {
"createTenant": {
"id": "ace6eb2f-2fc8-4870-9d48-f897ed1f81cb"
}
}
}
Node.js Example
var axios = require('axios');
var data = JSON.stringify({
query: `mutation createTenant ($input: CreateTenantInput!) {
createTenant (input: $input) {
id
}
}`,
variables: {"input":{"label":"Demo Tenant","subscription":"sub_1KlqjQL3CzwCmC47Gn4xxxxx","status":"ENABLED","config":{"color":"#660000"}}}
});
var config = {
method: 'post',
url: 'https://{tenant_id}.api.quasr.io/graphql',
headers: {
'Authorization': 'Bearer {access_token}',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Last updated