Download OpenAPI specification:
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.
Authenticate an account and generate a JWT token which contains the accounts claims
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"
], - "brandpath_list": [
- "string"
]
}, - "properties": {
- "property1": "string",
- "property2": "string"
}, - "services": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}
Retrieve account details for the currently logged in account
{- "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"
], - "brandpath_list": [
- "string"
]
}
}
Change the password for the currently logged in account
password required | string |
{- "password": "string"
}
null
Start the forgot password flow for a specific account 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
Completes a forgotten password flow by resetting the password if a valid OTP is provided
username required | string |
otp required | string |
password required | string |
{- "username": "string",
- "otp": "string",
- "password": "string"
}
null
Refresh a valid JWT token
token required | string |
{- "token": "string"
}
{- "token": "string",
- "refresh_token": "string",
- "secret": "string",
- "access_to": {
- "org_id": "string",
- "unit_ids": [
- "string"
], - "brandpath_list": [
- "string"
]
}, - "properties": {
- "property1": "string",
- "property2": "string"
}, - "services": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}
Get Account(s)
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",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "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
}, - "contacts": {
- "property1": "string",
- "property2": "string"
}
}
]
Add an Account to the system
account_type required | string (AccountType) Enum: "User" "System" "Service" "Provider" |
system_id | string or null |
username required | string |
password required | string |
required | object (OrganisationUnit) |
org_bound | boolean or null |
required | Array of objects (Permission) |
trusted | boolean or null |
object or null |
{- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "trusted": true,
- "contacts": {
- "property1": "string",
- "property2": "string"
}
}
{- "id": "string",
- "account_type": "User",
- "system_id": "string",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "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
}, - "contacts": {
- "property1": "string",
- "property2": "string"
}
}
Modify an Account in the system
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 |
object or null | |
org_bound | boolean or null |
{- "id": "string",
- "account_type": "User",
- "username": "string",
- "password": "string",
- "org_unit": {
- "org_id": "string",
- "unit_id": "string",
- "org_list": [
- "string"
]
}, - "permissions": [
- {
- "system_id": "string",
- "permissions": [
- {
- "resource_id": "string",
- "permission": "Read"
}
]
}
], - "trusted": true,
- "enabled": true,
- "contacts": {
- "property1": "string",
- "property2": "string"
}, - "org_bound": true
}
null
Disable a specific account
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",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "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
}, - "contacts": {
- "property1": "string",
- "property2": "string"
}
}
Enable a specific account
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",
- "org_list": [
- "string"
]
}, - "org_bound": true,
- "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
}, - "contacts": {
- "property1": "string",
- "property2": "string"
}
}
[- {
- "id": "string",
- "name": "string",
- "parent_id": "string",
- "enabled": true,
- "base_currency": "string",
- "children": [
- {
- "child_type": "Organisation",
- "id": "string",
- "currency": "string"
}
], - "created": 0,
- "updated": 0,
- "units": [
- "string"
]
}
]
Add a new organisation
id required | string The identifier of the organisation. Must be unique |
units required | Array of strings The organisation's units |
name | string Organisation descriptive name |
parent_id | string or null Organisation Parent |
base_currency | string or null Organisation Base Currency, if |
{- "id": "string",
- "units": [
- "string"
], - "name": "string",
- "parent_id": "string",
- "base_currency": "string"
}
{- "id": "string",
- "name": "string",
- "parent_id": "string",
- "enabled": true,
- "base_currency": "string",
- "children": [
- {
- "child_type": "Organisation",
- "id": "string",
- "currency": "string"
}
], - "created": 0,
- "updated": 0,
- "units": [
- "string"
]
}
Fetch a specific organisation
org_id required | string ID of the organisation |
{- "id": "string",
- "name": "string",
- "parent_id": "string",
- "enabled": true,
- "base_currency": "string",
- "children": [
- {
- "child_type": "Organisation",
- "id": "string",
- "currency": "string"
}
], - "created": 0,
- "updated": 0,
- "units": [
- "string"
]
}
Update a specific organisation
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 |
name | string or null Organisation descriptive name |
parent_id | string or null Organisation Parent |
base_currency | string or null Organisation Base Currency, if |
{- "units": [
- "string"
], - "enabled": true,
- "name": "string",
- "parent_id": "string",
- "base_currency": "string"
}
{- "id": "string",
- "name": "string",
- "parent_id": "string",
- "enabled": true,
- "base_currency": "string",
- "children": [
- {
- "child_type": "Organisation",
- "id": "string",
- "currency": "string"
}
], - "created": 0,
- "updated": 0,
- "units": [
- "string"
]
}
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"
]
}
Get Account(s)
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"
}
}
}
]