The Management API offers a set of actions beyond the scope of a single tenant or environment. An environment is a higher-order structure where MATTR VII tenants are hosted in a specific MATTR VII cloud deployment. One tenant must always be a part of exactly one environment. Each environment may include multiple tenants that share hardware resources and environment settings while maintaining authorization and data isolation.
You can currently use the Management API to create, delete and list tenants, and also to list your environments.
Most list operations in the API use pagination that can be controlled by a cursor method using the cursor
and limit
query parameters.
Example on Retrieve List of Credentials
GET https://manage.mattr.global/v1/tenants
?limit=100
&cursor=Y3JlYXRlZEF0PTIwMjAtMTAtMDhUMjMlM0ExMyUzQTE3Ljg5NtZGUxZWEyNzQ4MWI4
- The
nextCursor
is found at the start of each returned range of credential entries and identifies the last object in the list. - The
limit
determines how many entries are returned in that request, with a maximum value of 1000.
Requesting a page after the last value in the list will return an empty data
object.
{
"data": []
}
Not using a query parameter defaults the response to return the first range of credential entries with a limit of 100.
The Management API is a separate set of APIs to MATTR VII. It uses machine-to-machine authentication through its own credentials, which are different from your MATTR VII client credentials.
As part of onboarding you will be provided with the required details to make a call to a dedicated management API authorization provider and receive a bearer token.
This token is then used in an authorization
header on all calls identified as requiring bearerAuth
(this is required for the majority of management operations).
Retrieve environments
Retrieves a list of all available environments.
Analytic events
- ENVIRONMENT_RETRIEVE_LIST_START
- ENVIRONMENT_RETRIEVE_LIST_SUCCESS
- ENVIRONMENT_RETRIEVE_LIST_FAIL
A list of environments
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": "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"
}
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",
- "type": "string",
- "message": "string",
- "details": [
- {
- "value": "string",
- "msg": "Invalid value",
- "param": "id",
- "location": "body"
}
]
}
Retrieve clients
Retrieves a list of clients authorized 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"
}
Create API Auth Token
Returns an API access token specific to the Management API. This token must then be used as an authorization header for all requests to protected endpoints (this is required for the majority of operations).
Request Body schema: application/json
Successful response
Unauthorized
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "client_id": "htf792W4p4MedZbnoWAs51EfqUt4d2",
- "client_secret": "d3fYDX7FjPg1D1h2viARXsolPByQ9vMfg8LHylBy8F4s5KJLB4HhHGOxxqJnSj3G",
- "grant_type": "client_credentials"
}
- 200
- 401
{- "access_token": "s2dgbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6s2dcaEROemRDf5gbRVEwTTVSVFE0TmtZME9UZzVNVEpDTlVJNFJqRTBPREExTmpZMk1qazFPQSJ9",
- "expires_in": 86400,
- "token_type": "Bearer"
}