Create Tenant
Creates a new tenant in the Databunker Pro system.Request Body
| Field | Type | Description |
|---|---|---|
| name | string | The name of the tenant. Must match the format: [a-z0-9]+ |
| org | string | The organization slug associated with the tenant |
Response
| Field | Type | Description |
|---|---|---|
| status | string | Operation status (“ok” if successful) |
| xtoken | string | Tenant access token in UUID format |
Example Response
Notes
- The
TENANT-ACCESS-TOKENis a special token to authenticate all tenant related commands. For example create user records.
Create a Tenant User Account
You have two methods to specify the tenant name: you can either use theX-Bunker-Tenant HTTP header or include the tenant name in the hostname. If the X-Bunker-Tenant header is missing, Databunker Pro will attempt to retrieve the tenant name from the subdomain in the hostname. If neither option is available, a default tenant is used.
Example commands:
Notes
- Replace
TENANT-NAMEin the URL with the actual name of the tenant. - The request body and response format for this endpoint are not provided in the given information. Typically, they would include user details such as name, email, etc., and return a user ID or status.
Rename Tenant
Renames an existing tenant.Request Body
| Field | Type | Description |
|---|---|---|
| name | string | The new name for the tenant. Must match the format: [a-z0-9]+ |
Example Request
Response
| Field | Type | Description |
|---|---|---|
| status | string | Operation status (“ok” if successful) |
Example Response
Other commands:
For a full list of API requests, check out the API document.General Notes
-
Tenant Name Format: Tenant names must follow the format
[a-z0-9]+. This means they can only contain lowercase letters and numbers. -
Tenant-Specific URLs: After creating a tenant, you’ll interact with tenant-specific endpoints using URLs in the format
https://tenant-name.databunker-domain.com/.... -
Authentication: Most endpoints will require the
TENANT-ACCESS-TOKENfor authentication. Include this token in theX-Bunker-Tokenheader or as specified in the Databunker Pro documentation. - SSL/TLS: Always use HTTPS for secure communication with the API endpoints.
Cross-tenant System Operations
Databunker Pro provides a dedicated System Operations API for cross-tenant queries. These endpoints are used for compliance workflows that span the entire deployment — DSAR fulfillment, regulator queries, right-to-erasure, and forensic investigations — where the answer to “find every record about this person across all our tenants” must come from one call rather than N tenant-by-tenant queries.Access control
All System Operations endpoints are:- Restricted to the main tenant admin (
tenantID = 1) — the highest-privilege principal of the deployment. Tenant-level admins cannot invoke these endpoints. - Gated by a
bulkListUnlockUUID — short-lived, must be obtained via/v2/BulkListUnlockimmediately before the call. This is the same default-deny mechanism used for bulk operations: an admin token alone is not enough. - Audited on every call.
Endpoints
| Endpoint | Purpose |
|---|---|
POST /v2/SystemGetUserProfiles | Retrieve all profiles for a user (identified by email / phone / login / custom) across every tenant. |
POST /v2/SystemSearchUserProfiles | Fuzzy-search for user profiles across every tenant. Mode is auto-detected from the identity value. |
POST /v2/SystemDeleteUserProfiles | Delete all profiles for a user across every tenant — or restrict to a single tenant via tenantid / tenantname. |
POST /v2/SystemRestoreUserProfile | Restore a previously-deleted user profile for a specific tenant from version history. |
tenantid and tenantname for each profile, so the caller can see exactly which tenants the person appeared in.