Retrieve tenants
Retrieves a list of all available tenants. If you haven't created any tenants, the response will include an empty array.
Analytic events
- TENANT_RETRIEVE_LIST_START
- TENANT_RETRIEVE_LIST_SUCCESS
- TENANT_RETRIEVE_LIST_FAIL
A list of tenants
Bad Request. The request was malformed or missing required parameters.
Unauthorized. The client is not authorized to access this resource.
Forbidden. The authorization server refuses to grant the client access to the resource.
Internal Server Error. An unexpected error occurred.
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 400
{- "data": [
- {
- "id": "86cb97a9-5e80-4ed7-af13-a170752bb1ea",
- "name": "My Tenant",
- "subdomain": "my-tenant.vii.mattr.global",
- "environment": {
- "id": "fa605282-0223-4ae0-831d-af368bc39a55",
- "name": "MATTR Public Sydney, Australia",
- "domain": ".mattr.global",
- "authorizationServerDomain": "manage.auth.auth0.com",
- "deploymentModel": "public",
- "region": {
- "id": "70bb433a-f0ec-4297-ad76-3b09c71311f3",
- "name": "AU01",
- "displayName": "Sydney, Australia"
}
}
}
], - "nextCursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1hNjZmZmVhNS04NDhlLTQzOWQtODBhNC1kZGE1NWY1M2UzNmM"
}
Create tenant
Creates a new tenant in the requested environment.
Analytic events
- TENANT_CREATE_START
- TENANT_CREATE_SUCCESS
- TENANT_CREATE_FAIL
Request Body schema: application/jsonrequired
name | string Friendly and/or meaningful name for your new tenant. |
subdomain required | string Subdomain for your tenant within requested environment. Only lower case alphanumeric characters (a-z, 0-9) and hyphens are allowed. |
environmentId required | string Unique identifier of the environment where you want to create your tenant. This can be obtained by retrieving environments. |
Tenant created
Bad Request
Unauthorized. The client is not authorized to access this resource.
Forbidden. The authorization server refuses to grant the client access to the resource.
Internal Server Error. An unexpected error occurred.
Service Unavailable. The server is temporarily unavailable to handle requests.
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "name": "My Tenant",
- "subdomain": "my-tenant",
- "environmentId": "84ca6f53-5405-4413-a6ad-848b781807e7"
}
- 201
- 400
{- "id": "86cb97a9-5e80-4ed7-af13-a170752bb1ea",
- "name": "My Tenant",
- "subdomain": "my-tenant.vii.mattr.global",
- "environment": {
- "id": "fa605282-0223-4ae0-831d-af368bc39a55",
- "name": "MATTR Public Sydney, Australia",
- "domain": ".mattr.global",
- "authorizationServerDomain": "manage.auth.auth0.com",
- "deploymentModel": "public",
- "region": {
- "id": "70bb433a-f0ec-4297-ad76-3b09c71311f3",
- "name": "AU01",
- "displayName": "Sydney, Australia"
}
}, - "client": {
- "clientId": "suC7IhmDIawnlqBlEOuIqBWoqppcdI5",
- "clientSecret": "QmtShBH3mkO05ra91dNO-YyPwPbfs1iokh57IgqhzVWTAZlolCdeAGYOG2kz1"
}
}
Retrieve tenant
Retrieves a tenant by its ID.
Analytic events
- TENANT_RETRIEVE_START
- TENANT_RETRIEVE_SUCCESS
- TENANT_RETRIEVE_FAIL
Tenant retrieved
Bad Request. The request was malformed or missing required parameters.
Unauthorized. The client is not authorized to access this resource.
Forbidden. The authorization server refuses to grant the client access to the resource.
Not Found. The specified resource was not found.
Internal Server Error. An unexpected error occurred.
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 400
{- "id": "86cb97a9-5e80-4ed7-af13-a170752bb1ea",
- "name": "My Tenant",
- "subdomain": "my-tenant.vii.mattr.global",
- "environment": {
- "id": "fa605282-0223-4ae0-831d-af368bc39a55",
- "name": "MATTR Public Sydney, Australia",
- "domain": ".mattr.global",
- "authorizationServerDomain": "manage.auth.auth0.com",
- "deploymentModel": "public",
- "region": {
- "id": "70bb433a-f0ec-4297-ad76-3b09c71311f3",
- "name": "AU01",
- "displayName": "Sydney, Australia"
}
}
}
Delete tenant
Deletes a tenant by its ID.
Analytic events
- TENANT_DELETE_START
- TENANT_DELETE_SUCCESS
- TENANT_DELETE_FAIL
Tenant deleted
Bad Request. The request was malformed or missing required parameters.
Unauthorized. The client is not authorized to access this resource.
Forbidden. The authorization server refuses to grant the client access to the resource.
Not Found. The specified resource was not found.
Internal Server Error. An unexpected error occurred.
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 400
{- "code": "string",
- "message": "string",
- "details": [
- {
- "value": "string",
- "msg": "Invalid value",
- "param": "id",
- "location": "body"
}
]
}
Retrieve clients
Retrieves a list of clients authorised to interact with the requested tenant.
Analytic events
- TENANT_CLIENT_RETRIEVE_LIST_START
- TENANT_CLIENT_RETRIEVE_LIST_SUCCESS
- TENANT_CLIENT_RETRIEVE_LIST_FAIL
Clients retrieved
Bad Request. The request was malformed or missing required parameters.
Unauthorized. The client is not authorized to access this resource.
Forbidden. The authorization server refuses to grant the client access to the resource.
Not Found. The specified resource was not found.
Internal Server Error. An unexpected error occurred.
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
- 400
{- "data": [
- {
- "clientId": "suC7IhmDIawnlqBlEOuIqBWoqppcdI5"
}
], - "nextCursor": "Y3JlYXRlZEF0PTIwMjAtMDgtMjVUMDY6NDY6MDkuNTEwWiZpZD1hNjZmZmVhNS04NDhlLTQzOWQtODBhNC1kZGE1NWY1M2UzNmM"
}