Each member of an institution is assigned a token (customer ID) that uniquely identifies a user of your service. An "institution" can contain one or more users and own one or more ultrasound scanners.
- Using the settings update API, provide us with a URL where we can pass the user token. The URL should allow the user to log in so you can associate the token with their account. For example:
GET https://example.com?token=user_token_goes_here
- Once the user is logged in and the token is successfully stored, notify us by calling the Customer Confirmation API.
Once a subscription is enabled on the Clarius Cloud, institution users pass their token to your service as follows:
- Login to Clarius Cloud
- Go to Profile
- Choose Services from the menu
- Find their institution's service subscription and click Connect
- Proceed to the service login page
- Log into their service account
If you wish to receive real-time notifications whenever one of your customers uploads an exam, you can register a notification webhook using the settings update API.
To assist with integration and debugging, we log every time we call your webhook. You can view these records at the Notification Records API.
- Accepts a POST request
- Does not require authentication
Upon receiving the notification, make sure to acknowledge it by responding with a 2xx status code. Later, asynchronously retrieve the data by following the download URL.
Notification payload contains the uploaded exam's UUID, ID of the customer who uploaded the exam, a URL where this exam's data can be retrieved, a UUID of this submission (request) and a timestamp when the user submitted this exam.
{
"request_uuid": "cf1b649c-428a-4cc2-b726-066f8a8c31a7",
"exam_uuid": "418c1f0f-4dd5-4c65-ae68-1fe8eccf46e5",
"customer_id": "eYENW6HO4xdM0KlGO2kBXtTbD5XX1LTfdV-vYslapMY",
"download_url": "https://cloud.clarius.com/api/public/v0/download-requests/cf1b649c-428a-4cc2-b726-066f8a8c31a7/data/",
"submitted_at": "2022-10-22T03:10:47.231755Z",
}
GET https://cloud.clarius.com/api/public/v0/exams/accessible/
The poll API returns all accessible exam downloads in the notification payload format.
Results can be filtered by query parameters:
customer_id
exact match
limit
(default: 100) - maximum number of results per pageoffset
- pagination offset
- "count" - total number of items in the response
- "next" - URL to the next page or
null
if this is the last page - "previous" - URL to the previous page or
null
if this is the first page - "results" - paginated data
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"request_uuid": "5ac5e0e3-92bd-4b55-8250-c03296a12872",
"exam_uuid": "440648a3-435f-4053-942b-17509c0787c1",
"customer_id": "eYENW6HO4xdM0KlGO2kBXtTbD5XX1LTfdV-vYslapMY",
"download_url": "https://cloud.clarius.com/api/public/v0/exams/download-requests/5ac5e0e3-92bd-4b55-8250-c03296a12872/data/",
"submitted_at": "2022-10-22T03:10:47.231755Z",
}
{
"request_uuid": "8cc97ac4-ad8d-4fed-a70e-967703ebe521",
"exam_uuid": "440648a3-435f-4053-942b-17509c0787c1",
"customer_id": "eYENW6HO4xdM0KlGO2kBXtTbD5XX1LTfdV-vYslapMY",
"download_url": "https://cloud.clarius.com/api/public/v0/exams/download-requests/8cc97ac4-ad8d-4fed-a70e-967703ebe521/data/",
"submitted_at": "2022-10-22T01:35:22.157454Z"
}
]
}
GET https://cloud.clarius.com/api/public/v0/exams/download-requests/[request uuid]/data/
Response may vary based on data you need from us and can be reconfigured on request. This is an example of what it may look like:
- "request_uuid" - UUID of the customer's request
- "patient" - patient data, possible fields:
- "identifier"
- "date_of_birth"
- "gender"
- "first_name" (human patient only)
- "middle_name" (human patient only)
- "last_name" (human patient only)
- "animal_name" (animal patient only)
- "animal_type" (animal patient only)
- "owner_name" (animal patient only)
- "captures" - a list of ultrasound captures with each item containing a "url" field where the capture media (image or video) can be downloaded.
{
"request_uuid": "f037679c-6ed2-46cd-b2dc-f4abe52e5b52",
"patient": {
"identifier": "12345",
"date_of_birth": "1970-01-01"
},
"captures": [
{
"url": "..."
}
]
}
POST https://cloud.clarius.com/api/public/v0/services/customer-confirmations/
{
"token": "my customer token"
}
Used for notifying us that you've successfully associated our token with an account.
{
"token": "eYENW6HO4xdM0KlGO2kBXtTbD5XX1LTfdV-vYslapMY"
}
Status codes
- 200 if successfully confirmed integration.
- 404 if a customer with this token does not exist.
GET https://cloud.clarius.com/api/public/v0/services/confirmed-tokens/
Returns a paginated list of tokens for all confirmed users.
limit
(default: 10000) - maximum number of results per pageoffset
- pagination offset
- "count" - total number of items in the response
- "next" - URL to the next page or
null
if this is the last page - "previous" - URL to the previous page or
null
if this is the first page - "results" - paginated data
{
"count": 2,
"next": null,
"previous": null,
"results": [
"eYENW6HO4xdM0KlGO2kBXtTbD5XX1LTfdV-vYslapMY",
"GEMoSRSC5nQTjicaQHE2L_0_HTaPwyjsIs86R6khqHc"
]
}
POST https://cloud.clarius.com/api/public/v0/services/requests/[request uuid]/reports/
Optionally, upload one or more report files associated with a user request. Reports will be viewable in the "Services" modal on the exam page.
name
- user-friendly name describing the report. The name will be shown to the user in the "Services" modal.file
- the file to upload (note: your Content-Type should bemultipart/form-data
)
GET https://cloud.clarius.com/api/public/v0/services/settings/
Returns your settings
PATCH https://cloud.clarius.com/api/public/v0/services/settings/
Allows updating your settings
- "notification_url" - a valid URL or an empty string
- "token_transfer_url" - a valid URL containing the string
{token}
anywhere in the URL, or an empty string
{
"token_transfer_url": "https://example.com/{token}/"
}
GET https://cloud.clarius.com/api/public/v0/services/notifications/records/
Returns a paginated list of notification webhook records.
limit
(default: 100) - maximum number of results per pageoffset
- pagination offset
- "count" - total number of items in the response
- "next" - URL to the next page or
null
if this is the last page - "previous" - URL to the previous page or
null
if this is the first page - "results" - paginated data
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"logged_at": "2023-06-01T02:15:28.331086Z",
"event": {
"sent_at": "2023-06-01T02:15:23.435871Z",
"request": {
"url": "https://example.com",
"method": "POST",
"content": "{}",
},
"response": null,
"error": "timed out"
}
}
]
}
GET https://cloud.clarius.com/api/public/v0/services/api-keys/
[
{
"prefix": "QUgDR6JB",
"name": "My key",
"created": "2022-08-31T23:28:55.587755Z"
}
]
POST https://cloud.clarius.com/api/public/v0/services/api-keys/
{
"name": "My new api key"
}
Creates new API keys.
{
"name": "My new api key"
}
{
"prefix": "ghhni3x8",
"name": "My new api key",
"created": "2023-03-09T01:35:32.639396Z",
"key": "ghhni3x8.aToALr2FC8A7toD11Cj902BLtTuLSZEr"
}
DELETE https://cloud.clarius.com/api/public/v0/services/api-keys/[key prefix]/
Note: it is not possible to revoke the key you're using to authenticate.
GET https://cloud.clarius.com/api/public/v0/exams/applications/
Retrieve a list of applications we have on Clarius Cloud.
[
{
"uuid": "9f9531da-84a7-4149-8d59-c4c86c0afaa3",
"name": "Abdomen"
},
{
"uuid": "2e79155f-811c-4d29-9b49-807b20013518",
"name": "Cardiac"
},
{
"uuid": "643395dc-6786-4c90-9012-565fd23ae71a",
"name": "Bladder"
}
]
A set of APIs to manage customizations of exam applications for your users.
GET https://cloud.clarius.com/api/public/v0/services/applications/
[
{
"uuid": "2e79155f-811c-4d29-9b49-807b20013518",
"name": "Cardiac",
"annotations": [
{
"title": "Our special annotations",
"labels": [
"LABEL1",
"LABEL2"
],
"linked": false
}
]
}
]
GET https://cloud.clarius.com/api/public/v0/services/applications/[application uuid]/
{
"uuid": "2e79155f-811c-4d29-9b49-807b20013518",
"name": "Cardiac",
"annotations": [
{
"title": "Our special annotations",
"labels": [
"LABEL1",
"LABEL2"
],
"linked": false
}
]
}
PUT https://cloud.clarius.com/api/public/v0/services/applications/[application uuid]/
annotations
- a list of annotations you would like your users to use in the Clarius Ultrasound app. Each item on the list must contain the following fields:title
- stringlabels
- list of stringslinked
- true/false boolean. Labels in linked categories are combined together in a unique label.
{
"annotations": [
{
"title": "Our special annotations",
"labels": [
"LABEL1",
"LABEL2"
],
"linked": false
}
]
}
DELETE https://cloud.clarius.com/api/public/v0/services/applications/[application uuid]/
Include your API key in the Authorization header with the Service-API-Key
keyword.
For example:
Authorization: Service-API-Key Q4nmtzH5.mvIzWOlklcrFJ3iWaJTFESYCzCe8j6TQ
Onboarding is currently a manual process. We will provide you with the initial API key.