Unidy Docs

Tenant configuration

Manage shared tenant settings, brands, roles, identity providers and integrations through REST API v2.

Every operation under /api/v2/tenant, including a read, requires API v2, the relevant permission, and a credential with no brand restriction. A brand-limited key can receive 403 even if it has a matching role. For an operation on one brand, check Brand configuration. To inspect the requirements for a tenant operation, use authenticated GET /api/docs/access. See Instance and principal discovery.

Read, validate and update settings

GET /api/v2/tenant/settings returns the settings you may read. GET /api/v2/tenant/settings/schema lists their allowed values and groups. These include account and email delivery settings, redirects and sessions, which services and custom attributes are shown, and link expiration and resend delays.

The request uses flat fields inside payload.data. For example, send the following body to POST /api/v2/tenant/settings/validate to preview a one-minute magic-link resend delay.

json
{
  "payload": {
    "data": {
      "magic_link_resend_delay": "PT1M"
    }
  }
}

Use the ISO 8601 duration values listed in the schema. Each submitted field requires write permission for its settings page, including for validation. When ready, send the same body to PATCH /api/v2/tenant/settings and read it back. A patch changes only the submitted settings.

Read flags with GET /api/v2/tenant/feature_flags, change individual values with PATCH, and inspect changes with GET /api/v2/tenant/feature_flags/history. With the required permission, customers can change the user-change flags for tickets, subscriptions and transactions, and the newsletter subscription Unidy ID flag. Core and internal flag changes require Unidy staff. Switch off a parent feature and its dependent user-change flag is also turned off.

Manage brands

Read brands from GET /api/v2/brands. For changes, use the tenant operations below with tenant-wide brand management permissions.

OperationEffect
POST /api/v2/tenant/brandsCreate a brand with a unique alphanumeric slug and unique host. You may provide a display_name. The names current and default are reserved, regardless of capitalization. The new brand receives its predefined roles.
PATCH /api/v2/tenant/brands/{brand_slug}Update its host or display name. The slug is fixed at creation. A null display name falls back to the slug on customer-facing surfaces.
POST /api/v2/tenant/brands/{brand_slug}/recreate_predefined_rolesCreate missing predefined brand roles and retain existing roles.
DELETE /api/v2/tenant/brands/{brand_slug}Delete the brand and the records it owns. The API refuses deletion if this is the default brand, it has loyalty programs, or a key, user or OAuth application is limited to this brand alone. If a product belongs only to this brand, link the product to another brand before retrying.

Configure shared resources

These paths are relative to /api/v2/tenant.

ResourceSupported workflow
/login_providers, /oauth_applicationsList, read or update existing records. A login provider's editable fields include name, enabled state and position. Address an OAuth application by its public UUID to update its name or description. Existing SDK jump-to and hosted profile application links can still carry the older numeric application ID. The OAuth client ID remains the identifier for the authorization flow. Offer an existing shared resource on a brand through its brand links.
/oauth_claims, /saml_configsCreate and manage custom OpenID Connect claims and SAML service provider configurations. A SAML configuration identifies its issuer and uses either a metadata URL and fingerprint or an ACS URL and certificate.
/sdk_clientsManage client records, allowed hosts, mobile application identifiers, brand slugs and the client's nested captcha_config. The rotate_secret action replaces the SDK key. Update applications that use the key.
/webhook_registrationsManage registrations and each registration's nested webhook_subscriptions. Creation requires an unrestricted API key able to grant the webhook receiver role. Creation and rotate_secret return the signing secret. Store it when returned.
/attributes, /attribute_validation_rules, /custom_attribute_definitionsSet field access policies and manage custom definitions, select values and validation rules. New custom attributes start hidden. Set the intended access on their policies. New rules start inactive and activation takes place in the dashboard.
/locale_translationsCreate, read, edit and delete tenant translation overrides. The key and language are fixed on creation. A brand override for the same key and language takes precedence.
/rolesCreate and manage tenant roles. Brand-owned roles have their own /api/v2/brands/{brand_slug}/roles collection. A submitted permissions array replaces the role's grants. Omit it when changing only the name. You may grant only permissions you hold. Predefined roles are read-only. Remove assignments before deleting a custom role.

See SDK credentials, Webhook configuration, Roles and account security and Change history for the corresponding operating procedures.

Was this page helpful?