Download OpenAPI specification:Download
The API uses Bearer token security for its administrative endpoints which
is retrieved from a successful call to /accounts/auth endpoint. This token is a JWT token
and must be passed via the Authorization header.
If a trusted Service account is authenticated successfully, it will also receive the JWT secret in the response
| username required | string |
| password required | string |
{- "username": "string",
- "password": "string"
}{- "token": "string",
- "refresh_token": "string",
- "secret": "string",
- "access_to": {
- "org_id": "string",
- "unit_ids": [
- "string"
]
}, - "properties": {
- "property1": "string",
- "property2": "string"
}, - "services": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}{- "id": "string",
- "username": "string",
- "org_id": "string",
- "unit_id": "string",
- "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "pending_password_reset": true,
- "access_to": {
- "org_id": "string",
- "unit_ids": [
- "string"
]
}
}If the account exists, a one-time-password (OTP) will be generated for the reset password request and an event is sent via pub sub. It is expected that this event will be used by another service to send an email
| username required | string |
{- "username": "string"
}null| username required | string |
| otp required | string |
| password required | string |
{- "username": "string",
- "otp": "string",
- "password": "string"
}null| token required | string |
{- "token": "string"
}{- "token": "string",
- "refresh_token": "string",
- "secret": "string",
- "access_to": {
- "org_id": "string",
- "unit_ids": [
- "string"
]
}, - "properties": {
- "property1": "string",
- "property2": "string"
}, - "services": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}| sort_field required | string Field to sort on |
| sort_direction required | integer <int32> Direction to sort in (1 = ASC, -1 = DESC) |
| page required | integer <int32> Page to retrieve |
| limit required | integer <int32> Number of items to retrieve |
| account_type required | string Type of account to filter on ( |
| account_ids required | string Comma separated list of accounts id's to filter for |
| org_id required | string Organisation ID to filter by |
[- {
- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string"
}, - "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "reset_password_otp": {
- "otp": "string",
- "expires_at": 0
}
}
]| account_type required | string (AccountType) Enum: "User" "System" "Service" "Provider" |
| system_id | string or null |
| username required | string |
| password required | string |
required | object (OrganisationUnit) |
required | Array of objects (Permission) |
| trusted | boolean or null |
{- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string"
}, - "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "trusted": true
}{- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string"
}, - "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "reset_password_otp": {
- "otp": "string",
- "expires_at": 0
}
}| id required | string |
| account_type | string or null Enum: "User" "System" "Service" "Provider" |
| username | string or null |
| password | string or null |
object or null | |
Array of objects or null (Permission) | |
| trusted | boolean or null |
| enabled | boolean or null |
{- "id": "string",
- "account_type": "User",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string"
}, - "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "trusted": true,
- "enabled": true
}null| account_id required | string The ID of the account to disable |
{- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string"
}, - "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "reset_password_otp": {
- "otp": "string",
- "expires_at": 0
}
}| account_id required | string The ID of the account to enable |
{- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string"
}, - "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "enabled": true,
- "trusted": true,
- "created_on": 0,
- "last_logged_in": 0,
- "reset_password_otp": {
- "otp": "string",
- "expires_at": 0
}
}| id required | string The identifier of the organisation. Must be unique |
| units required | Array of strings The organisation's units |
{- "id": "string",
- "units": [
- "string"
]
}{- "id": "string",
- "units": [
- "string"
], - "enabled": true,
- "created_timestamp": 0
}| org_id required | string ID of the organisation to update |
| units | Array of strings or null The units of the organisation (must be the full list) |
| enabled | boolean or null Flag indicating whether the organisation is enabled or not |
{- "units": [
- "string"
], - "enabled": true
}{- "id": "string",
- "units": [
- "string"
], - "enabled": true,
- "created_timestamp": 0
}| org_id required | string ID of the organisation to update |
[- "string"
]{- "succeeded": [
- "string"
], - "failed": [
- "string"
]
}| org_id required | string ID of the organisation to update |
[- "string"
]{- "succeeded": [
- "string"
], - "failed": [
- "string"
]
}| id required | string System ID to filter by |
| name required | string System name to filter by |
| sort_field required | string Field to sort on |
| sort_direction required | integer <int32> Direction to sort in (1 = ASC, -1 = DESC) |
| page required | integer <int32> Page to retrieve |
| limit required | integer <int32> Number of items to retrieve |
[- {
- "id": "string",
- "name": "string",
- "service_id": "string",
- "user_types": [
- "string"
], - "resources": [
- "string"
], - "service_config": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}
]| name required | string |
| service_id required | string |
| user_types required | Array of strings |
| resources required | Array of strings |
{- "name": "string",
- "service_id": "string",
- "user_types": [
- "string"
], - "resources": [
- "string"
]
}{- "id": "string",
- "name": "string",
- "service_id": "string",
- "user_types": [
- "string"
], - "resources": [
- "string"
], - "service_config": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}| system_id required | string System ID to update |
| name | string or null |
| service_id | string or null |
| user_types | Array of strings |
| resources | Array of strings |
{- "name": "string",
- "service_id": "string",
- "user_types": [
- "string"
], - "resources": [
- "string"
]
}{- "id": "string",
- "name": "string",
- "service_id": "string",
- "user_types": [
- "string"
], - "resources": [
- "string"
], - "service_config": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}