Tenants API reference
Complete reference documentation for the Tenants resource.
Tenants
#A Tenant a grouping with configurable settings that can be applied to a workflow when it's triggered in order to override account-level settings such as branding. Use tenants when sending a notification to user(s) that you want to configure specific brand elements for, such as a separate organization logo.
Delete a tenant
#Delete a tenant and all associated data. This operation cannot be undone.
Endpoint
Path parameters
The unique identifier for the tenant.
Returns
Get a tenant
#Get a tenant by ID.
Endpoint
Path parameters
The unique identifier for the tenant.
Query parameters
When true, merges environment-level default preferences into the tenant's settings.preference_set field before returning the response. Defaults to false.
Returns
A tenant entity.
The typename of the schema.
The unique identifier for the tenant.
An optional name for the tenant.
The settings for the tenant. Includes branding and preference set.
The branding for the tenant.
The icon URL for the tenant. Must point to a valid image with an image MIME type.
The logo URL for the tenant. Must point to a valid image with an image MIME type.
The primary color for the tenant, provided as a hex value.
The primary color contrast for the tenant, provided as a hex value.
The preference set for the tenant. Used to override the default preference set.
Any additional custom properties.
Set a tenant
#Sets a tenant within an environment, performing an upsert operation. Any existing properties will be merged with the incoming properties.
Endpoint
Path parameters
The unique identifier for the tenant.
Query parameters
When true, merges environment-level default preferences into the tenant's settings.preference_set field before returning the response. Defaults to false.
Request body
An optional name for the tenant.
The settings for the tenant. Includes branding and preference set.
The branding for the tenant.
The icon URL for the tenant. Must point to a valid image with an image MIME type.
The logo URL for the tenant. Must point to a valid image with an image MIME type.
The primary color for the tenant, provided as a hex value.
The primary color contrast for the tenant, provided as a hex value.
The preference set for the tenant. Used to override the default preference set.
Any additional custom properties.
Returns
The response from setting a tenant.
List tenants
#List tenants for the current environment.
Endpoint
Query parameters
Filter tenants by ID.
Filter tenants by name.
The cursor to fetch entries after.
The cursor to fetch entries before.
The number of items per page (defaults to 50).
Returns
A response containing a list of tenants.
A list of tenants.
The typename of the schema.
The unique identifier for the tenant.
An optional name for the tenant.
The settings for the tenant. Includes branding and preference set.
The branding for the tenant.
The icon URL for the tenant. Must point to a valid image with an image MIME type.
The logo URL for the tenant. Must point to a valid image with an image MIME type.
The primary color for the tenant, provided as a hex value.
The primary color contrast for the tenant, provided as a hex value.
The preference set for the tenant. Used to override the default preference set.
Pagination information for a list of resources.
The typename of the schema.
The cursor to fetch entries after.
The cursor to fetch entries before.
The number of items per page (defaults to 50).
Bulk operations
#Bulk operations available for tenants. These endpoints return a BulkOperation that executes the job asynchronously. Progress can be tracked via the Bulk operations API.
Bulk delete tenants
#Delete up to 1,000 tenants at a time in a single operation. This operation cannot be undone.
Endpoint
Query parameters
The IDs of the tenants to delete.
Returns
A bulk operation entity.
The typename of the schema.
Timestamp when the bulk operation was completed.
The number of failed operations.
A list of items that failed to be processed.
The collection this object belongs to.
Unique identifier for the object.
The estimated total number of rows to process.
Timestamp when the bulk operation failed.
Unique identifier for the bulk operation.
Timestamp when the resource was created.
The name of the bulk operation.
The number of rows processed so far.
The URI to the bulk operation's progress.
Timestamp when the bulk operation was started.
The status of the bulk operation.
The number of successful operations.
The timestamp when the resource was last updated.
Bulk set tenants
#Set or update up to 1,000 tenants in a single operation.
Endpoint
Request body
Returns
A bulk operation entity.
The typename of the schema.
Timestamp when the bulk operation was completed.
The number of failed operations.
A list of items that failed to be processed.
The collection this object belongs to.
Unique identifier for the object.
The estimated total number of rows to process.
Timestamp when the bulk operation failed.
Unique identifier for the bulk operation.
Timestamp when the resource was created.
The name of the bulk operation.
The number of rows processed so far.
The URI to the bulk operation's progress.
Timestamp when the bulk operation was started.
The status of the bulk operation.
The number of successful operations.
The timestamp when the resource was last updated.
Tenant
#A tenant entity.
Attributes
The typename of the schema.
The unique identifier for the tenant.
An optional name for the tenant.
The settings for the tenant. Includes branding and preference set.
The branding for the tenant.
The icon URL for the tenant. Must point to a valid image with an image MIME type.
The logo URL for the tenant. Must point to a valid image with an image MIME type.
The primary color for the tenant, provided as a hex value.
The primary color contrast for the tenant, provided as a hex value.
The preference set for the tenant. Used to override the default preference set.
Any additional custom properties.
TenantRequest
#A tenant to be set in the system. You can supply any additional properties on the tenant object.
Attributes
The unique identifier for the tenant.
An optional name for the tenant.
The settings for the tenant. Includes branding and preference set.
The branding for the tenant.
The icon URL for the tenant. Must point to a valid image with an image MIME type.
The logo URL for the tenant. Must point to a valid image with an image MIME type.
The primary color for the tenant, provided as a hex value.
The primary color contrast for the tenant, provided as a hex value.
The preference set for the tenant. Used to override the default preference set.
Any additional custom properties.
InlineTenantRequest
#An request to set a tenant inline.
Attributes
An request to set a tenant inline.