MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {ACCESS_TOKEN}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Token based authentication

You can retrieve your access token by calling api/login endpoint.

Access tokens are valid 7 days, then expire. You can obtain new access token with expiring access token by calling /api/token/refresh. You can only refresh still valid tokens, otherwise new request to api/login will be required.

Cookie based authentication

You can also authenticate using cookie-based sessions. Before calling any other endpoints you have to obtain XSRF cookie by hitting /sanctum/csrf-cookie endpoint. In return you receive XSRF-TOKEN cookie, which content you have to attach to each request as X-XSRF-TOKEN header.

Then call /login endpoint. When your authenticated session is created, call any endpoint using X-XSRF-TOKEN header.

Multi-Factor Authorization (MFA)

User can protect its account setting up the MFA as email or one-time passwords (OTP). If mfa_enabled is set to 1 and mfa_method is set to any of email or otp values, user will have to use preferred method as second factor on login.

If mfa_method is email, API will automatically send MFA code to user's email inbox.

Most of API endpoints are secured with additional layer and cannot be properly called without this second-factor authorization done. Instead of endpoint response API will reply with message "MFA is required for this request." and HTTP code 401 Unauthorized. That means user did not successfully authorized itself with second-factor.

Multi-Factor Authorization (MFA) - Remember Session

The user has the option to remember their device, which means they won't have to enter the MFA code for 30 days. If using a Token based authentication, you need to add a header named X-MFA-Session-Token with the value {mfa_token} obtained from the /verify endpoint.

Appendix A. Laravel validation rules

List of validation codes returned for Laravel's built-in validation rules:

Code
Description
MUST_BE_ACCEPTED
The field must be accepted. Value must be one of: 1, true, "yes" or "on".
MUST_BE_ACCEPTED_IF:other:value
The field must be accepted if other field equals to value. Accepted values are the same as in MUST_BE_ACCEPTED.
MUST_BE_ACTIVE_URL
The field must be an active URL address with a valid A or AAAA record according to the dns_get_record PHP function.
MUST_BE_AFTER:date
The field must be a date that is after a specified date.
MUST_BE_AFTER_OR_EQUAL:date
The field must be a date that is after or equal to a specified date.
MUST_CONTAIN_ONLY_LETTERS
The field must contain only letters.
MUST_CONTAIN_ONLY_LETTERS_NUMBERS_DASHES_UNDERSCORES
The field must contain only letters, numbers, dashes and underscores.
MUST_CONTAIN_ONLY_LETTERS_NUMBERS
The field must contain only letters and numbers.
MUST_BE_ARRAY
The field must be an array.
MUST_BE_BEFORE:date
The field must be a date that is before a specified date.
MUST_BE_BEFORE_OR_EQUAL:date
The field must be a date that is before or equal to a specified date.
BETWEEN:NUMBERS:min:max
The field must be a number between min and max.
BETWEEN:FILE_KB:min:max
The field must be a file with a size between min and max KB.
BETWEEN:STRING_LENGTH:min:max
The field must be a string with a length between min and max.
BETWEEN:ARRAY_COUNT:min:max
The field must be an array with between min and max elements.
MUST_BE_BOOLEAN
The field must be a boolean. Accepted values include: true, false, 1, 0, "1" and "0".
MUST_BE_CONFIRMED
The field must have a matching confirmation field named {field}_confirmation.
MUST_BE_CURRENT_PASSWORD
The field must match the authenticated user's current password.
MUST_BE_DATE
The field must be a valid date according to the strtotime PHP function.
MUST_EQUAL_DATE:date
The field must be a date equal to the specified date.
MUST_BE_DATE_FORMAT:format
The field must match the given date format.
MUST_BE_DIFFERENT:other
The field must have a different value than the field named other.
MUST_HAVE_DIGITS:digits
The field must be numeric and contain exactly digits digits.
MUST_HAVE_DIGITS_BETWEEN:min:max
The field must be numeric and contain between min and max digits.
INVALID_IMAGE_DIMENSIONS
The uploaded image has invalid dimensions.
MUST_BE_DISTINCT
The field's values must not contain any duplicates.
MUST_BE_EMAIL
The field must be a valid email address.
MUST_END_WITH:value
The field must end with value.
MUST_EXIST:table.column
The field's value must already exist in the specified database table and column.
MUST_BE_FILE
The field must be a file.
MUST_HAVE_A_VALUE
The field must have a non-empty value.
GREATER_THAN:NUMBER:value
The field must be numeric and greater than value.
GREATER_THAN:FILE_KB:value
The field must be a file with a size greater than value KB.
GREATER_THAN:STRING_LENGTH:value
The field must be a string with a length greater than value.
GREATER_THAN:ARRAY_COUNT:value
The field must be an array with have more than value elements.
GREATER_THAN_OR_EQUALS:NUMBER:value
The field must be numeric and greater than or equal to value.
GREATER_THAN_OR_EQUALS:FILE_KB:value
The field must be a file with a size greater than or equal to value KB.
GREATER_THAN_OR_EQUALS:STRING_LENGTH:value
The field must be a string with a length greater than or equal to value.
GREATER_THAN_OR_EQUALS:ARRAY_COUNT:value
The field must be an array with at least value elements.
MUST_BE_IMAGE
The field must be an image.
MUST_BE_IN:values
The field value must be on of the values list.
MUST_BE_IN_ARRAY:other
The field's value must exist in the other field values.
MUST_BE_INTEGER
The field must be an integer.
MUST_BE_IP_ADDRESS
The field must be a valid IP address.
MUST_BE_IPV4_ADDRESS
The field must be a valid IPv4 address.
MUST_BE_IPV6_ADDRESS
The field must be a valid IPv6 address.
MUST_BE_JSON
The field must contain valid JSON.
LESS_THAN:NUMBER:value
The field must be numeric and less than value.
LESS_THAN:FILE_KB:value
The field must be a file with a size less than value KB.
LESS_THAN:STRING_LENGTH:value
The field must be a string with a length less than value.
LESS_THAN:ARRAY_COUNT:value
The field must be an array with fewer than value elements.
LESS_THAN_OR_EQUALS:NUMBER:value
The field must be numeric and less than or equal to value.
LESS_THAN_OR_EQUALS:FILE_KB:value
The field must be a file with a size less than or equal to value KB.
LESS_THAN_OR_EQUALS:STRING_LENGTH:value
The field must be a string with a length less than or equal to value.
LESS_THAN_OR_EQUALS:ARRAY_COUNT:value
The field must be an array with no more than value elements.
MAXIMUM:NUMBER:value
The field must be numeric and must not exceed the value.
MAXIMUM:FILE_KB:value
The field must be a file with a size no greater than value KB.
MAXIMUM:STRING_LENGTH:value
The field must be a string with a maximum length equal to value.
MAXIMUM:ARRAY_COUNT:value
The field must be an array with no more than value elements.
MUST_BE_MIME_OF:values
The field must be a file with one of the given file extensions, for example: pdf, png, mpeg.
Note that the rule uses file extensions, but Laravel internally verifies the actual MIME type using the file's contents.
MUST_BE_MIMETYPE_OF:values
The field must be a file matching one of the specified MIME types, such as: application/pdf, image/png, video/mpeg.
MINIMUM:NUMBER:min
The field must be numeric and at least value.
MINIMUM:FILE_KB:min
The field must be a file with a size of at least value KB.
MINIMUM:STRING_LENGTH:min
The field must be a string with a minimum length equal to value.
MINIMUM:ARRAY_COUNT:min
The field must be an array with at least value elements.
MUST_BE_MULTIPLE_OF:value
The field must be multiple of value.
MUST_NOT_BE_IN:values
The field's value must not be on of the values list. This is the opposite of MUST_BE_IN rule.
INVALID_FORMAT
The field does not match the given regular expression.
MUST_BE_NUMERIC
The field must be numeric.
MUST_BE_PRESENT
The field must be present, but can be empty.
REQUIRED
The field must be present and not empty.
Field is considered empty if its value is null, an empty string, an empty array or a file input with no file uploaded.
REQUIRED_IF:other:value
The field must be present and not empty if other field is equal to value.
REQUIRED_UNLESS:other:values
The field must be present and not empty unless other field is equal to value.
REQUIRED_WITH:values
The field must be present and not empty if any of the fields in values are present and not empty.
REQUIRED_WITH_ALL:values
The field must be present and not empty if all of the fields in values are present and not empty.
REQUIRED_WITHOUT:values
The field must be present and not empty if any of the fields in values are not present or empty.
REQUIRED_WITHOUT_ALL:values
The field must be present and not empty if all of the fields in values are not present or empty.
PROHIBITED
The field must be empty or not present in the request.
PROHIBITED_IF:other:value
The field must be empty or not present if other field is equal to value.
PROHIBITED_UNLESS:other:value
The field must be empty or not present unless other field is equal to value.
PROHIBITS:other
If the field is present, the other field can't be present at the same time.
MUST_BE_SAME:other
The field must have the same value as the other field.
SIZE:NUMBER:size
The field must be numeric and equal to size.
SIZE:FILE_KB:size
The field must be a file with a size of size KB.
SIZE:STRING_LENGTH:size
The field must be a string with a length equal to size.
SIZE:ARRAY_COUNT:size
The field must be an array with exactly size elements.
MUST_START_WITH:value
The field must start with value.
MUST_BE_STRING
The field must be a string.
MUST_BE_TIMEZONE
The field must be a valid timezone according to the timezone_identifiers_list PHP function.
MUST_BE_UNIQUE:table.column
The field's value must not already exist in the specified database table and column.
FAILED_TO_UPLOAD
File upload failed.
MUST_BE_URL
The field must be a valid URL address.
MUST_BE_UUID
The field must be a valid UUID.

More detailed information about validation rules can be found in Laravel documentation.

Appendix B. Custom validation rules

List of custom validation rules messages:

Code
Description
RULES:CONFIG_MODES_LIMIT_RULE:EXCEEDED:max
Checks whether the device's config modes limit has been reached. Fails when the number of config modes assigned to the device already equals to max.
RULES:FILE_UPLOADS_MAX_TOTAL_SIZE_RULE:EXCEEDED:max_size
Checks whether the total size of all uploaded files in the request exceeds the specified limit. Fails if the total size is greater than max_size KB.
RULES:IS_TIMESTAMP_RULE:INVALID_VALUE
Checks whether the value is a valid timestamp. Fails if it's not.
RULES:IS_TIMEZONE_RULE:INVALID_VALUE
Checks whether the value is a valid timezone. Fails if it's not. List of valid timezones is available at the /api/timezones endpoint.
RULES:NOT_EXIST_IN_OTHER_REGIONS_RULE:DEVICE_IDENTIFIER_IN_USE
Checks whether the device identifier (serial or Bluetooth ID) is already in use in another region. Fails if it is.
RULES:NOT_EXIST_IN_OTHER_REGIONS_RULE:USER_EMAIL_IN_USE
Checks whether the user's email is already in use in another region. Fails if it is.
RULES:NOT_INFECTED_RULE:FILE_INFECTED_OR_UPLOAD_ISSUE
Checks whether the uploaded file is infected. Fails if the upload fails or AV software reports an issue.
RULES:PATIENT_DEVICE_RULE:NOT_ASSIGNED
Checks the patient-device assignment. Fails if the device is not assigned to the user.
RULES:P2P_SESSION_MEMBER_RULE:NOT_A_MEMBER
Checks whether the current user is the member of the P2P session they are trying to access. Fails if the user is not a session's patient or clinician.
RULES:URL_EXISTS_RULE:EXPECTED_CONTENT_TYPE:content_type
RULES:URL_EXISTS_RULE:NOT_FOUND
Checks whether the specified URL exists and returns an HTTP 200 response.
If content_type was specified, the rule also verifies the returned Content-Type header. If it doesn't match, the error code will include EXPECTED_CONTENT_TYPE:content_type.
Otherwise, it only checks the status code and returns NOT_FOUND if it's not 200.
Fails if HTTP code is not 200 or the Content-Type doesn't match the expected value (if specified).
PASSWORD:MUST_CONTAIN_AT_LEAST_ONE_LOWERCASE
Checks whether the password contains at least one lowercase letter.
PASSWORD:MUST_CONTAIN_AT_LEAST_ONE_UPPERCASE
Checks whether the password contains at least one uppercase letter.
PASSWORD:MUST_CONTAIN_AT_LEAST_ONE_NUMBER
Checks whether the password contains at least one number.
PASSWORD:MUST_CONTAIN_AT_LEAST_ONE_SYMBOL
Checks whether the password contains at least one symbol.

Acadle

Endpoints related to Acadle integration

Acadle SSO

requires authentication

Creates the SSO authorization link. The link expires after 60 seconds, but can be re-generated without any limits.

Example request:
curl --request POST \
    "http://localhost:8000/api/acadle/sso" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/acadle/sso"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "sso_url": "https://adp.acadle.com/sso/authenticate/callback?ssoToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MzczNzU3OTksImV4cCI6MTczNzM3NTg1OSwiZmlyc3RuYW1lIjoiVG9tIiwibGFzdG5hbWUiOiJTbWl0aCIsImVtYWlsIjoidGVzdEBleGFtcGxlLmNvbSIsInVzZXJuYW1lIjpudWxsLCJ0aW1lem9uZSI6IlVUQyJ9.VzE2q6V53bdYJM7aB6CWWxDqcxF4gpdiEF80dD9j-5k",
    "sso_expires": 1737375859
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to use Acadle",
    "code": "ACADLE:SSO:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Survey required):


{
    "message": "Completing the survey is required to proceed to Acadle",
    "code": "ACADLE:SSO:SURVEY_REQUIRED"
}
 

Request   

POST api/acadle/sso

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Check Acadle survey status

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/acadle/survey/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/acadle/survey/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "survey_sent": false,
    "survey_id": null
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to use Acadle",
    "code": "ACADLE:SURVEY_STATUS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/acadle/survey/status

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get Acadle survey data

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/acadle/survey" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/acadle/survey"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (201):


{
    "id": 1,
    "user_id": 301,
    "cpo_number": "3",
    "country": "Uganda",
    "medical_training": "physiotherapist",
    "myo_exp_zeus": "0",
    "has_demo_hand_access": 0,
    "wants_demo_hand": 1,
    "myo_exp_covvi": 0,
    "myo_exp_fillauer": 1,
    "myo_exp_ossur": 1,
    "myo_exp_ottobock": 1,
    "myo_exp_steeper": 1,
    "myo_exp_taska": 0,
    "myo_exp_vincent": 1,
    "myo_exp_pattern_recognition": 0,
    "myo_exp_other": "Ut numquam eius et eaque molestias.",
    "partial_hand_protheses": "1",
    "below_elbow_protheses_single_action": "3",
    "below_elbow_protheses_multi_action": "5",
    "above_elbow_protheses": "4",
    "shoulder_protheses": "1",
    "zeus_components_description": "Harum numquam deleniti corrupti.",
    "contact_name": "Elouise",
    "contact_surname": "Schmidt",
    "company_name": "Bartoletti-Blick",
    "street": "54362 Jason Squares Apt. 500",
    "city": "New Vanessa",
    "postal_code": "23004-5848",
    "email": "nhermann@yost.com",
    "phone": "+1-386-907-0736",
    "phone_country": "br",
    "device_side": "R",
    "created_at": "2026-08-28T14:46:33.000000Z",
    "updated_at": "2026-08-28T14:46:33.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to use Acadle",
    "code": "ACADLE:SURVEY_RESULTS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Survey not found):


{
    "message": "Survey not found",
    "code": "ACADLE:SURVEY_RESULTS:SURVEY_NOT_FOUND"
}
 

Request   

GET api/acadle/survey

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

id   integer   

Survey ID.

user_id   integer   

Associated user ID.

cpo_number   string   

CPO number.

country   string   

Country code.

medical_training   string   

Medical training level.

myo_exp_zeus   string   

Zeus myo experience.

myo_exp_covvi   string   

Covvi myo experience.

myo_exp_fillauer   string   

Fillauer myo experience.

myo_exp_ossur   string   

Ossur myo experience.

myo_exp_ottobock   string   

Ottobock myo experience.

myo_exp_steeper   string   

Steeper myo experience.

myo_exp_taska   string   

Taska myo experience.

myo_exp_vincent   string   

Vincent myo experience.

myo_exp_pattern_recognition   string   

Pattern recognition myo experience.

myo_exp_other   string   

Other myo experience.

has_demo_hand_access   boolean   

Whether the user has demo hand access.

wants_demo_hand   boolean   

Whether the user wants a demo hand.

partial_hand_protheses   string   

Partial hand prostheses experience.

below_elbow_protheses_single_action   string   

Below elbow single action prostheses experience.

below_elbow_protheses_multi_action   string   

Below elbow multi-action prostheses experience.

above_elbow_protheses   string   

Above elbow prostheses experience.

shoulder_protheses   string   

Shoulder prostheses experience.

zeus_components_description   string   

Zeus components description.

contact_name   string   

Contact first name.

contact_surname   string   

Contact last name.

company_name   string   

Company name.

street   string   

Street address.

city   string   

City.

postal_code   string   

Postal code.

email   string   

Contact email.

phone   string   

Contact phone.

phone_country   string   

Phone country code.

device_side   string   

Device side.

Must be one of:
  • L
  • R
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Get Acadle survey data (SuperAdmin)

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/acadle/survey/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/acadle/survey/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (201):


{
    "id": 2,
    "user_id": 302,
    "cpo_number": "953956",
    "country": "Faroe Islands",
    "medical_training": "biomedical_engineer",
    "myo_exp_zeus": "1",
    "has_demo_hand_access": 1,
    "wants_demo_hand": 1,
    "myo_exp_covvi": 1,
    "myo_exp_fillauer": 0,
    "myo_exp_ossur": 1,
    "myo_exp_ottobock": 0,
    "myo_exp_steeper": 0,
    "myo_exp_taska": 0,
    "myo_exp_vincent": 1,
    "myo_exp_pattern_recognition": 1,
    "myo_exp_other": "Laborum assumenda qui qui quia quis voluptatem ut est.",
    "partial_hand_protheses": "1",
    "below_elbow_protheses_single_action": "3",
    "below_elbow_protheses_multi_action": "2",
    "above_elbow_protheses": "4",
    "shoulder_protheses": "0",
    "zeus_components_description": "Nobis sequi sequi corporis ipsum quo pariatur reiciendis autem.",
    "contact_name": "Beulah",
    "contact_surname": "Rohan",
    "company_name": "Senger, Bogan and Balistreri",
    "street": "709 Clair Forge Suite 986",
    "city": "Port Winonamouth",
    "postal_code": "69288-8683",
    "email": "claudie.bayer@lynch.com",
    "phone": "1-279-279-0374",
    "phone_country": "cw",
    "device_side": "R",
    "created_at": "2026-08-28T14:46:34.000000Z",
    "updated_at": "2026-08-28T14:46:34.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to use Acadle",
    "code": "ACADLE:SURVEY_RESULTS_ADMIN:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "ACADLE:SURVEY_RESULTS_ADMIN:USER_NOT_FOUND"
}
 

Example response (404, Survey not found):


{
    "message": "Survey not found",
    "code": "ACADLE:SURVEY_RESULTS_ADMIN:SURVEY_NOT_FOUND"
}
 

Request   

GET api/acadle/survey/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Response

Response Fields

id   integer   

Survey ID.

user_id   integer   

Associated user ID.

cpo_number   string   

CPO number.

country   string   

Country code.

medical_training   string   

Medical training level.

myo_exp_zeus   string   

Zeus myo experience.

myo_exp_covvi   string   

Covvi myo experience.

myo_exp_fillauer   string   

Fillauer myo experience.

myo_exp_ossur   string   

Ossur myo experience.

myo_exp_ottobock   string   

Ottobock myo experience.

myo_exp_steeper   string   

Steeper myo experience.

myo_exp_taska   string   

Taska myo experience.

myo_exp_vincent   string   

Vincent myo experience.

myo_exp_pattern_recognition   string   

Pattern recognition myo experience.

myo_exp_other   string   

Other myo experience.

has_demo_hand_access   boolean   

Whether the user has demo hand access.

wants_demo_hand   boolean   

Whether the user wants a demo hand.

partial_hand_protheses   string   

Partial hand prostheses experience.

below_elbow_protheses_single_action   string   

Below elbow single action prostheses experience.

below_elbow_protheses_multi_action   string   

Below elbow multi-action prostheses experience.

above_elbow_protheses   string   

Above elbow prostheses experience.

shoulder_protheses   string   

Shoulder prostheses experience.

zeus_components_description   string   

Zeus components description.

contact_name   string   

Contact first name.

contact_surname   string   

Contact last name.

company_name   string   

Company name.

street   string   

Street address.

city   string   

City.

postal_code   string   

Postal code.

email   string   

Contact email.

phone   string   

Contact phone.

phone_country   string   

Phone country code.

device_side   string   

Device side.

Must be one of:
  • L
  • R
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

List all Acadle surveys (SuperAdmin)

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/acadle/surveys?search=john" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/acadle/surveys"
);

const params = {
    "search": "john",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 3,
            "user_id": 303,
            "cpo_number": "443",
            "country": "Turks and Caicos Islands",
            "medical_training": "physiotherapist",
            "myo_exp_zeus": "0",
            "has_demo_hand_access": 1,
            "wants_demo_hand": 0,
            "myo_exp_covvi": 0,
            "myo_exp_fillauer": 1,
            "myo_exp_ossur": 0,
            "myo_exp_ottobock": 0,
            "myo_exp_steeper": 1,
            "myo_exp_taska": 0,
            "myo_exp_vincent": 1,
            "myo_exp_pattern_recognition": 1,
            "myo_exp_other": "Possimus enim id officiis dolore esse facilis.",
            "partial_hand_protheses": "2",
            "below_elbow_protheses_single_action": "0",
            "below_elbow_protheses_multi_action": "5",
            "above_elbow_protheses": "5",
            "shoulder_protheses": "1",
            "zeus_components_description": "Harum sint sit distinctio quo similique nemo mollitia.",
            "contact_name": "Gladys",
            "contact_surname": "Volkman",
            "company_name": "Wisozk and Sons",
            "street": "3415 Upton Curve Suite 661",
            "city": "McGlynnside",
            "postal_code": "15879",
            "email": "lucile.stokes@schmidt.biz",
            "phone": "+1 (480) 420-6578",
            "phone_country": "pm",
            "device_side": "L",
            "created_at": "2026-08-28T14:46:34.000000Z",
            "updated_at": "2026-08-28T14:46:34.000000Z"
        },
        {
            "id": 4,
            "user_id": 304,
            "cpo_number": "808",
            "country": "Christmas Island",
            "medical_training": "biomedical_engineer",
            "myo_exp_zeus": "0",
            "has_demo_hand_access": 1,
            "wants_demo_hand": 1,
            "myo_exp_covvi": 1,
            "myo_exp_fillauer": 0,
            "myo_exp_ossur": 0,
            "myo_exp_ottobock": 1,
            "myo_exp_steeper": 0,
            "myo_exp_taska": 0,
            "myo_exp_vincent": 0,
            "myo_exp_pattern_recognition": 1,
            "myo_exp_other": "Est placeat libero ut aut.",
            "partial_hand_protheses": "5",
            "below_elbow_protheses_single_action": "5",
            "below_elbow_protheses_multi_action": "1",
            "above_elbow_protheses": "2",
            "shoulder_protheses": "3",
            "zeus_components_description": "Dolorem dolorem magni illum.",
            "contact_name": "Vernon",
            "contact_surname": "Heller",
            "company_name": "Brekke, O'Conner and Konopelski",
            "street": "25842 Gottlieb Estate Suite 826",
            "city": "Eastonfurt",
            "postal_code": "06624-1645",
            "email": "cartwright.brendon@stokes.net",
            "phone": "+16605934227",
            "phone_country": "cf",
            "device_side": "L",
            "created_at": "2026-08-28T14:46:35.000000Z",
            "updated_at": "2026-08-28T14:46:35.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to use Acadle",
    "code": "ACADLE:SURVEYS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/acadle/surveys

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Filter surveys by searching in: user name, user email, contact name, contact surname, contact email, CPO number. Example: john

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: user).

sortby   string  optional  

Sort by field (available: date, user_name, user_email, contact_name, contact_surname, country, medical_training, cpo_number). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Survey ID.

user_id   integer   

Associated user ID.

cpo_number   string   

CPO number.

country   string   

Country code.

medical_training   string   

Medical training level.

myo_exp_zeus   string   

Zeus myo experience.

myo_exp_covvi   string   

Covvi myo experience.

myo_exp_fillauer   string   

Fillauer myo experience.

myo_exp_ossur   string   

Ossur myo experience.

myo_exp_ottobock   string   

Ottobock myo experience.

myo_exp_steeper   string   

Steeper myo experience.

myo_exp_taska   string   

Taska myo experience.

myo_exp_vincent   string   

Vincent myo experience.

myo_exp_pattern_recognition   string   

Pattern recognition myo experience.

myo_exp_other   string   

Other myo experience.

has_demo_hand_access   boolean   

Whether the user has demo hand access.

wants_demo_hand   boolean   

Whether the user wants a demo hand.

partial_hand_protheses   string   

Partial hand prostheses experience.

below_elbow_protheses_single_action   string   

Below elbow single action prostheses experience.

below_elbow_protheses_multi_action   string   

Below elbow multi-action prostheses experience.

above_elbow_protheses   string   

Above elbow prostheses experience.

shoulder_protheses   string   

Shoulder prostheses experience.

zeus_components_description   string   

Zeus components description.

contact_name   string   

Contact first name.

contact_surname   string   

Contact last name.

company_name   string   

Company name.

street   string   

Street address.

city   string   

City.

postal_code   string   

Postal code.

email   string   

Contact email.

phone   string   

Contact phone.

phone_country   string   

Phone country code.

device_side   string   

Device side.

Must be one of:
  • L
  • R
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Send Acadle survey

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/acadle/survey" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"cpo_number\": 1591512,
    \"country\": \"Marshall Islands\",
    \"medical_training\": \"clinician\",
    \"myo_exp_zeus\": false,
    \"myo_exp_covvi\": false,
    \"myo_exp_fillauer\": false,
    \"myo_exp_ossur\": false,
    \"myo_exp_ottobock\": false,
    \"myo_exp_steeper\": false,
    \"myo_exp_taska\": false,
    \"myo_exp_vincent\": false,
    \"myo_exp_pattern_recognition\": false,
    \"myo_exp_other\": \"Voluptatem provident aliquam corrupti quo quisquam nemo et.\",
    \"has_demo_hand_access\": false,
    \"wants_demo_hand\": false,
    \"partial_hand_protheses\": \"1-5\",
    \"below_elbow_protheses_single_action\": \"1-5\",
    \"below_elbow_protheses_multi_action\": \"5-10\",
    \"above_elbow_protheses\": \"50+\",
    \"shoulder_protheses\": \"1-5\",
    \"zeus_components_description\": \"Et veritatis ut non alias debitis.\",
    \"contact_name\": \"Violet\",
    \"company_name\": \"Schiller, Bradtke and Krajcik\",
    \"street\": \"754 Stokes Forge Suite 343\",
    \"city\": \"New Henderson\",
    \"postal_code\": \"74542\",
    \"email\": \"bstokes@konopelski.com\",
    \"phone\": \"231.606.4481\",
    \"phone_country\": \"IQ\",
    \"device_side\": \"L\"
}"
const url = new URL(
    "http://localhost:8000/api/acadle/survey"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "cpo_number": 1591512,
    "country": "Marshall Islands",
    "medical_training": "clinician",
    "myo_exp_zeus": false,
    "myo_exp_covvi": false,
    "myo_exp_fillauer": false,
    "myo_exp_ossur": false,
    "myo_exp_ottobock": false,
    "myo_exp_steeper": false,
    "myo_exp_taska": false,
    "myo_exp_vincent": false,
    "myo_exp_pattern_recognition": false,
    "myo_exp_other": "Voluptatem provident aliquam corrupti quo quisquam nemo et.",
    "has_demo_hand_access": false,
    "wants_demo_hand": false,
    "partial_hand_protheses": "1-5",
    "below_elbow_protheses_single_action": "1-5",
    "below_elbow_protheses_multi_action": "5-10",
    "above_elbow_protheses": "50+",
    "shoulder_protheses": "1-5",
    "zeus_components_description": "Et veritatis ut non alias debitis.",
    "contact_name": "Violet",
    "company_name": "Schiller, Bradtke and Krajcik",
    "street": "754 Stokes Forge Suite 343",
    "city": "New Henderson",
    "postal_code": "74542",
    "email": "bstokes@konopelski.com",
    "phone": "231.606.4481",
    "phone_country": "IQ",
    "device_side": "L"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 5,
    "user_id": 305,
    "cpo_number": "62",
    "country": "Turkmenistan",
    "medical_training": "biomedical_engineer",
    "myo_exp_zeus": "0",
    "has_demo_hand_access": 1,
    "wants_demo_hand": 0,
    "myo_exp_covvi": 1,
    "myo_exp_fillauer": 0,
    "myo_exp_ossur": 0,
    "myo_exp_ottobock": 1,
    "myo_exp_steeper": 0,
    "myo_exp_taska": 0,
    "myo_exp_vincent": 1,
    "myo_exp_pattern_recognition": 1,
    "myo_exp_other": "Eos odit neque voluptatum qui expedita corrupti.",
    "partial_hand_protheses": "2",
    "below_elbow_protheses_single_action": "2",
    "below_elbow_protheses_multi_action": "4",
    "above_elbow_protheses": "0",
    "shoulder_protheses": "2",
    "zeus_components_description": "Vel non sit quos est numquam.",
    "contact_name": "Braulio",
    "contact_surname": "Ondricka",
    "company_name": "Upton, O'Keefe and Considine",
    "street": "7463 Dach Terrace Suite 357",
    "city": "Balistreriview",
    "postal_code": "91467-5225",
    "email": "greilly@bergnaum.com",
    "phone": "1-475-476-5129",
    "phone_country": "cr",
    "device_side": "L",
    "created_at": "2026-08-28T14:46:36.000000Z",
    "updated_at": "2026-08-28T14:46:36.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to use Acadle",
    "code": "ACADLE:SURVEY_SEND:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Survey already sent):


{
    "message": "Survey already sent",
    "code": "ACADLE:SURVEY_SEND:SURVEY_ALREADY_SENT"
}
 

Request   

POST api/acadle/survey

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

cpo_number   string  optional  

CPO Number. Example: 1591512

country   string   

Country name. Example: Marshall Islands

medical_training   string   

Clinician's medical/clinical training. Example: clinician

Must be one of:
  • clinician
  • physiotherapist
  • physician
  • biomedical_engineer
  • other
  • prosthetist
myo_exp_zeus   boolean   

Does clinician have an experience working with Zeus hands. Example: false

myo_exp_covvi   boolean   

Does clinician have an experience working with Covvi hands. Example: false

myo_exp_fillauer   boolean   

Does clinician have an experience working with Fillauer hands. Example: false

myo_exp_ossur   boolean   

Does clinician have an experience working with Ossur hands. Example: false

myo_exp_ottobock   boolean   

Does clinician have an experience working with Ottobock hands. Example: false

myo_exp_steeper   boolean   

Does clinician have an experience working with Steeper hands. Example: false

myo_exp_taska   boolean   

Does clinician have an experience working with Taska hands. Example: false

myo_exp_vincent   boolean   

Does clinician have an experience working with Vincent hands. Example: false

myo_exp_pattern_recognition   boolean   

Does clinician have an experience working with Pattern Recognition. Example: false

myo_exp_other   string  optional  

Does clinician have an experience working with any other hands. MINIMUM:STRING_LENGTH:3. Example: Voluptatem provident aliquam corrupti quo quisquam nemo et.

has_demo_hand_access   boolean   

Does clinician have access to a demo hand. Example: false

wants_demo_hand   boolean   

Does clinician want a demo hand. Example: false

partial_hand_protheses   string  optional  

How many prostheses of type partial hand does clinician make per year. Example: 1-5

below_elbow_protheses_single_action   string  optional  

How many prostheses of type below elbow (single-action) does clinician make per year. Example: 1-5

below_elbow_protheses_multi_action   string  optional  

How many prostheses of type below elbow (multi-action) does clinician make per year. Example: 5-10

above_elbow_protheses   string  optional  

How many prostheses of type above elbow does clinician make per year. Example: 50+

shoulder_protheses   string  optional  

How many prostheses of type shoulder does clinician make per year. Example: 1-5

zeus_components_description   string  optional  

Description which components would clinician like to use with a Zeus hand. MINIMUM:STRING_LENGTH:10. Example: Et veritatis ut non alias debitis.

contact_name   string  optional  

Contact information: full name. This field is required when wants_demo_hand is true. Example: Violet

company_name   string  optional  

Contact information: company name. This field is required when wants_demo_hand is true. Example: Schiller, Bradtke and Krajcik

street   string  optional  

Contact information: street. This field is required when wants_demo_hand is true. Example: 754 Stokes Forge Suite 343

city   string  optional  

Contact information: city/state. This field is required when wants_demo_hand is true. Example: New Henderson

postal_code   string  optional  

Contact information: postal code. This field is required when wants_demo_hand is true. Example: 74542

email   string  optional  

Contact information: email. This field is required when wants_demo_hand is true. MUST_BE_EMAIL. Example: bstokes@konopelski.com

phone   string  optional  

Contact information: phone. This field is required when wants_demo_hand is true. Example: 231.606.4481

phone_country   string  optional  

Contact information: phone country. This field is required when wants_demo_hand is true. SIZE:STRING_LENGTH:2. Example: IQ

device_side   string  optional  

The side of the hand. This field is required when wants_demo_hand is true. Example: L

Must be one of:
  • L
  • R

Response

Response Fields

id   integer   

Survey ID.

user_id   integer   

Associated user ID.

cpo_number   string   

CPO number.

country   string   

Country code.

medical_training   string   

Medical training level.

myo_exp_zeus   string   

Zeus myo experience.

myo_exp_covvi   string   

Covvi myo experience.

myo_exp_fillauer   string   

Fillauer myo experience.

myo_exp_ossur   string   

Ossur myo experience.

myo_exp_ottobock   string   

Ottobock myo experience.

myo_exp_steeper   string   

Steeper myo experience.

myo_exp_taska   string   

Taska myo experience.

myo_exp_vincent   string   

Vincent myo experience.

myo_exp_pattern_recognition   string   

Pattern recognition myo experience.

myo_exp_other   string   

Other myo experience.

has_demo_hand_access   boolean   

Whether the user has demo hand access.

wants_demo_hand   boolean   

Whether the user wants a demo hand.

partial_hand_protheses   string   

Partial hand prostheses experience.

below_elbow_protheses_single_action   string   

Below elbow single action prostheses experience.

below_elbow_protheses_multi_action   string   

Below elbow multi-action prostheses experience.

above_elbow_protheses   string   

Above elbow prostheses experience.

shoulder_protheses   string   

Shoulder prostheses experience.

zeus_components_description   string   

Zeus components description.

contact_name   string   

Contact first name.

contact_surname   string   

Contact last name.

company_name   string   

Company name.

street   string   

Street address.

city   string   

City.

postal_code   string   

Postal code.

email   string   

Contact email.

phone   string   

Contact phone.

phone_country   string   

Phone country code.

device_side   string   

Device side.

Must be one of:
  • L
  • R
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Activation codes

API endpoints for activation codes

Get activation codes

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/activation-codes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/activation-codes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "code": "Y73PCM",
            "created_by": 41,
            "used_by": 42,
            "used_at": null,
            "active": 0,
            "created_at": "2026-08-28T14:44:40.000000Z",
            "updated_at": "2026-08-28T14:44:40.000000Z"
        },
        {
            "id": 2,
            "code": "M38VQU",
            "created_by": 43,
            "used_by": 44,
            "used_at": null,
            "active": 0,
            "created_at": "2026-08-28T14:44:40.000000Z",
            "updated_at": "2026-08-28T14:44:40.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage activation codes",
    "code": "ACTIVATION_CODE:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/activation-codes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Activation code ID.

code   string   

Activation code value.

created_by   integer   

ID of the user who created this code.

used_by   integer   

ID of the user who used this code.

used_at   string   

Timestamp when the code was used.

active   boolean   

Whether the code is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

creator   object   

User who created this code.

user   object   

User who used this code.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get active activation codes

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/activation-codes/active" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/activation-codes/active"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 3,
            "code": "KJT45P",
            "created_by": 45,
            "used_by": 46,
            "used_at": null,
            "active": 1,
            "created_at": "2026-08-28T14:44:41.000000Z",
            "updated_at": "2026-08-28T14:44:41.000000Z"
        },
        {
            "id": 4,
            "code": "N4CPYL",
            "created_by": 47,
            "used_by": 48,
            "used_at": null,
            "active": 1,
            "created_at": "2026-08-28T14:44:42.000000Z",
            "updated_at": "2026-08-28T14:44:42.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage activation codes",
    "code": "ACTIVATION_CODE:ACTIVE:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/activation-codes/active

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

items   object   
id   integer   

Activation code ID.

code   string   

Activation code value.

created_by   integer   

ID of the user who created this code.

used_by   integer   

ID of the user who used this code.

used_at   string   

Timestamp when the code was used.

active   boolean   

Whether the code is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

creator   object   

User who created this code.

user   object   

User who used this code.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Find activation code

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/activation-codes/find/autem" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/activation-codes/find/autem"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 5,
    "code": "UUDYJA",
    "created_by": null,
    "used_by": null,
    "used_at": null,
    "active": 0,
    "created_at": "2026-08-28T14:44:42.000000Z",
    "updated_at": "2026-08-28T14:44:42.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage activation codes",
    "code": "ACTIVATION_CODE:FIND:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Activation code not found):


{
    "message": "Activation code not found",
    "code": "ACTIVATION_CODE:FIND:CODE_NOT_FOUND"
}
 

Request   

GET api/activation-codes/find/{code}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

code   string   

Activation code (not ID). Example: autem

Response

Response Fields

id   integer   

Activation code ID.

code   string   

Activation code value.

created_by   integer   

ID of the user who created this code.

used_by   integer   

ID of the user who used this code.

used_at   string   

Timestamp when the code was used.

active   boolean   

Whether the code is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

creator   object   

User who created this code.

user   object   

User who used this code.

Create activation code

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/activation-codes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/activation-codes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "id": 6,
    "code": "93ZYL4",
    "created_by": null,
    "used_by": null,
    "used_at": null,
    "active": 0,
    "created_at": "2026-08-28T14:44:42.000000Z",
    "updated_at": "2026-08-28T14:44:42.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage activation codes",
    "code": "ACTIVATION_CODE:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Server error):


{
    "message": "Server error: activation code not created",
    "code": "ACTIVATION_CODE:CREATE:SERVER_ERROR"
}
 

Request   

POST api/activation-codes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

id   integer   

Activation code ID.

code   string   

Activation code value.

created_by   integer   

ID of the user who created this code.

used_by   integer   

ID of the user who used this code.

used_at   string   

Timestamp when the code was used.

active   boolean   

Whether the code is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

creator   object   

User who created this code.

user   object   

User who used this code.

Create activation code (multi-region)

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/activation-codes/9" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/activation-codes/9"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "id": 7,
    "code": "69GHQE",
    "created_by": null,
    "used_by": null,
    "used_at": null,
    "active": 0,
    "created_at": "2026-08-28T14:44:42.000000Z",
    "updated_at": "2026-08-28T14:44:42.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage activation codes",
    "code": "ACTIVATION_CODE:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/activation-codes/{code}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

code   integer   

Example: 9

Response

Response Fields

id   integer   

Activation code ID.

code   string   

Activation code value.

created_by   integer   

ID of the user who created this code.

used_by   integer   

ID of the user who used this code.

used_at   string   

Timestamp when the code was used.

active   boolean   

Whether the code is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

creator   object   

User who created this code.

user   object   

User who used this code.

Deactivate activation code

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/activation-codes/3" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/activation-codes/3"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202):


{
    "id": 8,
    "code": "F9PH59",
    "created_by": null,
    "used_by": null,
    "used_at": null,
    "active": 0,
    "created_at": "2026-08-28T14:44:42.000000Z",
    "updated_at": "2026-08-28T14:44:42.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage activation codes",
    "code": "ACTIVATION_CODE:DEACTIVATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Activation code is not active):


{
    "message": "Cannot deactivate: code is not active",
    "code": "ACTIVATION_CODE:DEACTIVATE:CODE_NOT_ACTIVE"
}
 

Example response (404, Activation code not found):


{
    "message": "Activation code not found",
    "code": "ACTIVATION_CODE:DEACTIVATE:CODE_NOT_FOUND"
}
 

Example response (500, Server error):


{
    "message": "Server error: activation code not deactivated",
    "code": "ACTIVATION_CODE:DEACTIVATE:SERVER_ERROR"
}
 

Request   

DELETE api/activation-codes/{codeId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

codeId   integer   

Activation code ID. Example: 3

Response

Response Fields

id   integer   

Activation code ID.

code   string   

Activation code value.

created_by   integer   

ID of the user who created this code.

used_by   integer   

ID of the user who used this code.

used_at   string   

Timestamp when the code was used.

active   boolean   

Whether the code is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

creator   object   

User who created this code.

user   object   

User who used this code.

Authentication

API endpoints for managing authentication

Login user

Example request:
curl --request POST \
    "http://localhost:8000/api/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"test@example.com\",
    \"password\": \"secretpassword\"
}"
const url = new URL(
    "http://localhost:8000/api/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "test@example.com",
    "password": "secretpassword"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "access_token": "7|x7de9EgE0xiBNLgHU91DHvhj85HVgTG1bekCssIA",
    "expires": "2021-10-25 17:05:25"
}
 

Example response (403, Too many attempts):


{
    "message": "Login: too many attempts",
    "code": "GENERAL:TOO_MANY_ATTEMPTS"
}
 

Example response (422, Invalid credentials):


{
    "message": "The given data was invalid.",
    "errors": {
        "email": [
            "Given credentials not found"
        ]
    },
    "code": "AUTH:LOGIN:INVALID_CREDENTIALS"
}
 

Request   

POST api/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

User email. MUST_BE_EMAIL. Example: test@example.com

password   string   

User password. Example: secretpassword

Register user

Example request:
curl --request POST \
    "http://localhost:8000/api/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"region\": \"us\",
    \"name\": \"Tom Smith\",
    \"email\": \"name@domain.com\",
    \"password\": \"Test123!\",
    \"phone\": \"520.789.5600\",
    \"phone_country\": \"US\",
    \"language\": \"en\",
    \"clinic_name\": \"Stark Ltd\",
    \"clinic_location\": \"South Zorafurt\",
    \"address1\": \"8814 Amari Summit\",
    \"address2\": \"Moenfurt, NE 53883\",
    \"mfa_enabled\": true,
    \"mfa_method\": \"email\",
    \"activation_code\": \"1A2B3C\"
}"
const url = new URL(
    "http://localhost:8000/api/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "region": "us",
    "name": "Tom Smith",
    "email": "name@domain.com",
    "password": "Test123!",
    "phone": "520.789.5600",
    "phone_country": "US",
    "language": "en",
    "clinic_name": "Stark Ltd",
    "clinic_location": "South Zorafurt",
    "address1": "8814 Amari Summit",
    "address2": "Moenfurt, NE 53883",
    "mfa_enabled": true,
    "mfa_method": "email",
    "activation_code": "1A2B3C"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 2,
    "mrn": "SJZJPZNV1787928259",
    "name": "Dr. Talon Wilkinson Jr.",
    "email": "1787928259kheller@example.com",
    "language": "en",
    "phone": "+1-808-901-2912",
    "phone_country": "GW",
    "phone_verified_at": null,
    "address1": "1517 Spencer Corner Suite 902",
    "address2": "Laceyton, CO 68396",
    "postal_code": "42779",
    "city": "Blanda-Nikolaus",
    "country": "PL",
    "clinic_name": "Port Kyler",
    "clinic_location": "8864 Terrell Junction Apt. 814\nIsactown, WY 90915",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:19.000000Z",
    "updated_at": "2026-08-28T14:44:19.000000Z",
    "invitation_status": "accepted",
    "acadle_invitation_status": null,
    "roles": [
        {
            "id": 3,
            "name": "ClinicAdmin"
        }
    ]
}
 

Example response (403, Too many attempts):


{
    "message": "Register: too many attempts",
    "code": "GENERAL:TOO_MANY_ATTEMPTS"
}
 

Example response (403, E-mail in use (in another region)):


{
    "message": "E-mail address already in use (in another region)",
    "code": "AUTH:REGISTER:EMAIL_IN_USE"
}
 

Example response (403, Activation code is incorrect):


{
    "message": "Activation code is incorrect",
    "code": "AUTH:REGISTER:INCORRECT_CODE"
}
 

Example response (500, Server error):


{
    "message": "Server error: user not created",
    "code": "AUTH:REGISTER:SERVER_ERROR"
}
 

Request   

POST api/register

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

region   string   

User region. Example: us

name   string   

User name. Example: Tom Smith

email   string   

User e-mail address. MUST_BE_EMAIL. Example: name@domain.com

password   string   

User password. Example: Test123!

phone   string   

User phone number. Example: 520.789.5600

phone_country   string   

Phone number's country (2 characters). SIZE:STRING_LENGTH:2. Example: US

language   string   

User language. Example: en

clinic_name   string  optional  

Clinic name. Example: Stark Ltd

clinic_location   string  optional  

Clinic location. Example: South Zorafurt

address1   string  optional  

Address line 1. Example: 8814 Amari Summit

address2   string  optional  

Address line 2. Example: Moenfurt, NE 53883

mfa_enabled   boolean  optional  

MFA enabled. Example: true

mfa_method   string  optional  

MFA method. Example: email

Must be one of:
  • email
  • sms
activation_code   string   

Activation code. SIZE:STRING_LENGTH:6. Example: 1A2B3C

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Register mobile user

Example request:
curl --request POST \
    "http://localhost:8000/api/mobile/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"region\": \"us\",
    \"name\": \"Tom Smith\",
    \"email\": \"name@domain.com\",
    \"password\": \"Test123!\",
    \"language\": \"en\",
    \"terms_accepted\": true
}"
const url = new URL(
    "http://localhost:8000/api/mobile/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "region": "us",
    "name": "Tom Smith",
    "email": "name@domain.com",
    "password": "Test123!",
    "language": "en",
    "terms_accepted": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "mrn": "RBBETD6X1787928259",
    "name": "Magdalena Pagac DVM",
    "email": "1787928259sibyl25@example.org",
    "language": "en",
    "phone": "317-483-7698",
    "phone_country": "BQ",
    "phone_verified_at": null,
    "address1": "390 Bode Trail Apt. 045",
    "address2": "Danielaview, DC 25338-3442",
    "postal_code": "07530",
    "city": "Jerde Group",
    "country": "RO",
    "clinic_name": "Jakaylamouth",
    "clinic_location": "423 Koepp Pike\nMcLaughlinport, CT 15220",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:19.000000Z",
    "updated_at": "2026-08-28T14:44:19.000000Z",
    "invitation_status": "accepted",
    "acadle_invitation_status": null,
    "roles": [
        {
            "id": 3,
            "name": "ClinicAdmin"
        }
    ]
}
 

Example response (403, Too many attempts):


{
    "message": "Register: too many attempts",
    "code": "GENERAL:TOO_MANY_ATTEMPTS"
}
 

Example response (403, E-mail in use (in another region)):


{
    "message": "E-mail address already in use (in another region)",
    "code": "AUTH:MOBILE_REGISTER:EMAIL_IN_USE"
}
 

Example response (500, Server error):


{
    "message": "Server error: user not created",
    "code": "AUTH:MOBILE_REGISTER:SERVER_ERROR"
}
 

Request   

POST api/mobile/register

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

region   string   

User region. Example: us

name   string   

User name. Example: Tom Smith

email   string   

User e-mail address. MUST_BE_EMAIL. Example: name@domain.com

password   string   

User password. Example: Test123!

language   string  optional  

User language. Example: en

terms_accepted   boolean   

User accepted terms. Must be accepted. Example: true

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Request password reset

Request sending password reset email message with token that allows to change the password

Example request:
curl --request POST \
    "http://localhost:8000/api/password/reset" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"test@example.com\"
}"
const url = new URL(
    "http://localhost:8000/api/password/reset"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "test@example.com"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "code": "passwords.sent",
    "message": "Reset password link successfully sent"
}
 

Example response (400, Throttled request):


{
    "code": "passwords.throttled",
    "message": "You have requested password reset recently"
}
 

Request   

POST api/password/reset

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

User email. MUST_BE_EMAIL. Example: test@example.com

Verify password reset token

Check if token is valid before using it to reset password

Example request:
curl --request POST \
    "http://localhost:8000/api/password/reset/verify" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"158bed12188492617e43ecfcca43f5990b3f5f0383b5083247389482b70af019\",
    \"email\": \"test@example.com\"
}"
const url = new URL(
    "http://localhost:8000/api/password/reset/verify"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "158bed12188492617e43ecfcca43f5990b3f5f0383b5083247389482b70af019",
    "email": "test@example.com"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Valid token",
    "code": "AUTH:PASSWORD_RESET_VERIFY:VALID_TOKEN"
}
 

Example response (400, Invalid token):


{
    "message": "Invalid token",
    "code": "AUTH:PASSWORD_RESET_VERIFY:INVALID_TOKEN"
}
 

Request   

POST api/password/reset/verify

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

token   string   

Password reset token. Example: 158bed12188492617e43ecfcca43f5990b3f5f0383b5083247389482b70af019

email   string   

User email. MUST_BE_EMAIL. Example: test@example.com

Change password with token

Change user password using password reset token sent to email address

Example request:
curl --request POST \
    "http://localhost:8000/api/password/reset/change" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"158bed12188492617e43ecfcca43f5990b3f5f0383b5083247389482b70af019\",
    \"email\": \"test@example.com\",
    \"password\": \"secretpassword\"
}"
const url = new URL(
    "http://localhost:8000/api/password/reset/change"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "158bed12188492617e43ecfcca43f5990b3f5f0383b5083247389482b70af019",
    "email": "test@example.com",
    "password": "secretpassword"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "code": "passwords.reset",
    "message": "Password changed successfully"
}
 

Example response (400, Invalid token):


{
    "code": "passwords.token",
    "message": "Invalid token"
}
 

Example response (404, User not found):


{
    "code": "passwords.user",
    "message": "User not found"
}
 

Request   

POST api/password/reset/change

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

token   string   

Password reset token. Example: 158bed12188492617e43ecfcca43f5990b3f5f0383b5083247389482b70af019

email   string   

User email. MUST_BE_EMAIL. Example: test@example.com

password   string   

User new password. Example: secretpassword

Logout current device

requires authentication

Logout and delete current access token

Example request:
curl --request POST \
    "http://localhost:8000/api/logout" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/logout"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202):


[]
 

Request   

POST api/logout

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Logout everywhere

requires authentication

Logout and delete all access tokens owned by account

Example request:
curl --request POST \
    "http://localhost:8000/api/logout/everywhere" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/logout/everywhere"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202):


[]
 

Request   

POST api/logout/everywhere

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Refresh access token

requires authentication

Refresh the new access token from the expiring token

Example request:
curl --request POST \
    "http://localhost:8000/api/token/refresh" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/token/refresh"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "access_token": "7|x7de9EgE0xiBNLgHU91DHvhj85HVgTG1bekCssIA",
    "expires": "2021-10-25 17:05:25"
}
 

Request   

POST api/token/refresh

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Check MFA status

requires authentication

Check any of available MFA methods. Supported methods: email, sms, otp.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/mfa/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/mfa/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "enabled": 1,
    "method": "email",
    "phone": 1,
    "otp": 1
}
 

Request   

GET api/mfa/status

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

enabled   string   

Determines if user enabled MFA

method   string   

Preferred MFA method

phone   string   

Determines if user has verified phone number and sms channel could be used

otp   string   

Determines if user has setup OTP with authenticator application

Use recovery code

requires authentication

Use generated recovery code in order to access account in case when other MFA methods couldn't be used. This method only checks if code is valid, implement account access scenario on your own. Sent code is removed and couldn't be used anymore. If remaining_codes counter equals zero, generate a new set.

Example request:
curl --request POST \
    "http://localhost:8000/api/mfa/recovery-code" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"ZZASRM6S\"
}"
const url = new URL(
    "http://localhost:8000/api/mfa/recovery-code"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "code": "ZZASRM6S"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "access_token": "7|x7de9EgE0xiBNLgHU91DHvhj85HVgTG1bekCssIA",
    "expires": "2021-10-25 17:05:25",
    "remaining_codes": 9
}
 

Example response (401, Invalid code):


{
    "message": "Invalid code",
    "code": "AUTH:USE_RECOVERY_CODE:INVALID_CODE"
}
 

Request   

POST api/mfa/recovery-code

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

code   string   

Recovery code. Example: ZZASRM6S

Send MFA code

requires authentication

Send multi-factor authentication code via selected channel. Code is valid for 15 minutes.

Example request:
curl --request POST \
    "http://localhost:8000/api/mfa/send" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"channel\": \"email\"
}"
const url = new URL(
    "http://localhost:8000/api/mfa/send"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "channel": "email"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Code sent",
    "code": "AUTH:SEND_MFA:SENT"
}
 

Example response (400, Channel SMS, phone number not verified):


{
    "message": "Phone number is not verified",
    "code": "AUTH:SEND_MFA:PHONE_NUMBER_NOT_VERIFIED"
}
 

Example response (500, Channel SMS, provider problem):


{
    "message": "Code sending failed",
    "code": "AUTH:SEND_MFA:SERVER_ERROR"
}
 

Request   

POST api/mfa/send

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

channel   string   

Authentication channel. Example: email

Must be one of:
  • email
  • sms

Verify MFA code

requires authentication

Verify multi-factor code obtained from selected channel.

Example request:
curl --request POST \
    "http://localhost:8000/api/mfa/verify" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"channel\": \"email\",
    \"remember_mfa_session\": true,
    \"code\": \"445566\",
    \"machine_key\": \"35282880-244a-4328-9435-2aaf432f3619\"
}"
const url = new URL(
    "http://localhost:8000/api/mfa/verify"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "channel": "email",
    "remember_mfa_session": true,
    "code": "445566",
    "machine_key": "35282880-244a-4328-9435-2aaf432f3619"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK, token auth):


{
    "access_token": "7|x7de9EgE0xiBNLgHU91DHvhj85HVgTG1bekCssIA",
    "expires": "2021-10-25 17:05:25",
    "mfa_token": "fd63e55c-2a67-44b2-95b9-a771778e9971",
    "mfa_expires": "2023-04-25 21:00:00"
}
 

Example response (200, OK, cookie auth):


{
    "message": "OK",
    "mfa_token": "fd63e55c-2a67-44b2-95b9-a771778e9971",
    "mfa_expires": "2023-04-25 21:00:00"
}
 

Example response (401, Invalid code):


{
    "message": "Invalid code",
    "code": "AUTH:VERIFY_MFA:INVALID_CODE"
}
 

Request   

POST api/mfa/verify

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

channel   string   

Authentication channel. Example: email

Must be one of:
  • email
  • sms
remember_mfa_session   boolean  optional  

Do not require MFA code. By default, for 30 days. Example: true

code   string   

Authentication code. Example: 445566

machine_key   string  optional  

Unique machine identifier. Example: 35282880-244a-4328-9435-2aaf432f3619

Verify phone number

requires authentication

Verify phone number with text message

Example request:
curl --request POST \
    "http://localhost:8000/api/mfa/phone/verify" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"445566\"
}"
const url = new URL(
    "http://localhost:8000/api/mfa/phone/verify"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "code": "445566"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Phone number verified",
    "code": "AUTH:VERIFY_PHONE:VERIFIED"
}
 

Example response (401, Invalid code):


{
    "message": "Invalid code",
    "code": "AUTH:VERIFY_PHONE:INVALID_CODE"
}
 

Request   

POST api/mfa/phone/verify

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

code   string   

Verification code. Example: 445566

Verify MFA OTP

requires authentication

Verify one-time password (OTP). If verification is successful, new access token with additional permissions will be generated.

Example request:
curl --request POST \
    "http://localhost:8000/api/mfa/otp/verify" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"445566\"
}"
const url = new URL(
    "http://localhost:8000/api/mfa/otp/verify"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "code": "445566"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK, token auth):


{
    "access_token": "7|x7de9EgE0xiBNLgHU91DHvhj85HVgTG1bekCssIA",
    "expires": "2021-10-25 17:05:25"
}
 

Example response (200, OK, cookie auth):


{
    "message": "OK"
}
 

Example response (401, Invalid code):


{
    "message": "Invalid code",
    "code": "AUTH:VERIFY_MFA_OTP:INVALID_CODE"
}
 

Request   

POST api/mfa/otp/verify

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

code   string   

One-time password from app. Example: 445566

Change password

requires authentication

Change authenticated user password

Example request:
curl --request POST \
    "http://localhost:8000/api/password/change" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"old_password\": \"oldpassword\",
    \"new_password\": \"newpassword\"
}"
const url = new URL(
    "http://localhost:8000/api/password/change"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "old_password": "oldpassword",
    "new_password": "newpassword"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Password changed successfully",
    "code": "AUTH:PASSWORD_CHANGE:CHANGED"
}
 

Example response (422, Invalid old password):


{
    "message": "The given data was invalid.",
    "errors": {
        "old_password": [
            "Old password is incorrect"
        ]
    },
    "code": "AUTH:PASSWORD_CHANGE:INVALID_OLD_PASSWORD"
}
 

Request   

POST api/password/change

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

old_password   string   

User old password. Example: oldpassword

new_password   string   

User new password. Example: newpassword

Set MFA status

requires authentication

Set MFA status and preferred method. Supported methods: email, sms, otp.

Example request:
curl --request POST \
    "http://localhost:8000/api/mfa/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"enabled\": true,
    \"method\": \"email\"
}"
const url = new URL(
    "http://localhost:8000/api/mfa/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "enabled": true,
    "method": "email"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "enabled": 1,
    "method": "email",
    "phone": 1,
    "otp": 1
}
 

Request   

POST api/mfa/status

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

enabled   boolean  optional  

Use MFA after login. Example: true

method   string  optional  

Preferred MFA method. Example: email

Must be one of:
  • email
  • sms
  • otp

Generate recovery codes

requires authentication

Generate recovery codes for authenticated user and revoke old ones. User could use these codes in case when couldn't use any of MFA methods (e.g. lost device with OTP app or device is not accessible right now).

Example request:
curl --request GET \
    --get "http://localhost:8000/api/mfa/recovery-codes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/mfa/recovery-codes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "recovery_codes": [
        "A3H8PF8P",
        "IZ8CGK2H",
        "DTYENLLT",
        "0RKEZFST",
        "9MPW91BS",
        "S38Z6HS6",
        "UF5ATOKP",
        "HSZXP8EL",
        "ZZASRM6S",
        "07GR4CD1"
    ]
}
 

Request   

GET api/mfa/recovery-codes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Setup MFA OTP

requires authentication

Setup multi-factor authentication with one-time passwords (OTP). Use secret on your own or generate QR code with given url. Then user could scan QR code with authentication app (e.g. Microsoft Authenticator, Authy). If secret has been already generated, new secret will override existing one and revoke previous setup.

Example request:
curl --request POST \
    "http://localhost:8000/api/mfa/otp/setup" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/mfa/otp/setup"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "secret": "VXGJ6JMIAWWDFXYDLKO3VG3RSGTS34BGMVTGQIEHMVVMJ2JBGCSNPQZDV4B6OMDIGI4UKCVCVKVMA7EASLHZEJWW4ZNKLAUTSZYN7EA",
    "url": "otpauth://totp/AetherDigitalTherapy?issuer=AetherDigitalTherapy&secret=VXGJ6JMIAWWDFXYDLKO3VG3RSGTS34BGMVTGQIEHMVVMJ2JBGCSNPQZDV4B6OMDIGI4UKCVCVKVMA7EASLHZEJWW4ZNKLAUTSZYN7EA",
    "recovery_codes": [
        "A3H8PF8P",
        "IZ8CGK2H",
        "DTYENLLT",
        "0RKEZFST",
        "9MPW91BS",
        "S38Z6HS6",
        "UF5ATOKP",
        "HSZXP8EL",
        "ZZASRM6S",
        "07GR4CD1"
    ]
}
 

Request   

POST api/mfa/otp/setup

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Login user (SPA)

Authorize user and create cookie-based session. Hit GET /sanctum/csrf-cookie endpoint to retrieve XSRF-TOKEN cookie. Then attach X-XSRF-TOKEN HTTP header to any request to authorize. See more: Laravel Sanctum documentation

Example request:
curl --request POST \
    "http://localhost:8000/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"test@example.com\",
    \"password\": \"secretpassword\"
}"
const url = new URL(
    "http://localhost:8000/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "test@example.com",
    "password": "secretpassword"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 332,
    "mrn": "9CCCB5BG1787928409",
    "name": "Viola Turner",
    "email": "1787928409rwindler@example.net",
    "language": "en",
    "phone": "+1 (520) 634-2445",
    "phone_country": "NR",
    "phone_verified_at": null,
    "address1": "2982 Schuyler Fort",
    "address2": "Wilburnfort, MN 51589",
    "postal_code": "21476",
    "city": "Hill and Sons",
    "country": "NO",
    "clinic_name": "Lake Hosea",
    "clinic_location": "17983 Gleichner Parks\nManuelchester, FL 44441-2139",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:46:49.000000Z",
    "updated_at": "2026-08-28T14:46:49.000000Z",
    "invitation_status": null,
    "acadle_invitation_status": null,
    "roles": []
}
 

Example response (403, Too many attempts):


{
    "message": "Login: too many attempts",
    "code": "GENERAL:TOO_MANY_ATTEMPTS"
}
 

Example response (422, Invalid credentials):


{
    "message": "The given data was invalid.",
    "errors": {
        "email": [
            "Given credentials not found"
        ]
    },
    "code": "AUTH:LOGIN_COOKIE:INVALID_CREDENTIALS"
}
 

Request   

POST login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

User email. MUST_BE_EMAIL. Example: test@example.com

password   string   

User password. Example: secretpassword

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Chat

API endpoints for chat management

Authorize a user

requires authentication

This method authorizes a user using Ably service. Endpoint used only by Ably SDK

Check more details on https://ably.com/docs/auth/token

Example request:
curl --request GET \
    --get "http://localhost:8000/api/chat/authorize-user" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/authorize-user"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "api.responses.general.unauthenticated",
    "code": "GENERAL:UNAUTHENTICATED"
}
 

Request   

GET api/chat/authorize-user

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

List all chat rooms

requires authentication

This method retrieves all chat rooms. Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/chat/rooms" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/rooms"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "owner": null,
            "patient_id": null,
            "encryption_key": "udnISN0f97/g4BD/nYhWgpbF6lwRoPRVnDeuQX+HMLE=",
            "name": "eius",
            "friendly_name": "eius",
            "created_at": "2026-08-28T14:46:29.000000Z",
            "deleted_at": null,
            "updated_at": "2026-08-28T14:46:29.000000Z"
        },
        {
            "id": 2,
            "owner": null,
            "patient_id": null,
            "encryption_key": "B0OHZYaqmRMj1leBbuaKepMs86uSMd+6r8hSoDZN/mY=",
            "name": "tempore",
            "friendly_name": "tempore",
            "created_at": "2026-08-28T14:46:29.000000Z",
            "deleted_at": null,
            "updated_at": "2026-08-28T14:46:29.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list chat room",
    "code": "CHAT:LIST_ROOMS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/chat/rooms

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

Chat room ID.

name   string   

Chat room name (channel SID).

friendly_name   string   

Human-readable chat room name.

owner   integer   

User ID of the room owner.

patient_id   integer   

Associated patient user ID.

encryption_key   string   

Encryption key for the chat room.

deleted_at   string   

Soft delete timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

messages   object[]   

Chat room messages.

last_message   object   

Last message in the chat room.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Retrieve a chat room

requires authentication

This method retrieves a single chat room identified by roomId. Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/chat/room/molestias" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/room/molestias"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 3,
    "owner": null,
    "patient_id": null,
    "encryption_key": "JrqDpKWKA30GFmxCoou6mvc7vIzA2Q++9pGn8UuLax0=",
    "name": "voluptate",
    "friendly_name": "voluptate",
    "created_at": "2026-08-28T14:46:29.000000Z",
    "deleted_at": null,
    "updated_at": "2026-08-28T14:46:29.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view chat room",
    "code": "CHAT:GET_ROOM:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Chat room not found):


{
    "message": "Chat room not found",
    "code": "CHAT:GET_ROOM:ROOM_NOT_FOUND"
}
 

Request   

GET api/chat/room/{roomName}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

roomName   string   

Example: molestias

Response

Response Fields

id   integer   

Chat room ID.

name   string   

Chat room name (channel SID).

friendly_name   string   

Human-readable chat room name.

owner   integer   

User ID of the room owner.

patient_id   integer   

Associated patient user ID.

encryption_key   string   

Encryption key for the chat room.

deleted_at   string   

Soft delete timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

messages   object[]   

Chat room messages.

last_message   object   

Last message in the chat room.

Create a new chat room

requires authentication

This method creates a new chat room using the authenticated user's ID, a name for the room, and a list of participants.

    The list of participants should contain the IDs of the users who will be participants in the room.
Example request:
curl --request POST \
    "http://localhost:8000/api/chat/room" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"owner\": 1,
    \"name\": \"my-chat\",
    \"patient_id\": 1,
    \"participants\": [
        \"1\"
    ]
}"
const url = new URL(
    "http://localhost:8000/api/chat/room"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "owner": 1,
    "name": "my-chat",
    "patient_id": 1,
    "participants": [
        "1"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "owner": null,
    "patient_id": null,
    "encryption_key": "AapJTlHqUA6Uz+zecXZAb4UibiXsuqbrP2s61x24uiY=",
    "name": "distinctio",
    "friendly_name": "distinctio",
    "created_at": "2026-08-28T14:46:29.000000Z",
    "deleted_at": null,
    "updated_at": "2026-08-28T14:46:29.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view chat room",
    "code": "CHAT:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/chat/room

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

owner   string   

The id of an existing record in the App\Models\User table. Example: 1

name   string   

Name of chat room. MAXIMUM:STRING_LENGTH:255. Example: my-chat

patient_id   string   

The id of an existing record in the App\Models\User table. Example: 1

participants   string[]  optional  

Chat room participant. The id of an existing record in the App\Models\User table.

Response

Response Fields

id   integer   

Chat room ID.

name   string   

Chat room name (channel SID).

friendly_name   string   

Human-readable chat room name.

owner   integer   

User ID of the room owner.

patient_id   integer   

Associated patient user ID.

encryption_key   string   

Encryption key for the chat room.

deleted_at   string   

Soft delete timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

messages   object[]   

Chat room messages.

last_message   object   

Last message in the chat room.

Update an existing chat room

requires authentication

This method updates an existing chat room using the authenticated user's ID, a new name for the room, and a list of participants.

    The list of participants should contain the IDs of the users who will be participants in the room.
Example request:
curl --request PUT \
    "http://localhost:8000/api/chat/room/reiciendis" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"owner\": 1,
    \"name\": \"my-chat\",
    \"participants\": [
        \"1\"
    ],
    \"participants_del\": [
        \"1\"
    ]
}"
const url = new URL(
    "http://localhost:8000/api/chat/room/reiciendis"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "owner": 1,
    "name": "my-chat",
    "participants": [
        "1"
    ],
    "participants_del": [
        "1"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 5,
    "owner": null,
    "patient_id": null,
    "encryption_key": "EyPZ5W3k9xvLtxg28IKgfkEsrT/XlSaeDZp6pU2xJvQ=",
    "name": "soluta",
    "friendly_name": "soluta",
    "created_at": "2026-08-28T14:46:29.000000Z",
    "deleted_at": null,
    "updated_at": "2026-08-28T14:46:29.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update chat room",
    "code": "CHAT:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Chat room not found):


{
    "message": "Chat room not found",
    "code": "CHAT:UPDATE:ROOM_NOT_FOUND"
}
 

Request   

PUT api/chat/room/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the room. Example: reiciendis

Body Parameters

owner   string  optional  

The id of an existing record in the App\Models\User table. Example: 1

name   string  optional  

Name of chat room. MAXIMUM:STRING_LENGTH:255. Example: my-chat

participants   string[]  optional  

Chat room participant. The id of an existing record in the App\Models\User table.

participants_del   string[]  optional  

Chat room participant to be deleted. The id of an existing record in the App\Models\User table.

Response

Response Fields

id   integer   

Chat room ID.

name   string   

Chat room name (channel SID).

friendly_name   string   

Human-readable chat room name.

owner   integer   

User ID of the room owner.

patient_id   integer   

Associated patient user ID.

encryption_key   string   

Encryption key for the chat room.

deleted_at   string   

Soft delete timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

messages   object[]   

Chat room messages.

last_message   object   

Last message in the chat room.

Chat room archives

requires authentication

Get archived messages for room Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/chat/room/dolorem/archive" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/room/dolorem/archive"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "paginator": {
        "total": 1,
        "count": 1,
        "perpage": 5,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": "651a8e4868d5dc27c0000cc2",
            "channel": "chat.messages.room.44.56bf7d37-4ed6-4db4-947b-d68a1066677c.communication-channel",
            "clientId": "95",
            "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
            "data": "{\"encryptedMessage\":{\"message\":\"z6z1zNihCjlEePltz+BG8g==\",\"initialVector\":\"7376fcbf0b32fbdcd5c5b62c087b7600\"},\"user\":{\"id\":95,\"name\":\"Bartosz Druga firmaa\",\"email\":\"bartosz+drugafirma@refericon.pl\",\"image\":\"https://aether-dev-bucket.s3.amazonaws.com/users/7T6im01PAj4cahksWHllrL7se2SQ9buquIjGGFtp.jpg\",\"permissions\":[],\"roles\":[{\"id\":2,\"name\":\"Clinician\"}]},\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"recipients\":[{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"95\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"44\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"1250\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"3067\"}]}",
            "name": "message",
            "recipients": [
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": true,
                    "clientId": "95"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "44"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "1250"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "3067"
                }
            ],
            "timestamp": 1696239176715,
            "created_at": "2023-10-02 09:32:56"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view archived messages",
    "code": "CHAT:GET_ARCHIVES:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Chat room not found):


{
    "message": "Chat room not found",
    "code": "CHAT:GET_ARCHIVES:ROOM_NOT_FOUND"
}
 

Request   

GET api/chat/room/{id}/archive

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the room. Example: dolorem

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: author).

sortby   string  optional  

Sort by field (available: timestamp). Default: timestamp, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Unread messages

requires authentication

Get unread messaged for chat room. Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/chat/messages/unread?room=20" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/messages/unread"
);

const params = {
    "room": "20",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "paginator": {
        "total": 1,
        "count": 1,
        "perpage": 5,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": "651a8e4868d5dc27c0000cc2",
            "channel": "chat.messages.room.44.56bf7d37-4ed6-4db4-947b-d68a1066677c.communication-channel",
            "clientId": "95",
            "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
            "data": "{\"encryptedMessage\":{\"message\":\"z6z1zNihCjlEePltz+BG8g==\",\"initialVector\":\"7376fcbf0b32fbdcd5c5b62c087b7600\"},\"user\":{\"id\":95,\"name\":\"Bartosz Druga firmaa\",\"email\":\"bartosz+drugafirma@refericon.pl\",\"image\":\"https://aether-dev-bucket.s3.amazonaws.com/users/7T6im01PAj4cahksWHllrL7se2SQ9buquIjGGFtp.jpg\",\"permissions\":[],\"roles\":[{\"id\":2,\"name\":\"Clinician\"}]},\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"recipients\":[{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"95\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"44\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"1250\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"3067\"}]}",
            "name": "message",
            "recipients": [
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": true,
                    "clientId": "95"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "44"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "1250"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "3067"
                }
            ],
            "timestamp": 1696239176715,
            "created_at": "2023-10-02 09:32:56"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view unread messages list",
    "code": "CHAT:UNREAD_MESSAGES:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/chat/messages/unread

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

room   integer  optional  

Filter unread messages by room. Provide single ID (room=1), array of IDs (room[]=1&room[]=2) or comma-separated list of IDs (room=1,2). Example: 20

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Delete chat message

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/chat/messages/4?msgId=eos" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/messages/4"
);

const params = {
    "msgId": "eos",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "paginator": {
        "total": 1,
        "count": 1,
        "perpage": 5,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": "651a8e4868d5dc27c0000cc2",
            "channel": "chat.messages.room.44.56bf7d37-4ed6-4db4-947b-d68a1066677c.communication-channel",
            "clientId": "95",
            "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
            "data": "{\"encryptedMessage\":{\"message\":\"z6z1zNihCjlEePltz+BG8g==\",\"initialVector\":\"7376fcbf0b32fbdcd5c5b62c087b7600\"},\"user\":{\"id\":95,\"name\":\"Bartosz Druga firmaa\",\"email\":\"bartosz+drugafirma@refericon.pl\",\"image\":\"https://aether-dev-bucket.s3.amazonaws.com/users/7T6im01PAj4cahksWHllrL7se2SQ9buquIjGGFtp.jpg\",\"permissions\":[],\"roles\":[{\"id\":2,\"name\":\"Clinician\"}]},\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"recipients\":[{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"95\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"44\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"1250\"},{\"delivered\":true,\"msgId\":\"b8673175-01e6-4b6d-9032-226d3df20637\",\"seen\":false,\"clientId\":\"3067\"}]}",
            "name": "message",
            "recipients": [
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": true,
                    "clientId": "95"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "44"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "1250"
                },
                {
                    "delivered": true,
                    "msgId": "b8673175-01e6-4b6d-9032-226d3df20637",
                    "seen": false,
                    "clientId": "3067"
                }
            ],
            "timestamp": 1696239176715,
            "created_at": "2023-10-02 09:32:56"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete message",
    "code": "CHAT:DELETE_MESSAGE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Message not found):


{
    "message": "Chat message not found",
    "code": "CHAT:DELETE_MESSAGE:MESSAGE_NOT_FOUND"
}
 

Request   

DELETE api/chat/messages/{msgId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

msgId   integer   

Example: 4

Query Parameters

msgId   string   

Message ID. Example: eos

Get tickets list for chat room

requires authentication

Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/chat/tickets/qui?status=soluta&sender=16&recipient=7" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/tickets/qui"
);

const params = {
    "status": "soluta",
    "sender": "16",
    "recipient": "7",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 87,
            "sender_id": 293,
            "recipient_id": 294,
            "device_id": null,
            "meeting_date": "2026-08-28 14:46:30",
            "meeting_type": "online_meeting",
            "contact_email": "schinner.king@krajcik.com",
            "status": "new",
            "created_at": "2026-08-28T14:46:30.000000Z",
            "updated_at": "2026-08-28T14:46:30.000000Z",
            "sender": {
                "id": 293,
                "mrn": "TTPSYJPT1787928389",
                "name": "Prof. Sage Carroll",
                "email": "1787928389mario00@example.org",
                "language": "en",
                "phone": "+19312570378",
                "phone_country": "UY",
                "phone_verified_at": null,
                "address1": "198 Wiza Locks",
                "address2": "North Lupe, WI 98268",
                "postal_code": "36594-8136",
                "city": "Ferry, Schuster and Wuckert",
                "country": "CY",
                "clinic_name": "Port Chloefurt",
                "clinic_location": "3940 Sigrid Viaduct Apt. 693\nBeerfort, NV 07274",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:46:29.000000Z",
                "updated_at": "2026-08-28T14:46:29.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "recipient": {
                "id": 294,
                "mrn": "H6CYY29N1787928390",
                "name": "Dejah Schmitt DDS",
                "email": "1787928390adeline58@example.org",
                "language": "en",
                "phone": "+12394635571",
                "phone_country": "ST",
                "phone_verified_at": null,
                "address1": "15610 Mervin Forges",
                "address2": "North Hollie, CO 27199",
                "postal_code": "10321",
                "city": "Lynch, Pfeffer and Johns",
                "country": "GB",
                "clinic_name": "West Frederik",
                "clinic_location": "7607 Lavon Valley Suite 721\nNorth Felicita, VA 66264",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:46:30.000000Z",
                "updated_at": "2026-08-28T14:46:30.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "device": null,
            "messages": []
        },
        {
            "id": 88,
            "sender_id": 295,
            "recipient_id": 296,
            "device_id": null,
            "meeting_date": "2026-08-28 14:46:30",
            "meeting_type": "online_meeting",
            "contact_email": "kristoffer17@gmail.com",
            "status": "new",
            "created_at": "2026-08-28T14:46:31.000000Z",
            "updated_at": "2026-08-28T14:46:31.000000Z",
            "sender": {
                "id": 295,
                "mrn": "J743BPVZ1787928390",
                "name": "Mr. Morris Bartell",
                "email": "1787928390fblick@example.org",
                "language": "en",
                "phone": "+15103885338",
                "phone_country": "KI",
                "phone_verified_at": null,
                "address1": "7959 Steuber Views",
                "address2": "Runolfssonstad, IN 08560",
                "postal_code": "46515",
                "city": "Schulist-Murazik",
                "country": "LU",
                "clinic_name": "East Ilafort",
                "clinic_location": "802 Pfeffer Ferry\nShemarland, VT 08279-8332",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:46:30.000000Z",
                "updated_at": "2026-08-28T14:46:30.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "recipient": {
                "id": 296,
                "mrn": "7YBY7CGT1787928390",
                "name": "Mr. Jaron Hackett",
                "email": "1787928390huel.lynn@example.net",
                "language": "en",
                "phone": "1-469-301-9121",
                "phone_country": "LU",
                "phone_verified_at": null,
                "address1": "7857 Delphine Roads Apt. 415",
                "address2": "Eusebiofort, UT 63340-4355",
                "postal_code": "73779-4512",
                "city": "Kunze, Heller and Buckridge",
                "country": "FI",
                "clinic_name": "Lake Millieshire",
                "clinic_location": "656 Rosenbaum Mall\nEarleneland, DE 42796",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:46:30.000000Z",
                "updated_at": "2026-08-28T14:46:30.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "device": null,
            "messages": []
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view chat room tickets",
    "code": "CHAT:LIST_TICKETS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Chat room not found):


{
    "message": "Chat room not found",
    "code": "CHAT:LIST_TICKETS:ROOM_NOT_FOUND"
}
 

Request   

GET api/chat/tickets/{roomId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

roomId   string   

Example: qui

Query Parameters

status   string  optional  

Filter tickets by status (available: new,in_progress,closed,reopened. Example: soluta

sender   integer  optional  

Filter tickets by sender. Example: 16

recipient   integer  optional  

Filter tickets by recipient. Example: 7

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: sender, recipient, messages, messages.attachments, messages.sender).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

List of available patients for chat

requires authentication

Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/chat/available-patients" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/available-patients"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 297,
            "mrn": "PHLNZ8RG1787928391",
            "name": "Rahsaan Durgan V",
            "email": "1787928391stiedemann.cordie@example.org",
            "language": "en",
            "phone": "678.793.0517",
            "phone_country": "MU",
            "phone_verified_at": null,
            "address1": "66979 Renner Canyon Apt. 117",
            "address2": "North Nicklaus, AL 99913-6071",
            "postal_code": "63069",
            "city": "Klocko-Marks",
            "country": "IE",
            "clinic_name": "Hirtheview",
            "clinic_location": "235 Serena Way Apt. 136\nHillardtown, AR 19795-4106",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:46:31.000000Z",
            "updated_at": "2026-08-28T14:46:31.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": "accepted",
            "devices": [
                {
                    "id": 151,
                    "serial": "cc42f91d-cb3a-3399-a7a3-caad8b6b72b1",
                    "bluetooth_id": "c2e84cad-13a7-3757-b000-be77ed49cf6d",
                    "company_id": null,
                    "model_id": null,
                    "amputee_id": 297,
                    "clinician_id": null,
                    "firmware_version_id": null,
                    "pcb_version_id": null,
                    "reverse_magnets": 0,
                    "is_electrode": 0,
                    "active": 1,
                    "last_activity_at": "0000-00-00 00:00:00",
                    "first_connected_at": null,
                    "measurements": null,
                    "created_at": "2026-08-28T14:46:31.000000Z",
                    "updated_at": "2026-08-28T14:46:31.000000Z",
                    "first_config_change_at": null
                }
            ],
            "roles": [
                {
                    "id": 7,
                    "name": "AcadleUser"
                }
            ]
        },
        {
            "id": 298,
            "mrn": "PZ23TFRY1787928391",
            "name": "Brielle Hintz",
            "email": "1787928391west.allison@example.net",
            "language": "en",
            "phone": "713.518.6118",
            "phone_country": "UM",
            "phone_verified_at": null,
            "address1": "1031 Sean Spur Apt. 494",
            "address2": "North Aureliechester, NM 63967-6517",
            "postal_code": "86873",
            "city": "Reichert Inc",
            "country": "PT",
            "clinic_name": "Gloverborough",
            "clinic_location": "650 Mann Fall\nEast Kurtfort, KS 85961",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:46:31.000000Z",
            "updated_at": "2026-08-28T14:46:31.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": null,
            "devices": [
                {
                    "id": 152,
                    "serial": "e65d2171-d066-3dac-8b68-39f4e76b8408",
                    "bluetooth_id": "4253a158-8cb6-3b15-897b-c840d45aed04",
                    "company_id": null,
                    "model_id": null,
                    "amputee_id": 298,
                    "clinician_id": null,
                    "firmware_version_id": null,
                    "pcb_version_id": null,
                    "reverse_magnets": 0,
                    "is_electrode": 0,
                    "active": 1,
                    "last_activity_at": "0000-00-00 00:00:00",
                    "first_connected_at": null,
                    "measurements": null,
                    "created_at": "2026-08-28T14:46:32.000000Z",
                    "updated_at": "2026-08-28T14:46:32.000000Z",
                    "first_config_change_at": null
                }
            ],
            "roles": [
                {
                    "id": 1,
                    "name": "SuperAdmin"
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list available patients",
    "code": "CHAT:LIST_PATIENTS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/chat/available-patients

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

List of available participants for chat

requires authentication

Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/chat/room/1/available-participants" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/chat/room/1/available-participants"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 299,
            "mrn": "M9CT9SBY1787928392",
            "name": "Marjolaine Moen IV",
            "email": "1787928392mabel39@example.net",
            "language": "en",
            "phone": "+1.608.237.1555",
            "phone_country": "PR",
            "phone_verified_at": null,
            "address1": "80501 Rickie Glens",
            "address2": "Yeseniatown, ME 85858-0821",
            "postal_code": "22444",
            "city": "Krajcik-Muller",
            "country": "NL",
            "clinic_name": "South Wilburn",
            "clinic_location": "388 Marquardt Mill Apt. 406\nEast Imogene, NY 87149",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:46:32.000000Z",
            "updated_at": "2026-08-28T14:46:32.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": null,
            "roles": [
                {
                    "id": 2,
                    "name": "CommunityAdmin"
                }
            ]
        },
        {
            "id": 300,
            "mrn": "947H4BTH1787928392",
            "name": "Mr. Gordon Muller",
            "email": "1787928392irwin.hackett@example.org",
            "language": "en",
            "phone": "(760) 603-0391",
            "phone_country": "TJ",
            "phone_verified_at": null,
            "address1": "953 Adams Field Suite 513",
            "address2": "Roobburgh, AZ 10465",
            "postal_code": "57189-9768",
            "city": "Kunze, Bins and Lakin",
            "country": "RO",
            "clinic_name": "Lake Diego",
            "clinic_location": "9982 Goodwin Junctions\nBlandaton, MD 49481-7312",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:46:32.000000Z",
            "updated_at": "2026-08-28T14:46:32.000000Z",
            "invitation_status": "accepted",
            "acadle_invitation_status": null,
            "roles": [
                {
                    "id": 3,
                    "name": "ClinicAdmin"
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list available participants",
    "code": "CHAT:LIST_PARTICIPANTS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Chat room not found):


{
    "message": "Chat room not found",
    "code": "CHAT:LIST_PARTICIPANTS:ROOM_NOT_FOUND"
}
 

Request   

GET api/chat/room/{id}/available-participants

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Chat room ID. Example: 1

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: roles, permissions).

Response

Response Fields

items   object   
id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Community

Endpoints related to community videos

List community videos

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/community/videos?include_unpublished=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/videos"
);

const params = {
    "include_unpublished": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 1,
        "count": 1,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "origin_region": "us",
            "request_id": "us-4428bf54-08a7-43ec-b312-54874c2ef5d8",
            "user_id": 1,
            "author_id": 2,
            "author_name": "Tom S.",
            "author_image": "https://example-bucket.s3.us-east-2.amazonaws.com/ambassadors/example.png",
            "video_url": "/videos/1215397088",
            "player_embed_url": "https://player.vimeo.com/video/1215397088?h=3bb25b045c",
            "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d?region=us",
            "description": "community_videos.production.1",
            "translation_status": "SUCCESS",
            "processing_status": "ready",
            "published_at": "2026-07-31T12:59:20.000000Z",
            "created_at": "2026-07-31T12:59:20.000000Z",
            "updated_at": "2026-07-31T12:59:20.000000Z",
            "status": "published"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view community videos",
    "code": "COMMUNITY_VIDEOS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/community/videos

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

include_unpublished   boolean  optional  

SuperAdmin/CommunityAdmin only: Include videos regardless of publish status (draft/uploading/processing/scheduled/unpublished/failed). Example: false

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: categories, comments, reactions).

Get community video

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/community/videos/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/videos/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "origin_region": "us",
    "request_id": "us-4428bf54-08a7-43ec-b312-54874c2ef5d8",
    "user_id": 1,
    "author_id": 2,
    "author_name": "Tom S.",
    "author_image": "https://example-bucket.s3.us-east-2.amazonaws.com/ambassadors/example.png",
    "video_url": "/videos/1215397088",
    "player_embed_url": "https://player.vimeo.com/video/1215397088?h=3bb25b045c",
    "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d?region=us",
    "description": "community_videos.production.1",
    "translation_status": "SUCCESS",
    "processing_status": "ready",
    "published_at": "2026-07-31T12:59:20.000000Z",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z",
    "status": "published"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view community videos",
    "code": "COMMUNITY_VIDEOS:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Video not found):


{
    "message": "Community video not found",
    "code": "COMMUNITY_VIDEOS:GET:VIDEO_NOT_FOUND"
}
 

Request   

GET api/community/videos/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: categories, comments, reactions).

Upload community video

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/videos" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "author_id=1"\
    --form "video=@/tmp/php1VlAPf" 
const url = new URL(
    "http://localhost:8000/api/community/videos"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('author_id', '1');
body.append('video', document.querySelector('input[name="video"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_VIDEOS:UPLOAD:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/community/videos

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

video   file   

Video file. Any format accepted by Vimeo, max 500MB. Must be a file. MAXIMUM:FILE_KB:512000. Example: /tmp/php1VlAPf

author_id   integer   

Ambassador user ID shown as the video author. The id of an existing record in the users table. Example: 1

Update community video

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/community/videos/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"author_id\": 1
}"
const url = new URL(
    "http://localhost:8000/api/community/videos/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "author_id": 1
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 1,
    "origin_region": "us",
    "request_id": "us-4428bf54-08a7-43ec-b312-54874c2ef5d8",
    "user_id": 1,
    "author_id": 2,
    "author_name": "Tom S.",
    "author_image": "https://example-bucket.s3.us-east-2.amazonaws.com/ambassadors/example.png",
    "video_url": "/videos/1215397088",
    "player_embed_url": "https://player.vimeo.com/video/1215397088?h=3bb25b045c",
    "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d?region=us",
    "description": "community_videos.production.us.1",
    "translation_status": "STARTED",
    "processing_status": "ready",
    "published_at": "2026-07-31T12:59:20.000000Z",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z",
    "status": "published"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_VIDEOS:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Video not found):


{
    "message": "Community video not found",
    "code": "COMMUNITY_VIDEOS:UPDATE:VIDEO_NOT_FOUND"
}
 

Request   

PUT api/community/videos/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

Body Parameters

author_id   integer  optional  

Ambassador user ID shown as the video author. The id of an existing record in the users table. Example: 1

Publish community video

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/videos/1/publish" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"published_at\": \"2026-08-25 12:00:00\"
}"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/publish"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "published_at": "2026-08-25 12:00:00"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "origin_region": "us",
    "request_id": "us-4428bf54-08a7-43ec-b312-54874c2ef5d8",
    "user_id": 1,
    "author_id": 2,
    "author_name": "Tom S.",
    "author_image": "https://example-bucket.s3.us-east-2.amazonaws.com/ambassadors/example.png",
    "video_url": "/videos/1215397088",
    "player_embed_url": "https://player.vimeo.com/video/1215397088?h=3bb25b045c",
    "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d?region=us",
    "description": "community_videos.production.us.1",
    "translation_status": "SUCCESS",
    "processing_status": "ready",
    "published_at": "2026-07-31T12:59:20.000000Z",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z",
    "status": "published"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_VIDEOS:PUBLISH:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Video not found):


{
    "message": "Community video not found",
    "code": "COMMUNITY_VIDEOS:PUBLISH:VIDEO_NOT_FOUND"
}
 

Request   

POST api/community/videos/{id}/publish

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

Body Parameters

published_at   string  optional  

Date and time to publish the video at. A future date schedules the video. If not present, the video is published immediately. MUST_BE_DATE. Example: 2026-08-25 12:00:00

Unpublish community video

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/videos/1/unpublish" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/unpublish"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "origin_region": "us",
    "request_id": "us-4428bf54-08a7-43ec-b312-54874c2ef5d8",
    "user_id": 1,
    "author_id": 2,
    "author_name": "Tom S.",
    "author_image": "https://example-bucket.s3.us-east-2.amazonaws.com/ambassadors/example.png",
    "video_url": "/videos/1215397088",
    "player_embed_url": "https://player.vimeo.com/video/1215397088?h=3bb25b045c",
    "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d?region=us",
    "description": "community_videos.production.us.1",
    "translation_status": "SUCCESS",
    "processing_status": "ready",
    "published_at": "9999-12-31T23:59:59.000000Z",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z",
    "status": "unpublished"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_VIDEOS:UNPUBLISH:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Video not found):


{
    "message": "Community video not found",
    "code": "COMMUNITY_VIDEOS:UNPUBLISH:VIDEO_NOT_FOUND"
}
 

Request   

POST api/community/videos/{id}/unpublish

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

React to community video

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/videos/1/react" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/react"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, Current reaction state):


{
    "status": true
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to react to community videos",
    "code": "COMMUNITY_VIDEOS:REACT:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Video not found):


{
    "message": "Community video not found",
    "code": "COMMUNITY_VIDEOS:REACT:VIDEO_NOT_FOUND"
}
 

Request   

POST api/community/videos/{id}/react

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

Update community video categories

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/community/videos/1/categories" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"categories\": [
        1,
        2
    ]
}"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/categories"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "categories": [
        1,
        2
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "origin_region": "us",
    "request_id": "us-4428bf54-08a7-43ec-b312-54874c2ef5d8",
    "user_id": 1,
    "author_id": 2,
    "author_name": "Tom S.",
    "author_image": "https://example-bucket.s3.us-east-2.amazonaws.com/ambassadors/example.png",
    "video_url": "/videos/1215397088",
    "player_embed_url": "https://player.vimeo.com/video/1215397088?h=3bb25b045c",
    "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d?region=us",
    "description": "community_videos.production.1",
    "translation_status": "SUCCESS",
    "processing_status": "ready",
    "published_at": "2026-07-31T12:59:20.000000Z",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z",
    "status": "published",
    "categories": [
        {
            "id": 1,
            "name": "community_categories.production.1",
            "is_archived": false,
            "translation_status": "SUCCESS",
            "created_at": "2026-07-31T12:59:20.000000Z",
            "updated_at": "2026-07-31T12:59:20.000000Z",
            "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d?region=us"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_VIDEOS:UPDATE_CATEGORIES:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Video not found):


{
    "message": "Community video not found",
    "code": "COMMUNITY_VIDEOS:UPDATE_CATEGORIES:VIDEO_NOT_FOUND"
}
 

Request   

PUT api/community/videos/{id}/categories

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

Body Parameters

categories   integer[]   

Full list of category IDs to assign to the video (max 2). Replaces the existing set entirely — send the complete desired list, not just additions. An empty array removes all categories from the video.

List community categories

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/community/categories" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/categories"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 1,
        "count": 1,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "name": "community_categories.production.us.1",
            "is_archived": false,
            "translation_status": "SUCCESS",
            "created_at": "2026-07-31T12:59:20.000000Z",
            "updated_at": "2026-07-31T12:59:20.000000Z",
            "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d_540x960?region=us"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view community videos",
    "code": "COMMUNITY_CATEGORIES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/community/categories

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Create community category

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/categories" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Sports\"
}"
const url = new URL(
    "http://localhost:8000/api/community/categories"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Sports"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 1,
    "name": "community_categories.production.us.1",
    "is_archived": false,
    "translation_status": "STARTED",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z",
    "thumbnail_url": null
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_CATEGORIES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/community/categories

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Category name. Example: Sports

Update community category

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/community/categories/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Sports\"
}"
const url = new URL(
    "http://localhost:8000/api/community/categories/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Sports"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 1,
    "name": "community_categories.production.us.1",
    "is_archived": false,
    "translation_status": "STARTED",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-08-14T09:00:00.000000Z",
    "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d_540x960?region=us"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_CATEGORIES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Category not found):


{
    "message": "Community category not found",
    "code": "COMMUNITY_CATEGORIES:UPDATE:CATEGORY_NOT_FOUND"
}
 

Request   

PUT api/community/categories/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community category ID. Example: 1

Body Parameters

name   string  optional  

Category name. Example: Sports

Archive community category

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/categories/1/archive" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/categories/1/archive"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "name": "community_categories.production.us.1",
    "is_archived": true,
    "translation_status": "SUCCESS",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-08-14T09:00:00.000000Z",
    "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d_540x960?region=us"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_CATEGORIES:ARCHIVE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Category not found):


{
    "message": "Community category not found",
    "code": "COMMUNITY_CATEGORIES:ARCHIVE:CATEGORY_NOT_FOUND"
}
 

Request   

POST api/community/categories/{id}/archive

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community category ID. Example: 1

Unarchive community category

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/categories/1/unarchive" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/categories/1/unarchive"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "name": "community_categories.production.us.1",
    "is_archived": false,
    "translation_status": "SUCCESS",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-08-14T09:00:00.000000Z",
    "thumbnail_url": "https://i.vimeocdn.com/video/2186556744-c0e3e0986946410a9a851a8b8acbc3be6c2b0e3b68ee0db18db107d0a1dd3204-d_540x960?region=us"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_CATEGORIES:UNARCHIVE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Category not found):


{
    "message": "Community category not found",
    "code": "COMMUNITY_CATEGORIES:UNARCHIVE:CATEGORY_NOT_FOUND"
}
 

Request   

POST api/community/categories/{id}/unarchive

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community category ID. Example: 1

List community category suggestions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/community/categories/suggestions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/categories/suggestions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 1,
        "count": 1,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "origin_region": "us",
            "request_id": "us-4428bf54-08a7-43ec-b312-54874c2ef5d8",
            "user_id": 1,
            "search_term": "Swimming",
            "created_at": "2026-08-14T09:00:00.000000Z",
            "updated_at": "2026-08-14T09:00:00.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_CATEGORY_SUGGESTIONS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/community/categories/suggestions

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Create community category suggestion

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/categories/suggestions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"search_term\": \"Swimming\"
}"
const url = new URL(
    "http://localhost:8000/api/community/categories/suggestions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "search_term": "Swimming"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 1,
    "origin_region": "us",
    "request_id": "us-4428bf54-08a7-43ec-b312-54874c2ef5d8",
    "user_id": 1,
    "search_term": "Swimming",
    "created_at": "2026-08-14T09:00:00.000000Z",
    "updated_at": "2026-08-14T09:00:00.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to suggest community categories",
    "code": "COMMUNITY_CATEGORY_SUGGESTIONS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/community/categories/suggestions

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

search_term   string   

Category name the patient searched for. Example: Swimming

List community comments

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/community/videos/1/comments" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/comments"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 1,
        "count": 1,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "video_id": 1,
            "parent_comment_id": null,
            "display_name": "John D.",
            "is_ambassador": false,
            "content": "Great video, thank you!",
            "status": "approved",
            "rejection_reason": null,
            "created_at": "2026-07-31T12:59:20.000000Z",
            "updated_at": "2026-07-31T12:59:20.000000Z"
        }
    ],
    "items_pending": [],
    "items_rejected": []
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to comment on community videos",
    "code": "COMMUNITY_COMMENTS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/community/videos/{id}/comments

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

Create community comment

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/videos/1/comments" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"content\": \"Great video, thank you!\"
}"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/comments"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "content": "Great video, thank you!"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 1,
    "video_id": 1,
    "parent_comment_id": null,
    "display_name": "John D.",
    "is_ambassador": false,
    "content": "Great video, thank you!",
    "status": "pending",
    "rejection_reason": null,
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to comment on community videos",
    "code": "COMMUNITY_COMMENTS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/community/videos/{id}/comments

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

Body Parameters

content   string   

Comment content. Example: Great video, thank you!

Update community comment

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/community/videos/1/comments/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"content\": \"Great video, thank you!\"
}"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/comments/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "content": "Great video, thank you!"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 2,
    "video_id": 1,
    "parent_comment_id": 1,
    "display_name": "John D.",
    "is_ambassador": false,
    "content": "Great video, thank you! (edited)",
    "status": "pending",
    "rejection_reason": null,
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to comment on community videos",
    "code": "COMMUNITY_COMMENTS:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Comment not found):


{
    "message": "Community comment not found",
    "code": "COMMUNITY_COMMENTS:UPDATE:COMMENT_NOT_FOUND"
}
 

Request   

PUT api/community/videos/{id}/comments/{commentId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

commentId   integer   

Community comment ID. Example: 1

Body Parameters

content   string   

Comment content. Example: Great video, thank you!

Delete community comment

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/community/videos/1/comments/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/comments/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Community comment deleted"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to comment on community videos",
    "code": "COMMUNITY_COMMENTS:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Comment not found):


{
    "message": "Community comment not found",
    "code": "COMMUNITY_COMMENTS:DELETE:COMMENT_NOT_FOUND"
}
 

Request   

DELETE api/community/videos/{id}/comments/{commentId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

commentId   integer   

Community comment ID. Example: 1

Approve community comment

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/videos/1/comments/1/approve" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/comments/1/approve"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "video_id": 1,
    "parent_comment_id": null,
    "display_name": "John D.",
    "is_ambassador": false,
    "content": "Great video, thank you!",
    "status": "approved",
    "rejection_reason": null,
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_COMMENTS:APPROVE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Comment not found):


{
    "message": "Community comment not found",
    "code": "COMMUNITY_COMMENTS:APPROVE:COMMENT_NOT_FOUND"
}
 

Request   

POST api/community/videos/{id}/comments/{commentId}/approve

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

commentId   integer   

Community comment ID. Example: 1

Reject community comment

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/videos/1/comments/1/reject" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"Contains inappropriate language.\"
}"
const url = new URL(
    "http://localhost:8000/api/community/videos/1/comments/1/reject"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "reason": "Contains inappropriate language."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "video_id": 1,
    "parent_comment_id": null,
    "display_name": "John D.",
    "is_ambassador": false,
    "content": "Great video, thank you!",
    "status": "rejected",
    "rejection_reason": "Contains inappropriate language.",
    "created_at": "2026-07-31T12:59:20.000000Z",
    "updated_at": "2026-07-31T12:59:20.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_COMMENTS:REJECT:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Comment not found):


{
    "message": "Community comment not found",
    "code": "COMMUNITY_COMMENTS:REJECT:COMMENT_NOT_FOUND"
}
 

Request   

POST api/community/videos/{id}/comments/{commentId}/reject

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Community video ID. Example: 1

commentId   integer   

Community comment ID. Example: 1

Body Parameters

reason   string   

Reason for rejecting the comment. Example: Contains inappropriate language.

Get community statistics

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/community/statistics?date_from=2026-08-10&date_to=2026-08-14" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/statistics"
);

const params = {
    "date_from": "2026-08-10",
    "date_to": "2026-08-14",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "date_from": "2026-08-10",
    "date_to": "2026-08-14",
    "engaged_users_count": 42,
    "content_resonance_percent": 63.5,
    "push_uploads_percent": 27.3
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_STATISTICS:GET:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/community/statistics

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

date_from   string  optional  

Start date (Y-m-d). Defaults to the start of the current ISO week (UTC). Example: 2026-08-10

date_to   string  optional  

End date (Y-m-d). Defaults to now. Example: 2026-08-14

Record community tab open

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/statistics/tab-open" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/statistics/tab-open"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Community statistic recorded",
    "code": "COMMUNITY_STATISTICS:RECORD:SUCCESS"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view community videos",
    "code": "COMMUNITY_STATISTICS:TAB_OPEN:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/community/statistics/tab-open

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

List community ambassadors

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/community/ambassadors" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/community/ambassadors"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 1,
        "count": 1,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "origin_region": "us",
            "user_id": 1,
            "name": "Tom S.",
            "public_image": "https://example-bucket.s3.us-east-2.amazonaws.com/ambassadors/example.png"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_AMBASSADORS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/community/ambassadors

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Upload ambassador public image

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/community/ambassadors/1/public-image" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "public_image=@/tmp/phpM36CvA" 
const url = new URL(
    "http://localhost:8000/api/community/ambassadors/1/public-image"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('public_image', document.querySelector('input[name="public_image"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "id": 331,
    "name": "Carol Gislason",
    "public_image": null
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage community videos",
    "code": "COMMUNITY_AMBASSADORS:UPLOAD_PUBLIC_IMAGE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User is not an ambassador):


{
    "message": "This user is not a community ambassador",
    "code": "COMMUNITY_AMBASSADORS:UPLOAD_PUBLIC_IMAGE:NOT_AN_AMBASSADOR"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "COMMUNITY_AMBASSADORS:UPLOAD_PUBLIC_IMAGE:USER_NOT_FOUND"
}
 

Request   

POST api/community/ambassadors/{id}/public-image

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

id   integer   

Ambassador user ID. Example: 1

Body Parameters

public_image   file   

Public avatar image file. MUST_BE_IMAGE MAXIMUM:FILE_KB:5120. Example: /tmp/phpM36CvA

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Config

API endpoints for device config management

Get device config

requires authentication

Definitions:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/config?_format=cum" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config"
);

const params = {
    "_format": "cum",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Normal/compact response):


{
    "common": {
        "gripPairsConfig": [
            1,
            4,
            2,
            3,
            6,
            7,
            9,
            8
        ],
        "controlConfig": [
            0,
            1,
            0,
            0,
            0
        ],
        "emgThresholds": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "interval": [
            100
        ],
        "gripSequentialConfig": [
            1,
            2,
            4,
            3,
            0,
            255,
            6,
            7,
            9,
            8,
            255,
            255
        ]
    },
    "modes": [
        {
            "id": 100,
            "name": "Mode 1",
            "slot": 0,
            "config": {
                "interval": [
                    300
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 101,
            "name": "Mode 2",
            "slot": 1,
            "config": {
                "interval": [
                    400
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 102,
            "name": "Mode 3",
            "slot": 2,
            "config": {
                "interval": [
                    500
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        }
    ]
}
 

Example response (200):


[
    {
        "id": 1,
        "device_id": 19,
        "mode_id": 1,
        "key": "deleniti",
        "value": "ipsa",
        "created_at": "2026-08-28T14:44:42.000000Z",
        "updated_at": "2026-08-28T14:44:42.000000Z",
        "mode": {
            "id": 1,
            "device_id": 20,
            "slot": null,
            "name": "Saepe neque occaecati et accusamus.",
            "active": 1,
            "created_at": "2026-08-28T14:44:42.000000Z",
            "updated_at": "2026-08-28T14:44:42.000000Z"
        }
    },
    {
        "id": 2,
        "device_id": 21,
        "mode_id": 2,
        "key": "omnis",
        "value": "et",
        "created_at": "2026-08-28T14:44:42.000000Z",
        "updated_at": "2026-08-28T14:44:42.000000Z",
        "mode": {
            "id": 2,
            "device_id": 22,
            "slot": null,
            "name": "Commodi perspiciatis non explicabo.",
            "active": 1,
            "created_at": "2026-08-28T14:44:42.000000Z",
            "updated_at": "2026-08-28T14:44:42.000000Z"
        }
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view device config",
    "code": "CONFIG:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:GET:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/config

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Query Parameters

_format   string  optional  

Config format. Pass collection to receive config as resource collection. Example: cum

Response

Response Fields

id   integer   

Config entry ID.

device_id   integer   

Associated device ID.

mode_id   integer   

Associated config mode ID.

key   string   

Config key.

value   string   

Config value.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

mode   object   

Associated config mode.

Update device config

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/config" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Remote session 2022-05-30\",
    \"common\": \"{\\\"gripPairsConfig\\\": [1, 4, 2, 3, 6, 7, 9, 8], \\\"controlConfig\\\": [0, 1, 0, 0, 0], \\\"gripSequentialConfig\\\": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]\",
    \"updateNote\": true,
    \"source\": \"guide\",
    \"modes\": [
        {
            \"id\": 1,
            \"config\": \"{\\\"gripPairsConfig\\\": [1, 4, 2, 3, 6, 7, 9, 8], \\\"controlConfig\\\": [0, 1, 0, 0, 0], \\\"gripSequentialConfig\\\": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]\"
        }
    ]
}"
const url = new URL(
    "http://localhost:8000/api/device/1/config"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Remote session 2022-05-30",
    "common": "{\"gripPairsConfig\": [1, 4, 2, 3, 6, 7, 9, 8], \"controlConfig\": [0, 1, 0, 0, 0], \"gripSequentialConfig\": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]",
    "updateNote": true,
    "source": "guide",
    "modes": [
        {
            "id": 1,
            "config": "{\"gripPairsConfig\": [1, 4, 2, 3, 6, 7, 9, 8], \"controlConfig\": [0, 1, 0, 0, 0], \"gripSequentialConfig\": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "common": {
        "gripPairsConfig": [
            1,
            4,
            2,
            3,
            6,
            7,
            9,
            8
        ],
        "controlConfig": [
            0,
            1,
            0,
            0,
            0
        ],
        "emgThresholds": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "interval": [
            100
        ],
        "gripSequentialConfig": [
            1,
            2,
            4,
            3,
            0,
            255,
            6,
            7,
            9,
            8,
            255,
            255
        ]
    },
    "modes": [
        {
            "id": 100,
            "name": "Mode 1",
            "slot": 0,
            "config": {
                "interval": [
                    300
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 101,
            "name": "Mode 2",
            "slot": 1,
            "config": {
                "interval": [
                    400
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 102,
            "name": "Mode 3",
            "slot": 2,
            "config": {
                "interval": [
                    500
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device config",
    "code": "CONFIG:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:UPDATE:DEVICE_NOT_FOUND"
}
 

Example response (422, Invalid config):


{
    "message": "Config has some problems and cannot be saved.",
    "errors": {
        "modes": {
            "mode_3": "Config mode 3 does not belong to device 12."
        },
        "values": {
            "common.inputSite": "Invalid value [\"11\"] for key inputSite - contains string values.",
            "common.gripsPositions.1.initial": "Invalid value [200,\"100\",\"100\",\"100\",\"100\"] for key gripsPositions.1.initial - contains string values.",
            "mode_1.inputSite": "Invalid value [\"11\"] for key inputSite - contains string values.",
            "mode_1.gripsPositions.0.initial": "Invalid value [\"200\",\"100\",\"100\",\"100\",\"100\"] for key gripsPositions.1.initial - contains string values."
        }
    },
    "code": "CONFIG:UPDATE:INVALID_CONFIG"
}
 

Request   

POST api/device/{deviceId}/config

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Body Parameters

name   string  optional  

Config history entry name (session name). Example: Remote session 2022-05-30

common   string  optional  

Common config as JSON string. MUST_BE_JSON. Example: {"gripPairsConfig": [1, 4, 2, 3, 6, 7, 9, 8], "controlConfig": [0, 1, 0, 0, 0], "gripSequentialConfig": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]

updateNote   boolean  optional  

Add config history note with content equal to name parameter. Example: true

source   string  optional  

Where this config save was initiated from. Defaults to configurator when not present. Example: guide

Must be one of:
  • configurator
  • guide
  • mobile
modes   object[]  optional  
id   string  optional  

Config mode ID. The id of an existing record in the App\Models\ConfigMode table. Example: 1

config   string  optional  

Config specific for mode as JSON string. MUST_BE_JSON. Example: {"gripPairsConfig": [1, 4, 2, 3, 6, 7, 9, 8], "controlConfig": [0, 1, 0, 0, 0], "gripSequentialConfig": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]

Get device config history

requires authentication

For amputees only restore points are returned.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/config/history?restore_point=1&factory_reset_point=1&date_from=1642003200&date_to=1642003200" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"restore_point\": false,
    \"factory_reset_point\": false
}"
const url = new URL(
    "http://localhost:8000/api/device/1/config/history"
);

const params = {
    "restore_point": "1",
    "factory_reset_point": "1",
    "date_from": "1642003200",
    "date_to": "1642003200",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "restore_point": false,
    "factory_reset_point": false
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Normal/compact response):


{
    "common": {
        "gripPairsConfig": [
            1,
            4,
            2,
            3,
            6,
            7,
            9,
            8
        ],
        "controlConfig": [
            0,
            1,
            0,
            0,
            0
        ],
        "emgThresholds": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "interval": [
            100
        ],
        "gripSequentialConfig": [
            1,
            2,
            4,
            3,
            0,
            255,
            6,
            7,
            9,
            8,
            255,
            255
        ]
    },
    "modes": [
        {
            "id": 100,
            "name": "Mode 1",
            "slot": 0,
            "config": {
                "interval": [
                    300
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 101,
            "name": "Mode 2",
            "slot": 1,
            "config": {
                "interval": [
                    400
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 102,
            "name": "Mode 3",
            "slot": 2,
            "config": {
                "interval": [
                    500
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        }
    ]
}
 

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "user_id": null,
            "device_id": 23,
            "index": null,
            "name": "Fugiat aut est nisi est necessitatibus minima dicta.",
            "config": "{\"common\":{\"fingerStrength\":[1,100],\"gripPositions\":{\"_\":0,\"0\":{\"initial\":[9,58,12,68,3],\"limit\":[52,79,51,84,28]},\"1\":{\"initial\":[40,64,48,13,78],\"limit\":[90,95,58,92,93]},\"2\":{\"initial\":[4,19,80,48,28],\"limit\":[55,91,94,57,90]},\"3\":{\"initial\":[73,29,18,40,11],\"limit\":[74,56,74,83,60]},\"4\":{\"initial\":[67,4,63,13,45],\"limit\":[89,93,86,22,49]},\"5\":{\"initial\":[63,8,68,8,40],\"limit\":[64,68,71,83,91]},\"6\":{\"initial\":[29,16,67,47,2],\"limit\":[59,59,69,69,25]},\"7\":{\"initial\":[18,66,75,67,12],\"limit\":[59,87,79,77,28]},\"8\":{\"initial\":[85,13,34,56,20],\"limit\":[86,87,82,78,58]},\"9\":{\"initial\":[49,48,39,49,15],\"limit\":[80,66,87,74,68]},\"10\":{\"initial\":[40,53,58,28,6],\"limit\":[57,69,64,73,33]},\"11\":{\"initial\":[4,33,55,46,31],\"limit\":[36,37,95,49,84]},\"12\":{\"initial\":[33,35,35,6,6],\"limit\":[74,52,86,27,73]},\"13\":{\"initial\":[63,14,34,21,55],\"limit\":[84,63,53,93,60]}},\"inputSite\":[0]},\"modes\":[{\"id\":3,\"name\":\"Delectus nihil minus quibusdam blanditiis ducimus eum rem quia.\",\"slot\":0,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[500,100],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[90,10,80,60,0,90,0,50,20,70],\"gripPairsConfig\":[5,9,3,4,6,11,7,8],\"gripSequentialConfig\":[11,4,6,12,255,13,2,8,255,255,1,10],\"gripSwitchingMode\":[2],\"holdOpen\":[2500,2500],\"pulseTimings\":[60,300,510,220],\"softGrip\":[0],\"speedControlStrategy\":[0]}},{\"id\":4,\"name\":\"Eum quis voluptates amet occaecati.\",\"slot\":1,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[500,500],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[80,30,100,0,100,30,60,10,20,90],\"gripPairsConfig\":[3,1,7,13,9,6,4,11],\"gripSequentialConfig\":[9,13,255,255,255,7,5,10,2,255,255,255],\"gripSwitchingMode\":[1],\"holdOpen\":[1500,1500],\"pulseTimings\":[660,200,240,470],\"softGrip\":[1],\"speedControlStrategy\":[0]}},{\"id\":5,\"name\":\"Eum laudantium eligendi vitae aperiam qui.\",\"slot\":2,\"config\":{\"autoGrasp\":[0,0],\"coContractionTimings\":[400,400],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[60,100,40,90,30,100,10,30,20,80],\"gripPairsConfig\":[12,3,4,1,7,10,6,5],\"gripSequentialConfig\":[255,255,2,3,255,5,10,13,8,255,1,6],\"gripSwitchingMode\":[2],\"holdOpen\":[1500,2500],\"pulseTimings\":[500,690,800,460],\"softGrip\":[1],\"speedControlStrategy\":[1]}}]}",
            "restore_point": 1,
            "factory_reset_point": 0,
            "source": "configurator",
            "changed_by": 50,
            "firmware_version_id": null,
            "created_at": "2026-08-28T14:44:43.000000Z",
            "updated_at": "2026-08-28T14:44:43.000000Z",
            "author": {
                "id": 50,
                "mrn": "QEDXU4T21787928283",
                "name": "Chesley Grant",
                "email": "1787928283flabadie@example.net",
                "language": "en",
                "phone": "+17793997593",
                "phone_country": "DE",
                "phone_verified_at": null,
                "address1": "75571 Nolan Loop",
                "address2": "Gottliebhaven, OK 23859",
                "postal_code": "16254-2660",
                "city": "Runolfsson-Moore",
                "country": "RO",
                "clinic_name": "South Jeremie",
                "clinic_location": "215 Deonte Center Suite 122\nNorth Nashtown, LA 66639-7120",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:44:43.000000Z",
                "updated_at": "2026-08-28T14:44:43.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "entries": [
                {
                    "id": 1,
                    "config_history_id": 1,
                    "config_id": 3,
                    "old_value": "aut",
                    "new_value": "velit",
                    "created_at": "2026-08-28T14:44:44.000000Z",
                    "updated_at": "2026-08-28T14:44:44.000000Z",
                    "config_entry": {
                        "id": 3,
                        "device_id": 31,
                        "mode_id": null,
                        "key": "totam",
                        "value": "deleniti",
                        "created_at": "2026-08-28T14:44:44.000000Z",
                        "updated_at": "2026-08-28T14:44:44.000000Z"
                    }
                }
            ]
        },
        {
            "id": 3,
            "user_id": null,
            "device_id": 32,
            "index": null,
            "name": "Debitis ea vitae et ab.",
            "config": "{\"common\":{\"fingerStrength\":[1,300],\"gripPositions\":{\"_\":0,\"0\":{\"initial\":[26,5,1,31,15],\"limit\":[90,92,61,67,28]},\"1\":{\"initial\":[5,46,59,24,5],\"limit\":[86,63,91,74,57]},\"2\":{\"initial\":[17,45,15,9,51],\"limit\":[25,46,44,53,63]},\"3\":{\"initial\":[65,15,17,67,3],\"limit\":[80,25,92,69,85]},\"4\":{\"initial\":[20,68,15,52,3],\"limit\":[56,90,83,64,51]},\"5\":{\"initial\":[10,74,11,34,15],\"limit\":[37,92,27,90,82]},\"6\":{\"initial\":[49,1,14,6,40],\"limit\":[55,77,34,20,59]},\"7\":{\"initial\":[2,14,27,68,23],\"limit\":[27,53,38,87,88]},\"8\":{\"initial\":[15,59,42,27,25],\"limit\":[35,71,74,95,54]},\"9\":{\"initial\":[54,10,41,49,21],\"limit\":[58,59,79,89,61]},\"10\":{\"initial\":[76,21,69,30,61],\"limit\":[82,74,88,91,85]},\"11\":{\"initial\":[26,29,36,64,41],\"limit\":[35,80,46,84,60]},\"12\":{\"initial\":[54,39,75,55,34],\"limit\":[61,93,77,75,39]},\"13\":{\"initial\":[4,16,42,12,47],\"limit\":[8,66,92,87,65]}},\"inputSite\":[0]},\"modes\":[{\"id\":9,\"name\":\"Vitae amet explicabo consequatur iusto vel fugit temporibus.\",\"slot\":0,\"config\":{\"autoGrasp\":[1,0],\"coContractionTimings\":[400,200],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[20,30,80,10,90,50,30,30,10,20],\"gripPairsConfig\":[13,8,3,1,7,11,4,10],\"gripSequentialConfig\":[5,255,255,255,11,9,255,255,7,8,3,1],\"gripSwitchingMode\":[1],\"holdOpen\":[1500,2000],\"pulseTimings\":[410,560,340,960],\"softGrip\":[0],\"speedControlStrategy\":[1]}},{\"id\":10,\"name\":\"Inventore voluptatem in molestiae voluptatem iusto et quia.\",\"slot\":1,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[300,200],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[0,60,70,30,30,70,0,60,30,20],\"gripPairsConfig\":[6,4,9,13,3,11,5,8],\"gripSequentialConfig\":[255,12,5,9,11,13,7,2,8,3,10,255],\"gripSwitchingMode\":[2],\"holdOpen\":[1500,2000],\"pulseTimings\":[70,240,860,540],\"softGrip\":[1],\"speedControlStrategy\":[0]}},{\"id\":11,\"name\":\"Et eum et quam qui repudiandae aspernatur et rem.\",\"slot\":2,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[500,400],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[40,50,90,30,40,50,50,20,40,50],\"gripPairsConfig\":[11,8,10,5,9,12,2,1],\"gripSequentialConfig\":[5,10,255,255,7,4,12,255,8,3,255,1],\"gripSwitchingMode\":[3],\"holdOpen\":[1500,2500],\"pulseTimings\":[130,940,370,230],\"softGrip\":[1],\"speedControlStrategy\":[0]}}]}",
            "restore_point": 1,
            "factory_reset_point": 0,
            "source": "configurator",
            "changed_by": 53,
            "firmware_version_id": null,
            "created_at": "2026-08-28T14:44:45.000000Z",
            "updated_at": "2026-08-28T14:44:45.000000Z",
            "author": {
                "id": 53,
                "mrn": "PGRW77WY1787928284",
                "name": "Marlene Renner",
                "email": "1787928284hammes.rene@example.org",
                "language": "en",
                "phone": "1-779-722-2517",
                "phone_country": "LB",
                "phone_verified_at": null,
                "address1": "8444 Strosin Avenue Apt. 437",
                "address2": "Moorebury, CT 25625-4980",
                "postal_code": "91605",
                "city": "Gislason, Bednar and Kihn",
                "country": "FR",
                "clinic_name": "Cassieside",
                "clinic_location": "267 Leatha Roads\nWest Collin, FL 38444-5275",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:44:44.000000Z",
                "updated_at": "2026-08-28T14:44:44.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "entries": [
                {
                    "id": 2,
                    "config_history_id": 3,
                    "config_id": 4,
                    "old_value": "officiis",
                    "new_value": "amet",
                    "created_at": "2026-08-28T14:44:45.000000Z",
                    "updated_at": "2026-08-28T14:44:45.000000Z",
                    "config_entry": {
                        "id": 4,
                        "device_id": 40,
                        "mode_id": null,
                        "key": "a",
                        "value": "cupiditate",
                        "created_at": "2026-08-28T14:44:45.000000Z",
                        "updated_at": "2026-08-28T14:44:45.000000Z"
                    }
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view device config",
    "code": "CONFIG:HISTORY:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:HISTORY:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/config/history

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Query Parameters

restore_point   boolean  optional  

Filter config entries by restore point status. Example: 1

factory_reset_point   boolean  optional  

Filter config entries by factory reset point status. Example: 1

date_from   integer  optional  

Filter config entries from date (timestamp). Example: 1642003200

date_to   integer  optional  

Filter config entries to date (timestamp). Example: 1642003200

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: author, entries).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Body Parameters

restore_point   boolean  optional  

Example: false

factory_reset_point   boolean  optional  

Example: false

date_from   string  optional  
date_to   string  optional  

Response

Response Fields

items   object   
id   integer   

Config history entry ID.

device_id   integer   

Associated device ID.

index   integer   

Config history index.

name   string   

Config snapshot name.

config   string   

Serialized config data.

restore_point   boolean   

Whether this entry is a restore point.

factory_reset_point   boolean   

Whether this entry is a factory reset point.

changed_by   integer   

ID of the user who made the change.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who made the change.

entries   object[]   

Individual config history entries.

notes   object[]   

Notes attached to this history entry.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get device config history entry

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/config/history/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config/history/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 5,
    "user_id": null,
    "device_id": 41,
    "index": null,
    "name": "Doloremque dolores earum possimus libero aspernatur sed consequatur.",
    "config": "{\"common\":{\"fingerStrength\":[1,200],\"gripPositions\":{\"_\":0,\"0\":{\"initial\":[77,64,32,38,29],\"limit\":[89,77,33,50,58]},\"1\":{\"initial\":[13,1,41,82,4],\"limit\":[30,61,85,94,6]},\"2\":{\"initial\":[68,55,42,32,20],\"limit\":[92,65,50,89,66]},\"3\":{\"initial\":[22,46,4,19,29],\"limit\":[42,77,24,60,36]},\"4\":{\"initial\":[42,4,38,73,31],\"limit\":[47,16,77,76,84]},\"5\":{\"initial\":[46,14,8,74,32],\"limit\":[86,63,12,78,94]},\"6\":{\"initial\":[31,5,16,60,43],\"limit\":[73,77,64,67,83]},\"7\":{\"initial\":[5,8,38,74,33],\"limit\":[65,17,87,91,44]},\"8\":{\"initial\":[44,35,5,12,27],\"limit\":[49,38,79,91,66]},\"9\":{\"initial\":[7,12,46,59,55],\"limit\":[22,14,80,60,60]},\"10\":{\"initial\":[45,5,50,76,63],\"limit\":[72,88,93,86,77]},\"11\":{\"initial\":[36,29,42,4,78],\"limit\":[80,35,43,20,78]},\"12\":{\"initial\":[10,68,8,6,2],\"limit\":[53,76,89,23,31]},\"13\":{\"initial\":[27,45,12,11,8],\"limit\":[27,45,92,15,46]}},\"inputSite\":[1]},\"modes\":[{\"id\":15,\"name\":\"Dolores adipisci doloremque iusto eos nesciunt modi consectetur aut.\",\"slot\":0,\"config\":{\"autoGrasp\":[1,0],\"coContractionTimings\":[300,200],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[10,60,60,70,50,70,20,100,10,40],\"gripPairsConfig\":[8,7,5,9,12,13,6,11],\"gripSequentialConfig\":[2,13,6,12,255,255,10,255,9,8,5,255],\"gripSwitchingMode\":[1],\"holdOpen\":[1500,2000],\"pulseTimings\":[140,10,410,360],\"softGrip\":[1],\"speedControlStrategy\":[0]}},{\"id\":16,\"name\":\"Ipsum placeat atque odit reiciendis corporis optio.\",\"slot\":1,\"config\":{\"autoGrasp\":[0,0],\"coContractionTimings\":[500,100],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[60,40,100,10,40,70,0,80,80,80],\"gripPairsConfig\":[4,11,13,8,3,1,10,12],\"gripSequentialConfig\":[255,1,3,4,255,255,8,255,5,2,255,255],\"gripSwitchingMode\":[3],\"holdOpen\":[2000,2500],\"pulseTimings\":[130,270,900,520],\"softGrip\":[1],\"speedControlStrategy\":[1]}},{\"id\":17,\"name\":\"Expedita cupiditate voluptatem deserunt qui quia id odit.\",\"slot\":2,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[500,100],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[50,20,0,100,30,90,100,0,30,100],\"gripPairsConfig\":[8,2,10,13,5,12,9,4],\"gripSequentialConfig\":[13,1,255,12,255,3,11,255,4,6,7,10],\"gripSwitchingMode\":[3],\"holdOpen\":[1500,2000],\"pulseTimings\":[530,780,120,570],\"softGrip\":[1],\"speedControlStrategy\":[0]}}]}",
    "restore_point": 1,
    "factory_reset_point": 0,
    "source": "configurator",
    "changed_by": 55,
    "firmware_version_id": null,
    "created_at": "2026-08-28T14:44:46.000000Z",
    "updated_at": "2026-08-28T14:44:46.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view device config",
    "code": "CONFIG:HISTORY_ENTRY:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:HISTORY_ENTRY:DEVICE_NOT_FOUND"
}
 

Example response (404, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG:HISTORY_ENTRY:HISTORY_ENTRY_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/config/history/{configId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

configId   integer   

Config history entry ID. Example: 1

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: author, entries).

Response

Response Fields

id   integer   

Config history entry ID.

device_id   integer   

Associated device ID.

index   integer   

Config history index.

name   string   

Config snapshot name.

config   string   

Serialized config data.

restore_point   boolean   

Whether this entry is a restore point.

factory_reset_point   boolean   

Whether this entry is a factory reset point.

changed_by   integer   

ID of the user who made the change.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who made the change.

entries   object[]   

Individual config history entries.

notes   object[]   

Notes attached to this history entry.

Update config history

requires authentication

Returns updated config history in response.

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/config/history/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Remote session 2022-05-30\",
    \"restore_point\": true,
    \"factory_reset_point\": false
}"
const url = new URL(
    "http://localhost:8000/api/device/1/config/history/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Remote session 2022-05-30",
    "restore_point": true,
    "factory_reset_point": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 6,
    "user_id": null,
    "device_id": 45,
    "index": null,
    "name": "Tempore voluptate non neque rerum blanditiis vero et voluptas.",
    "config": "{\"common\":{\"fingerStrength\":[1,400],\"gripPositions\":{\"_\":0,\"0\":{\"initial\":[44,22,52,7,6],\"limit\":[61,50,76,61,69]},\"1\":{\"initial\":[18,39,20,13,7],\"limit\":[73,69,29,86,73]},\"2\":{\"initial\":[26,22,32,3,24],\"limit\":[28,92,89,20,27]},\"3\":{\"initial\":[13,75,82,9,36],\"limit\":[35,81,86,21,77]},\"4\":{\"initial\":[27,47,8,51,44],\"limit\":[70,57,18,61,66]},\"5\":{\"initial\":[77,17,22,64,3],\"limit\":[91,85,44,74,32]},\"6\":{\"initial\":[3,14,12,39,29],\"limit\":[53,90,90,89,42]},\"7\":{\"initial\":[35,27,45,30,54],\"limit\":[62,56,48,81,88]},\"8\":{\"initial\":[15,21,25,60,5],\"limit\":[81,44,68,77,19]},\"9\":{\"initial\":[42,62,67,15,45],\"limit\":[88,74,80,70,67]},\"10\":{\"initial\":[10,69,53,24,14],\"limit\":[51,93,78,72,22]},\"11\":{\"initial\":[59,72,28,6,25],\"limit\":[65,85,54,11,81]},\"12\":{\"initial\":[4,66,43,44,1],\"limit\":[75,88,58,67,3]},\"13\":{\"initial\":[50,4,32,2,24],\"limit\":[81,94,58,93,90]}},\"inputSite\":[0]},\"modes\":[{\"id\":18,\"name\":\"Non sed nihil fugiat commodi nihil esse.\",\"slot\":0,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[200,100],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[30,90,70,50,70,10,40,10,40,80],\"gripPairsConfig\":[12,11,2,1,6,9,3,8],\"gripSequentialConfig\":[11,5,10,4,12,1,255,13,2,9,255,255],\"gripSwitchingMode\":[1],\"holdOpen\":[1500,1500],\"pulseTimings\":[780,550,100,600],\"softGrip\":[0],\"speedControlStrategy\":[1]}},{\"id\":19,\"name\":\"Facere porro temporibus ex.\",\"slot\":1,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[500,200],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[50,60,90,100,30,90,20,10,40,90],\"gripPairsConfig\":[5,7,2,9,4,8,3,1],\"gripSequentialConfig\":[255,7,13,255,2,12,4,6,255,8,255,5],\"gripSwitchingMode\":[1],\"holdOpen\":[1500,2500],\"pulseTimings\":[880,410,730,380],\"softGrip\":[1],\"speedControlStrategy\":[0]}},{\"id\":20,\"name\":\"Aliquam delectus dolorem est.\",\"slot\":2,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[500,200],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[10,60,70,90,10,60,10,40,20,90],\"gripPairsConfig\":[11,1,6,13,5,3,10,12],\"gripSequentialConfig\":[255,9,7,12,3,255,1,2,5,4,10,13],\"gripSwitchingMode\":[2],\"holdOpen\":[2000,2000],\"pulseTimings\":[420,160,760,310],\"softGrip\":[0],\"speedControlStrategy\":[0]}}]}",
    "restore_point": 0,
    "factory_reset_point": 0,
    "source": "configurator",
    "changed_by": 56,
    "firmware_version_id": null,
    "created_at": "2026-08-28T14:44:46.000000Z",
    "updated_at": "2026-08-28T14:44:46.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device config",
    "code": "CONFIG:HISTORY_UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Factory reset point already exists):


{
    "message": "Factory reset point does not exist",
    "code": "CONFIG:HISTORY_UPDATE:FACTORY_RESET_POINT_ALREADY_EXISTS"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:HISTORY_UPDATE:DEVICE_NOT_FOUND"
}
 

Example response (404, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG:HISTORY_UPDATE:HISTORY_ENTRY_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/config/history/{configId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

configId   integer   

Config history entry ID. Example: 1

Body Parameters

name   string  optional  

Config history entry name. Example: Remote session 2022-05-30

restore_point   boolean  optional  

Restore point status. Example: true

factory_reset_point   boolean  optional  

Point of factory reset. Example: false

Response

Response Fields

id   integer   

Config history entry ID.

device_id   integer   

Associated device ID.

index   integer   

Config history index.

name   string   

Config snapshot name.

config   string   

Serialized config data.

restore_point   boolean   

Whether this entry is a restore point.

factory_reset_point   boolean   

Whether this entry is a factory reset point.

changed_by   integer   

ID of the user who made the change.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who made the change.

entries   object[]   

Individual config history entries.

notes   object[]   

Notes attached to this history entry.

Undo single config history change

requires authentication

Returns updated config in response.

Example request:
curl --request DELETE \
    "http://localhost:8000/api/device/1/config/history/undo/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config/history/undo/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, Normal/compact response):


{
    "common": {
        "gripPairsConfig": [
            1,
            4,
            2,
            3,
            6,
            7,
            9,
            8
        ],
        "controlConfig": [
            0,
            1,
            0,
            0,
            0
        ],
        "emgThresholds": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "interval": [
            100
        ],
        "gripSequentialConfig": [
            1,
            2,
            4,
            3,
            0,
            255,
            6,
            7,
            9,
            8,
            255,
            255
        ]
    },
    "modes": [
        {
            "id": 100,
            "name": "Mode 1",
            "slot": 0,
            "config": {
                "interval": [
                    300
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 101,
            "name": "Mode 2",
            "slot": 1,
            "config": {
                "interval": [
                    400
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 102,
            "name": "Mode 3",
            "slot": 2,
            "config": {
                "interval": [
                    500
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device config",
    "code": "CONFIG:UNDO:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:UNDO:DEVICE_NOT_FOUND"
}
 

Example response (404, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG:UNDO:HISTORY_ENTRY_NOT_FOUND"
}
 

Request   

DELETE api/device/{deviceId}/config/history/undo/{configId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

configId   integer   

Config history entry ID. Example: 1

Restore config history entry

requires authentication

Restores config from given config history entry (all changes). Sends support ticket if patient is assigned to device, returns config instead.

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/config/restore/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config/restore/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, Patient not assigned, returns config):


{
    "common": {
        "gripPairsConfig": [
            1,
            4,
            2,
            3,
            6,
            7,
            9,
            8
        ],
        "controlConfig": [
            0,
            1,
            0,
            0,
            0
        ],
        "emgThresholds": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "interval": [
            100
        ],
        "gripSequentialConfig": [
            1,
            2,
            4,
            3,
            0,
            255,
            6,
            7,
            9,
            8,
            255,
            255
        ]
    },
    "modes": [
        {
            "id": 100,
            "name": "Mode 1",
            "slot": 0,
            "config": {
                "interval": [
                    300
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 101,
            "name": "Mode 2",
            "slot": 1,
            "config": {
                "interval": [
                    400
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 102,
            "name": "Mode 3",
            "slot": 2,
            "config": {
                "interval": [
                    500
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        }
    ]
}
 

Example response (202):


{
    "id": 1,
    "sender_id": 57,
    "recipient_id": 58,
    "device_id": null,
    "meeting_date": "2026-08-28 14:44:47",
    "meeting_type": "online_meeting",
    "contact_email": "margie02@yahoo.com",
    "status": "new",
    "created_at": "2026-08-28T14:44:47.000000Z",
    "updated_at": "2026-08-28T14:44:47.000000Z",
    "sender": {
        "id": 57,
        "mrn": "97NWCUQ21787928286",
        "name": "Mr. Ian Harvey",
        "email": "1787928286sgrady@example.org",
        "language": "en",
        "phone": "1-765-250-3388",
        "phone_country": "UZ",
        "phone_verified_at": null,
        "address1": "418 Roberts Drives Apt. 475",
        "address2": "Boehmhaven, KS 78744-2727",
        "postal_code": "33247-1031",
        "city": "Hammes, Hodkiewicz and Breitenberg",
        "country": "RO",
        "clinic_name": "Ricardoborough",
        "clinic_location": "543 Hauck Flat\nFisherbury, ME 97359",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:44:46.000000Z",
        "updated_at": "2026-08-28T14:44:46.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 58,
        "mrn": "G6Y5BS9E1787928287",
        "name": "Arch Lebsack",
        "email": "1787928287keebler.evans@example.org",
        "language": "en",
        "phone": "+1.830.239.7421",
        "phone_country": "LI",
        "phone_verified_at": null,
        "address1": "21814 Langosh Flat Apt. 508",
        "address2": "New Kalliestad, MA 88920-4693",
        "postal_code": "48469",
        "city": "Osinski and Sons",
        "country": "SK",
        "clinic_name": "West Destany",
        "clinic_location": "15743 Schneider Ferry\nWest Sophia, MA 72311",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:44:47.000000Z",
        "updated_at": "2026-08-28T14:44:47.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": null,
    "messages": [
        {
            "id": 1,
            "ticket_id": 1,
            "sender_id": 59,
            "title": "Prof.",
            "content": "Quis voluptas ut voluptates a rerum ex quasi eum.",
            "is_read": false,
            "created_at": "2026-08-28T14:44:48.000000Z",
            "updated_at": "2026-08-28T14:44:48.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device config",
    "code": "CONFIG:RESTORE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:RESTORE:DEVICE_NOT_FOUND"
}
 

Example response (404, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG:RESTORE:HISTORY_ENTRY_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/config/restore/{configId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

configId   integer   

Config history entry ID. Example: 1

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Restore to factory reset point

requires authentication

Restores config from the device's factory reset point. Sends a support ticket if the patient is assigned to the device. Returns the array that contains:

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/config/restore-factory-reset" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config/restore-factory-reset"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "config": {
        "common": {
            "inputSite": [
                1
            ],
            "generalHandSettings": false,
            "batteryBeep": [
                1,
                0
            ],
            "emgGains": false,
            "autoGrasp": false
        },
        "modes": [
            {
                "id": 1,
                "name": "Mode 0",
                "slot": 0,
                "config": {
                    "gripPairsConfig": false,
                    "emgThresholds": false,
                    "emgSpike": false,
                    "controlMode": false
                }
            },
            {
                "id": 1530,
                "name": "Mode 1",
                "slot": 1,
                "config": {
                    "gripPairsConfig": false,
                    "emgThresholds": false,
                    "emgSpike": false,
                    "controlMode": false
                }
            },
            {
                "id": 1531,
                "name": "Mode 2",
                "slot": 2,
                "config": {
                    "gripPairsConfig": false,
                    "emgThresholds": false,
                    "emgSpike": false,
                    "controlMode": false
                }
            }
        ]
    },
    "not_modified": {
        "common": {
            "inputSite": [
                1
            ],
            "batteryBeep": [
                1,
                0
            ],
            "generalHandSettings": [
                1,
                2,
                3,
                4
            ]
        },
        "modes": [
            {
                "userFeedbackType": false,
                "buzzingVolumeSettings": false
            },
            {
                "userFeedbackType": false,
                "buzzingVolumeSettings": false
            },
            {
                "userFeedbackType": false,
                "buzzingVolumeSettings": false
            }
        ]
    },
    "ticket": {
        "id": 1,
        "sender_id": 1,
        "recipient_id": 2,
        "device_id": 1,
        "meeting_date": "2025-07-22T15:00:00.000000Z",
        "meeting_type": "none",
        "contact_email": null,
        "status": "new",
        "created_at": "2025-07-22T15:00:00.000000Z",
        "updated_at": "2025-07-22T15:00:00.000000Z",
        "messages": [
            {
                "id": 1,
                "ticket_id": 1,
                "sender_id": 1,
                "title": "New config update",
                "content": "",
                "is_read": false,
                "created_at": "2025-07-22T15:00:00.000000Z",
                "updated_at": "2025-07-22T15:00:00.000000Z",
                "attachments": [
                    {
                        "id": 6629,
                        "ticket_id": 12973,
                        "ticket_message_id": 6517,
                        "type": "json",
                        "title": "Current config",
                        "attachment": "{\"common\":{},\"modes\":[{\"id\":1,\"name\":\"Mode 0\",\"slot\":0,\"config\":{}},{\"id\":2,\"name\":\"Mode 1\",\"slot\":1,\"config\":{}},{\"id\":3,\"name\":\"Mode 2\",\"slot\":2,\"config\":{}}]}",
                        "created_at": "2025-07-22T15:00:00.000000Z",
                        "updated_at": "2025-07-22T15:00:00.000000Z"
                    },
                    {
                        "id": 6630,
                        "ticket_id": 12973,
                        "ticket_message_id": 6517,
                        "type": "json",
                        "title": "New config",
                        "attachment": "{\"common\":{},\"modes\":[{\"id\":1,\"name\":\"Mode 0\",\"slot\":0,\"config\":{}},{\"id\":2,\"name\":\"Mode 1\",\"slot\":1,\"config\":{}},{\"id\":3,\"name\":\"Mode 2\",\"slot\":2,\"config\":{}}]}",
                        "created_at": "2025-07-22T15:00:00.000000Z",
                        "updated_at": "2025-07-22T15:00:00.000000Z"
                    }
                ]
            }
        ]
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device config",
    "code": "CONFIG:RESTORE_FACTORY_RESET:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG:RESTORE_FACTORY_RESET:NO_RESTORE_POINT"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:RESTORE_FACTORY_RESET:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/config/restore-factory-reset

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Send test config

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/config/send" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Fixed problem with grips.\",
    \"p2p_session\": 1,
    \"updateConfig\": false,
    \"common\": \"{\\\"gripPairsConfig\\\": [1, 4, 2, 3, 6, 7, 9, 8], \\\"controlConfig\\\": [0, 1, 0, 0, 0], \\\"gripSequentialConfig\\\": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]\",
    \"modes\": [
        {
            \"id\": 1,
            \"config\": \"{\\\"gripPairsConfig\\\": [1, 4, 2, 3, 6, 7, 9, 8], \\\"controlConfig\\\": [0, 1, 0, 0, 0], \\\"gripSequentialConfig\\\": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]\"
        }
    ]
}"
const url = new URL(
    "http://localhost:8000/api/device/1/config/send"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Fixed problem with grips.",
    "p2p_session": 1,
    "updateConfig": false,
    "common": "{\"gripPairsConfig\": [1, 4, 2, 3, 6, 7, 9, 8], \"controlConfig\": [0, 1, 0, 0, 0], \"gripSequentialConfig\": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]",
    "modes": [
        {
            "id": 1,
            "config": "{\"gripPairsConfig\": [1, 4, 2, 3, 6, 7, 9, 8], \"controlConfig\": [0, 1, 0, 0, 0], \"gripSequentialConfig\": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 7,
    "sender_id": 68,
    "recipient_id": 69,
    "device_id": null,
    "meeting_date": "2026-08-28 14:44:51",
    "meeting_type": "online_meeting",
    "contact_email": "schmitt.emelie@quigley.com",
    "status": "new",
    "created_at": "2026-08-28T14:44:52.000000Z",
    "updated_at": "2026-08-28T14:44:52.000000Z",
    "sender": {
        "id": 68,
        "mrn": "Y9KFBXAM1787928291",
        "name": "Francisca Padberg DVM",
        "email": "1787928291kdickens@example.org",
        "language": "en",
        "phone": "+17407721716",
        "phone_country": "IO",
        "phone_verified_at": null,
        "address1": "760 Bria Radial Suite 391",
        "address2": "Jewelltown, TN 60553",
        "postal_code": "61537-5907",
        "city": "Murray, Lynch and Bernhard",
        "country": "BE",
        "clinic_name": "East Amieborough",
        "clinic_location": "676 Adriel Avenue\nLake Fanny, NM 19013",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:44:51.000000Z",
        "updated_at": "2026-08-28T14:44:51.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 69,
        "mrn": "WBUD3X6L1787928291",
        "name": "Ashton Schaden",
        "email": "1787928291tamara.bartell@example.net",
        "language": "en",
        "phone": "(848) 840-0567",
        "phone_country": "HK",
        "phone_verified_at": null,
        "address1": "56871 Sally Oval Suite 454",
        "address2": "North Salvadortown, AR 85550-5786",
        "postal_code": "30728-1721",
        "city": "Witting, Dooley and Lockman",
        "country": "EE",
        "clinic_name": "Gersonport",
        "clinic_location": "770 Charlie Drives\nNew Cesarburgh, WA 00435-7046",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:44:51.000000Z",
        "updated_at": "2026-08-28T14:44:51.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": null,
    "messages": [
        {
            "id": 4,
            "ticket_id": 7,
            "sender_id": 70,
            "title": "Prof.",
            "content": "Quo fugiat debitis officia et rerum.",
            "is_read": false,
            "created_at": "2026-08-28T14:44:53.000000Z",
            "updated_at": "2026-08-28T14:44:53.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device config",
    "code": "CONFIG:SEND:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG:SEND:DEVICE_NOT_FOUND"
}
 

Example response (422, Device does not have an amputee assigned):


{
    "message": "Device does not have an amputee assigned",
    "code": "CONFIG:SEND:NO_PATIENT"
}
 

Example response (422, Invalid P2P session):


{
    "message": "Invalid P2P session",
    "code": "CONFIG:SEND:INVALID_P2P_SESSION"
}
 

Example response (422, Invalid config):


{
    "message": "Config has some problems and cannot be saved.",
    "errors": {
        "modes": {
            "mode_3": "Config mode 3 does not belong to device 12."
        },
        "values": {
            "common.inputSite": "Invalid value [\"11\"] for key inputSite - contains string values.",
            "common.gripsPositions.1.initial": "Invalid value [200,\"100\",\"100\",\"100\",\"100\"] for key gripsPositions.1.initial - contains string values.",
            "mode_1.inputSite": "Invalid value [\"11\"] for key inputSite - contains string values.",
            "mode_1.gripsPositions.0.initial": "Invalid value [\"200\",\"100\",\"100\",\"100\",\"100\"] for key gripsPositions.1.initial - contains string values."
        }
    },
    "code": "CONFIG:SEND:INVALID_CONFIG"
}
 

Request   

POST api/device/{deviceId}/config/send

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Body Parameters

description   string  optional  

Config description to add in message notification. Example: Fixed problem with grips.

p2p_session   integer  optional  

P2P Session ID. If config was prepared during P2P session, pass its ID, if not, pass null. The id of an existing record in the App\Models\P2PSession table. Example: 1

updateConfig   boolean  optional  

Determines if device config should be updated. Example: false

common   string  optional  

Common config as JSON string. MUST_BE_JSON. Example: {"gripPairsConfig": [1, 4, 2, 3, 6, 7, 9, 8], "controlConfig": [0, 1, 0, 0, 0], "gripSequentialConfig": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]

modes   object[]  optional  
id   string  optional  

Config mode ID. The id of an existing record in the App\Models\ConfigMode table. Example: 1

config   string  optional  

Config specific for mode as JSON string. MUST_BE_JSON. Example: {"gripPairsConfig": [1, 4, 2, 3, 6, 7, 9, 8], "controlConfig": [0, 1, 0, 0, 0], "gripSequentialConfig": [1, 2, 4, 3, 0, 255, 6, 7, 9, 8, 255, 255]

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Convert config

requires authentication

Convert config JSON to match given Firmware Version. Keys are moved between common config and modes.

Example request:
curl --request POST \
    "http://localhost:8000/api/config/convert" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"config\": \"[\\\"id\\\",\\\"enim\\\"]\",
    \"firmware\": 1
}"
const url = new URL(
    "http://localhost:8000/api/config/convert"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "config": "[\"id\",\"enim\"]",
    "firmware": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "common": {
        "gripPairsConfig": [
            1,
            4,
            2,
            3,
            6,
            7,
            9,
            8
        ],
        "controlConfig": [
            0,
            1,
            0,
            0,
            0
        ],
        "emgThresholds": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "interval": [
            100
        ],
        "gripSequentialConfig": [
            1,
            2,
            4,
            3,
            0,
            255,
            6,
            7,
            9,
            8,
            255,
            255
        ]
    },
    "modes": [
        {
            "id": 100,
            "name": "Mode 1",
            "slot": 0,
            "config": {
                "interval": [
                    300
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 101,
            "name": "Mode 2",
            "slot": 1,
            "config": {
                "interval": [
                    400
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 102,
            "name": "Mode 3",
            "slot": 2,
            "config": {
                "interval": [
                    500
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device config",
    "code": "CONFIG:CONVERT:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Firmware version not found):


{
    "message": "Firmware version not found",
    "code": "CONFIG:CONVERT:FIRMWARE_NOT_FOUND"
}
 

Request   

POST api/config/convert

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

config   string   

Full config JSON. MUST_BE_JSON. Example: ["id","enim"]

firmware   string   

Firmware Version ID to which config should be adjusted. The id of an existing record in the App\Models\FirmwareVersion table. Example: 1

Config Demo

API endpoints for managing config demos

List config demos

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/config/demos?accepted=11" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config/demos"
);

const params = {
    "accepted": "11",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "user_id": null,
            "device_id": 78,
            "message_id": 8,
            "config": "Eius quod voluptatem eius.",
            "is_accepted": 1,
            "notes": "Quam harum et laborum mollitia eveniet.",
            "created_at": "2026-08-28T14:45:02.000000Z",
            "updated_at": "2026-08-28T14:45:02.000000Z",
            "message": {
                "id": 8,
                "ticket_id": 15,
                "sender_id": 92,
                "title": "Dr.",
                "content": "Qui sed est deserunt blanditiis id ipsum non.",
                "is_read": false,
                "created_at": "2026-08-28T14:45:02.000000Z",
                "updated_at": "2026-08-28T14:45:02.000000Z"
            }
        },
        {
            "id": 2,
            "user_id": null,
            "device_id": 79,
            "message_id": 10,
            "config": "Exercitationem voluptate voluptate et aut aperiam eveniet in.",
            "is_accepted": 1,
            "notes": "Rerum ut officiis ipsum soluta quos facilis odio.",
            "created_at": "2026-08-28T14:45:04.000000Z",
            "updated_at": "2026-08-28T14:45:04.000000Z",
            "message": {
                "id": 10,
                "ticket_id": 18,
                "sender_id": 97,
                "title": "Prof.",
                "content": "Saepe qui molestiae voluptas quidem perspiciatis id eum alias.",
                "is_read": false,
                "created_at": "2026-08-28T14:45:04.000000Z",
                "updated_at": "2026-08-28T14:45:04.000000Z"
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access config demos",
    "code": "CONFIG_DEMO:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_DEMO:LIST:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/config/demos

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Query Parameters

accepted   integer  optional  

Filter config demos by accepted status. If not specified, all entries will be returned. Pass -1 to get entries not accepted or rejected yet. The value must be one of -1, 0 or 1. Example: 11

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: message, message.ticket, message.attachments).

Update config demo

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/device/1/config/demos/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"is_accepted\": false,
    \"notes\": \"Something is still not working\"
}"
const url = new URL(
    "http://localhost:8000/api/device/1/config/demos/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "is_accepted": false,
    "notes": "Something is still not working"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 3,
    "user_id": null,
    "device_id": 80,
    "message_id": 11,
    "config": "Quia natus consequatur impedit autem dicta dolorem.",
    "is_accepted": 1,
    "notes": "Rerum saepe beatae ut temporibus iste suscipit.",
    "created_at": "2026-08-28T14:45:05.000000Z",
    "updated_at": "2026-08-28T14:45:05.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access config demos",
    "code": "CONFIG_DEMO:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_DEMO:UPDATE:DEVICE_NOT_FOUND"
}
 

Example response (404, Config demo not found):


{
    "message": "Config demo not found",
    "code": "CONFIG_DEMO:UPDATE:DEMO_NOT_FOUND"
}
 

Request   

PUT api/device/{deviceId}/config/demos/{demoId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

demoId   integer   

Config demo ID. Example: 1

Body Parameters

is_accepted   boolean  optional  

Determines if demo config was accepted by patient. Example: false

notes   string  optional  

Patient notes about tested config. Example: Something is still not working

Config Modes

API endpoints for managing config modes

List config modes

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/config-modes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config-modes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 72,
        "device_id": 109,
        "slot": null,
        "name": "Error dolor ut ut consequatur ratione nihil velit.",
        "active": 0,
        "created_at": "2026-08-28T14:45:10.000000Z",
        "updated_at": "2026-08-28T14:45:10.000000Z",
        "device": {
            "id": 109,
            "serial": "c018cb28-9368-31a2-b1fa-84c8661b6822",
            "bluetooth_id": "ede1e0ea-1ccd-3db3-93bc-9153767039ea",
            "company_id": null,
            "model_id": null,
            "amputee_id": 110,
            "clinician_id": null,
            "firmware_version_id": null,
            "pcb_version_id": null,
            "reverse_magnets": 0,
            "is_electrode": 0,
            "active": 1,
            "last_activity_at": "0000-00-00 00:00:00",
            "first_connected_at": null,
            "measurements": null,
            "created_at": "2026-08-28T14:45:10.000000Z",
            "updated_at": "2026-08-28T14:45:10.000000Z",
            "first_config_change_at": null,
            "amputee": {
                "id": 110,
                "mrn": "LEUZ5S681787928310",
                "name": "Bradford Skiles V",
                "email": "1787928310cassin.felicia@example.org",
                "language": "en",
                "phone": "(828) 982-4280",
                "phone_country": "CO",
                "phone_verified_at": null,
                "address1": "8745 Conroy Course",
                "address2": "Hermanport, AR 33772-8422",
                "postal_code": "52750-5905",
                "city": "Kshlerin Inc",
                "country": "AT",
                "clinic_name": "Port Melisa",
                "clinic_location": "57568 Lowe Avenue\nWest Lisaville, MO 87300",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:10.000000Z",
                "updated_at": "2026-08-28T14:45:10.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        }
    },
    {
        "id": 73,
        "device_id": 111,
        "slot": null,
        "name": "Tenetur id iste quia dolor dolor et.",
        "active": 0,
        "created_at": "2026-08-28T14:45:10.000000Z",
        "updated_at": "2026-08-28T14:45:10.000000Z",
        "config": {}
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list config modes",
    "code": "CONFIG_MODES:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_MODES:LIST:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/config-modes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Response

Response Fields

id   integer   

Config mode ID.

device_id   integer   

Associated device ID.

slot   integer   

Mode slot index (0, 1 or 2).

name   string   

Mode name.

active   boolean   

Whether the mode is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Get config mode

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/config-modes/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config-modes/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 74,
    "device_id": 112,
    "slot": null,
    "name": "Repellat incidunt laborum omnis assumenda.",
    "active": 0,
    "created_at": "2026-08-28T14:45:10.000000Z",
    "updated_at": "2026-08-28T14:45:10.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list config modes",
    "code": "CONFIG_MODES:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_MODES:GET:DEVICE_NOT_FOUND"
}
 

Example response (404, Config mode not found):


{
    "message": "Config mode not found",
    "code": "CONFIG_MODES:GET:MODE_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/config-modes/{modeId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

modeId   integer   

Config mode ID. Example: 1

Response

Response Fields

id   integer   

Config mode ID.

device_id   integer   

Associated device ID.

slot   integer   

Mode slot index (0, 1 or 2).

name   string   

Mode name.

active   boolean   

Whether the mode is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Create config mode

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/config-modes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"slot\": 0,
    \"name\": \"Sport mode\",
    \"active\": true
}"
const url = new URL(
    "http://localhost:8000/api/device/1/config-modes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "slot": 0,
    "name": "Sport mode",
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 75,
    "device_id": 113,
    "slot": null,
    "name": "Natus doloremque similique sint dolorum.",
    "active": 1,
    "created_at": "2026-08-28T14:45:10.000000Z",
    "updated_at": "2026-08-28T14:45:10.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create config modes",
    "code": "CONFIG_MODES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_MODES:CREATE:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/config-modes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Body Parameters

slot   integer  optional  

Mode index on device. Example: 0

Must be one of:
  • 0
  • 1
  • 2
name   string   

Name of mode. Example: Sport mode

active   boolean  optional  

Active status. Default: 1. Example: true

Response

Response Fields

id   integer   

Config mode ID.

device_id   integer   

Associated device ID.

slot   integer   

Mode slot index (0, 1 or 2).

name   string   

Mode name.

active   boolean   

Whether the mode is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update config mode

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/device/1/config-modes/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"slot\": 0,
    \"name\": \"Sport mode\",
    \"active\": true
}"
const url = new URL(
    "http://localhost:8000/api/device/1/config-modes/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "slot": 0,
    "name": "Sport mode",
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 76,
    "device_id": 114,
    "slot": null,
    "name": "Placeat ea perspiciatis aliquid nobis nisi aspernatur iste aliquam.",
    "active": 1,
    "created_at": "2026-08-28T14:45:10.000000Z",
    "updated_at": "2026-08-28T14:45:10.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update config mode",
    "code": "CONFIG_MODES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_MODES:UPDATE:DEVICE_NOT_FOUND"
}
 

Example response (404, Config mode not found):


{
    "message": "Config mode not found",
    "code": "CONFIG_MODES:UPDATE:MODE_NOT_FOUND"
}
 

Request   

PUT api/device/{deviceId}/config-modes/{modeId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

modeId   integer   

Config mode ID. Example: 1

Body Parameters

slot   integer  optional  

Mode index on device. Example: 0

Must be one of:
  • 0
  • 1
  • 2
name   string  optional  

Name of mode. Example: Sport mode

active   boolean  optional  

Active status. Default: 1. Example: true

Response

Response Fields

id   integer   

Config mode ID.

device_id   integer   

Associated device ID.

slot   integer   

Mode slot index (0, 1 or 2).

name   string   

Mode name.

active   boolean   

Whether the mode is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Copy device config from template

requires authentication

Copy config template into selected config mode. Sends support ticket if patient is assigned to device, returns config instead.

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/config-modes/1/from-template/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config-modes/1/from-template/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, Patient not assigned, returns config):


{
    "common": {
        "gripPairsConfig": [
            1,
            4,
            2,
            3,
            6,
            7,
            9,
            8
        ],
        "controlConfig": [
            0,
            1,
            0,
            0,
            0
        ],
        "emgThresholds": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "interval": [
            100
        ],
        "gripSequentialConfig": [
            1,
            2,
            4,
            3,
            0,
            255,
            6,
            7,
            9,
            8,
            255,
            255
        ]
    },
    "modes": [
        {
            "id": 100,
            "name": "Mode 1",
            "slot": 0,
            "config": {
                "interval": [
                    300
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 101,
            "name": "Mode 2",
            "slot": 1,
            "config": {
                "interval": [
                    400
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        },
        {
            "id": 102,
            "name": "Mode 3",
            "slot": 2,
            "config": {
                "interval": [
                    500
                ],
                "fingerStrength": [
                    1,
                    100
                ],
                "autoGrasp": [
                    0,
                    100
                ],
                "emgSpike": [
                    0,
                    300
                ]
            }
        }
    ]
}
 

Example response (202):


{
    "id": 21,
    "sender_id": 112,
    "recipient_id": 113,
    "device_id": null,
    "meeting_date": "2026-08-28 14:45:11",
    "meeting_type": "online_meeting",
    "contact_email": "vkutch@yahoo.com",
    "status": "new",
    "created_at": "2026-08-28T14:45:11.000000Z",
    "updated_at": "2026-08-28T14:45:11.000000Z",
    "sender": {
        "id": 112,
        "mrn": "GYBK92741787928310",
        "name": "Jude Braun",
        "email": "1787928310crist.marta@example.org",
        "language": "en",
        "phone": "820.835.1785",
        "phone_country": "UY",
        "phone_verified_at": null,
        "address1": "46468 Norval Circles",
        "address2": "Dessiemouth, LA 47307",
        "postal_code": "23168-5283",
        "city": "Mosciski, Swift and Wisozk",
        "country": "LV",
        "clinic_name": "Randalburgh",
        "clinic_location": "202 Madisyn Forge\nSchusterfurt, WA 29928",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:11.000000Z",
        "updated_at": "2026-08-28T14:45:11.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 113,
        "mrn": "LZYYBV521787928311",
        "name": "Mrs. Teagan Kautzer DDS",
        "email": "1787928311aurelio41@example.com",
        "language": "en",
        "phone": "929.326.2220",
        "phone_country": "DE",
        "phone_verified_at": null,
        "address1": "47268 Nicolas Summit",
        "address2": "North Mack, MI 55111",
        "postal_code": "25590-4983",
        "city": "Graham-Skiles",
        "country": "FR",
        "clinic_name": "McCulloughhaven",
        "clinic_location": "1095 Koss Center\nEast Romanshire, WA 15175-2049",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:11.000000Z",
        "updated_at": "2026-08-28T14:45:11.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": null,
    "messages": [
        {
            "id": 12,
            "ticket_id": 21,
            "sender_id": 114,
            "title": "Prof.",
            "content": "Natus quis dolores exercitationem reprehenderit laborum.",
            "is_read": false,
            "created_at": "2026-08-28T14:45:12.000000Z",
            "updated_at": "2026-08-28T14:45:12.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update config mode",
    "code": "CONFIG_MODES:COPY_TEMPLATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_MODES:COPY_TEMPLATE:DEVICE_NOT_FOUND"
}
 

Example response (404, Config mode not found):


{
    "message": "Config mode not found",
    "code": "CONFIG_MODES:COPY_TEMPLATE:MODE_NOT_FOUND"
}
 

Example response (404, Config template not found):


{
    "message": "Config template not found",
    "code": "CONFIG_MODES:COPY_TEMPLATE:TEMPLATE_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/config-modes/{modeId}/from-template/{templateId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

modeId   integer   

Config mode ID. Example: 1

templateId   integer   

Config template ID. Example: 1

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Config Notes

API endpoints for config history notes

Get config entry notes list

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/config/1/notes?user=1&type=public" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config/1/notes"
);

const params = {
    "user": "1",
    "type": "public",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "config_history_id": 7,
            "user_id": 81,
            "note": "Suscipit ipsum repellat qui dolor tempore.",
            "type": "public",
            "created_at": "2026-08-28T14:44:57.000000Z",
            "updated_at": "2026-08-28T14:44:57.000000Z",
            "author": {
                "id": 81,
                "mrn": "A96BJXU31787928297",
                "name": "Raul Schinner",
                "email": "1787928297kreichert@example.net",
                "language": "en",
                "phone": "605.996.8571",
                "phone_country": "NA",
                "phone_verified_at": null,
                "address1": "697 Lemke Circles Suite 696",
                "address2": "Port Claude, SC 47509",
                "postal_code": "89815-1237",
                "city": "Hammes-Nader",
                "country": "CY",
                "clinic_name": "North Chaim",
                "clinic_location": "66960 Murazik Shores\nCruickshankborough, VA 66264",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:44:57.000000Z",
                "updated_at": "2026-08-28T14:44:57.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        },
        {
            "id": 2,
            "config_history_id": 8,
            "user_id": 83,
            "note": "Neque et minima harum pariatur consequatur.",
            "type": "public",
            "created_at": "2026-08-28T14:44:58.000000Z",
            "updated_at": "2026-08-28T14:44:58.000000Z",
            "author": {
                "id": 83,
                "mrn": "R8XECTM21787928298",
                "name": "Mrs. Kelsi Walsh IV",
                "email": "1787928298walsh.daisy@example.com",
                "language": "en",
                "phone": "202.850.5406",
                "phone_country": "LY",
                "phone_verified_at": null,
                "address1": "97454 Keyshawn Village Suite 767",
                "address2": "East Noebury, AK 60091",
                "postal_code": "14649",
                "city": "Botsford and Sons",
                "country": "SE",
                "clinic_name": "Derrickside",
                "clinic_location": "922 Bonnie Street Suite 546\nPort Jocelynshire, OR 97528-6596",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:44:58.000000Z",
                "updated_at": "2026-08-28T14:44:58.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access config notes",
    "code": "CONFIG_NOTES:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_NOTES:LIST:DEVICE_NOT_FOUND"
}
 

Example response (404, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG_NOTES:LIST:HISTORY_ENTRY_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/config/{configId}/notes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

configId   integer   

Config history entry ID. Example: 1

Query Parameters

user   integer  optional  

Filter notes by user. Example: 1

type   string  optional  

Filter notes by type (available: public and private) Example: public

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: author).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Note ID.

config_history_id   integer   

Associated config history entry ID.

user_id   integer   

ID of the user who wrote the note.

note   string   

Note content.

type   string   

Note visibility.

Must be one of:
  • public
  • private
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who wrote the note.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get config entry note

requires authentication

Returns single config history entry note in response.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/config/1/notes/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config/1/notes/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 3,
    "config_history_id": 9,
    "user_id": 85,
    "note": "Voluptas pariatur dolorum excepturi maiores ullam eligendi reiciendis.",
    "type": "public",
    "created_at": "2026-08-28T14:44:59.000000Z",
    "updated_at": "2026-08-28T14:44:59.000000Z",
    "author": {
        "id": 85,
        "mrn": "ANFYV7VJ1787928298",
        "name": "Rey Beier",
        "email": "1787928298vhaag@example.com",
        "language": "en",
        "phone": "(361) 331-6686",
        "phone_country": "UA",
        "phone_verified_at": null,
        "address1": "8522 Pamela Islands",
        "address2": "East Darby, VT 14202-8089",
        "postal_code": "56885-0477",
        "city": "Ullrich-Halvorson",
        "country": "DK",
        "clinic_name": "Johnsfort",
        "clinic_location": "225 Bogisich Drive\nMinaland, NM 70721",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:44:58.000000Z",
        "updated_at": "2026-08-28T14:44:58.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access config notes",
    "code": "CONFIG_NOTES:GET_ENTRY:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_NOTES:GET_ENTRY:DEVICE_NOT_FOUND"
}
 

Example response (404, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG_NOTES:GET_ENTRY:HISTORY_ENTRY_NOT_FOUND"
}
 

Example response (404, Config history note not found):


{
    "message": "Config history note not found",
    "code": "CONFIG_NOTES:GET_ENTRY:HISTORY_NOTE_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/config/{configId}/notes/{noteId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

configId   integer   

Config history entry ID. Example: 1

noteId   integer   

Device config entry note ID. Example: 1

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: author).

Response

Response Fields

id   integer   

Note ID.

config_history_id   integer   

Associated config history entry ID.

user_id   integer   

ID of the user who wrote the note.

note   string   

Note content.

type   string   

Note visibility.

Must be one of:
  • public
  • private
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who wrote the note.

Create config entry note

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/config/1/notes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"note\": \"Maxime ut maxime sit.\",
    \"type\": \"public\"
}"
const url = new URL(
    "http://localhost:8000/api/device/1/config/1/notes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "note": "Maxime ut maxime sit.",
    "type": "public"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 4,
    "config_history_id": 10,
    "user_id": 87,
    "note": "Est earum porro ullam qui.",
    "type": "public",
    "created_at": "2026-08-28T14:45:00.000000Z",
    "updated_at": "2026-08-28T14:45:00.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to add config notes",
    "code": "CONFIG_NOTES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_NOTES:CREATE:DEVICE_NOT_FOUND"
}
 

Example response (404, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG_NOTES:CREATE:HISTORY_ENTRY_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/config/{configId}/notes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

configId   integer   

Config history entry ID. Example: 1

Body Parameters

note   string  optional  

Note text. Example: Maxime ut maxime sit.

type   string  optional  

Type of the note. Default: public. Example: public

Must be one of:
  • public
  • private

Response

Response Fields

id   integer   

Note ID.

config_history_id   integer   

Associated config history entry ID.

user_id   integer   

ID of the user who wrote the note.

note   string   

Note content.

type   string   

Note visibility.

Must be one of:
  • public
  • private
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who wrote the note.

Delete config note

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/device/1/config/1/notes/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/config/1/notes/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Config history note deleted",
    "code": "CONFIG_NOTES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete config notes",
    "code": "CONFIG_NOTES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CONFIG_NOTES:DELETE:DEVICE_NOT_FOUND"
}
 

Example response (404, Config history entry not found):


{
    "message": "Config history entry not found",
    "code": "CONFIG_NOTES:DELETE:HISTORY_ENTRY_NOT_FOUND"
}
 

Example response (404, Config history note not found):


{
    "message": "Config history note not found",
    "code": "CONFIG_NOTES:DELETE:HISTORY_NOTE_NOT_FOUND"
}
 

Request   

DELETE api/device/{deviceId}/config/{configId}/notes/{noteId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

configId   integer   

Config history entry ID. Example: 1

noteId   integer   

Device config entry note ID. Example: 1

Config Schema

API endpoints for config schema management

Get config schema

requires authentication

Returns list of config schema entries for given firmware version.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/versions/firmware/1/schema?filter=modes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/firmware/1/schema"
);

const params = {
    "filter": "modes",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "firmware_id": 7,
        "key": "esse",
        "is_common": 1,
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    },
    {
        "id": 2,
        "firmware_id": 9,
        "key": "omnis",
        "is_common": 0,
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view config schema",
    "code": "CONFIG_SCHEMA:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Firmware version not found):


{
    "message": "Firmware version not found",
    "code": "CONFIG_SCHEMA:GET:FIRMWARE_NOT_FOUND"
}
 

Request   

GET api/versions/firmware/{firmwareId}/schema

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

firmwareId   integer   

Firmware version ID. Example: 1

Query Parameters

filter   string  optional  

Filter entries by type (available: common, modes). By default all entries all returned. Example: modes

Response

Response Fields

id   integer   

Config schema ID.

firmware_id   integer   

Associated firmware version ID.

key   string   

Config schema key.

is_common   boolean   

Whether this key is shared across all modes.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

firmware   object   

Associated firmware version.

Add config schema

requires authentication

Add one or many config schema entries. Each entry is one key in config. Body of this request is simple array of objects:


            [
                {"key": "key_name", "is_common": 1},
                {"key": "another_name", "is_common": 0},
                ...
            ]
        
Example request:
curl --request POST \
    "http://localhost:8000/api/versions/firmware/ut/schema" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "[
    {
        \"key\": \"gripsPosition.0.initial\",
        \"is_common\": 1
    }
]"
const url = new URL(
    "http://localhost:8000/api/versions/firmware/ut/schema"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = [
    {
        "key": "gripsPosition.0.initial",
        "is_common": 1
    }
];

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


[
    {
        "id": 3,
        "firmware_id": 11,
        "key": "eveniet",
        "is_common": 1,
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    },
    {
        "id": 4,
        "firmware_id": 13,
        "key": "voluptatem",
        "is_common": 0,
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage config schema",
    "code": "CONFIG_SCHEMA:ADD:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Firmware version not found):


{
    "message": "Firmware version not found",
    "code": "CONFIG_SCHEMA:ADD:FIRMWARE_NOT_FOUND"
}
 

Request   

POST api/versions/firmware/{firmwareId}/schema

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

firmwareId   string   

Example: ut

Body Parameters

The request body is an array (object[]`). Each item has the following properties:

key   string  optional  

Config key. Example: gripsPosition.0.initial

is_common   integer  optional  

Information if the key belongs to common config (1) or to modes (0). Default: 1. Example: 1

Response

Response Fields

id   integer   

Config schema ID.

firmware_id   integer   

Associated firmware version ID.

key   string   

Config schema key.

is_common   boolean   

Whether this key is shared across all modes.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

firmware   object   

Associated firmware version.

Delete config schema

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/versions/firmware/1/schema/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/firmware/1/schema/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Config schema entry deleted",
    "code": "CONFIG_SCHEMA:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage config schema",
    "code": "CONFIG_SCHEMA:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Firmware version not found):


{
    "message": "Firmware version not found",
    "code": "CONFIG_SCHEMA:DELETE:FIRMWARE_NOT_FOUND"
}
 

Example response (404, Config schema entry not found):


{
    "message": "Config schema entry not found",
    "code": "CONFIG_SCHEMA:DELETE:SCHEMA_NOT_FOUND"
}
 

Request   

DELETE api/versions/firmware/{firmwareId}/schema/{schemaId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

firmwareId   integer   

Firmware version ID. Example: 1

schemaId   integer   

Config schema ID. Example: 1

Config Templates

API endpoints for managing config templates

Get config templates list

requires authentication

Entries where author is present are private and owned by its author. Entries where author is null should be considered as global templates prepared by Aether team.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/config/templates?search=sport&author=1&scope=me" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/config/templates"
);

const params = {
    "search": "sport",
    "author": "1",
    "scope": "me",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "name": "Doloremque enim accusamus modi maiores laboriosam eius.",
            "description": "Ipsa cumque velit culpa recusandae esse eum.",
            "author_id": 101,
            "company_id": null,
            "config": "{\"autoGrasp\":[0,100],\"coContractionTimings\":[300,300],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[50,100,100,80,30,0,20,90,50,70],\"gripPairsConfig\":[4,9,11,2,3,7,6,1],\"gripSequentialConfig\":[255,255,255,1,255,5,13,255,4,8,2,255],\"gripSwitchingMode\":[1],\"holdOpen\":[2000,2500],\"pulseTimings\":[120,920,590,590],\"softGrip\":[0],\"speedControlStrategy\":[1]}",
            "created_at": "2026-08-28T14:45:06.000000Z",
            "updated_at": "2026-08-28T14:45:06.000000Z",
            "author": {
                "id": 101,
                "mrn": "EAZSEPNL1787928305",
                "name": "Mrs. Kenya Jerde",
                "email": "1787928305gerhold.lysanne@example.com",
                "language": "en",
                "phone": "+1-712-301-3695",
                "phone_country": "AZ",
                "phone_verified_at": null,
                "address1": "5011 Kuvalis Trace",
                "address2": "Pfannerstillview, NJ 89316",
                "postal_code": "34237-7507",
                "city": "Padberg-Lebsack",
                "country": "HR",
                "clinic_name": "West Mohammed",
                "clinic_location": "36611 Kirk Via\nNew Hilda, OH 47009-2040",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:05.000000Z",
                "updated_at": "2026-08-28T14:45:05.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        },
        {
            "id": 2,
            "name": "Culpa possimus molestiae atque eum veritatis aut.",
            "description": "Exercitationem et iure quasi harum sed.",
            "author_id": 102,
            "company_id": null,
            "config": "{\"autoGrasp\":[0,100],\"coContractionTimings\":[400,200],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[80,40,40,0,90,100,80,20,100,20],\"gripPairsConfig\":[10,9,11,5,1,7,3,2],\"gripSequentialConfig\":[255,7,11,12,6,13,9,10,8,2,1,4],\"gripSwitchingMode\":[2],\"holdOpen\":[1500,2000],\"pulseTimings\":[490,470,430,570],\"softGrip\":[1],\"speedControlStrategy\":[1]}",
            "created_at": "2026-08-28T14:45:06.000000Z",
            "updated_at": "2026-08-28T14:45:06.000000Z",
            "author": {
                "id": 102,
                "mrn": "VT8F9W9H1787928306",
                "name": "Prof. Jevon Funk V",
                "email": "1787928306nkunze@example.org",
                "language": "en",
                "phone": "559-517-1580",
                "phone_country": "GE",
                "phone_verified_at": null,
                "address1": "94472 Myrtle Island",
                "address2": "Lake Tryciaberg, GA 85400",
                "postal_code": "83706-8928",
                "city": "Cummerata and Sons",
                "country": "PT",
                "clinic_name": "East Angelicachester",
                "clinic_location": "1836 Moen Divide Suite 984\nPort Lela, MN 02843",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:06.000000Z",
                "updated_at": "2026-08-28T14:45:06.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list config templates",
    "code": "CONFIG_TEMPLATES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/config/templates

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Filter config templates by name. Example: sport

author   integer  optional  

Super Admin only: Filter config templates by author. Example: 1

scope   string  optional  

ClinicAdmin/Clinician/ClinicianSupport only: Filter config templates by scope. The value must be one of:

  • me (entries where current user is author),
  • global (entries added by Aether).
Example: `me`
perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: author).

Response

Response Fields

items   object   
id   integer   

Config template ID.

name   string   

Template name.

description   string   

Template description.

author_id   integer   

ID of the user who created the template.

company_id   integer   

Associated company ID.

config   string   

Serialized config data.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who created the template.

notes   object[]   

Notes attached to this template.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get config template

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/config/templates/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/config/templates/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 3,
    "name": "Eos dolor illo quisquam ut ut aliquid.",
    "description": "Ex sequi saepe corporis.",
    "author_id": 103,
    "company_id": null,
    "config": "{\"autoGrasp\":[0,100],\"coContractionTimings\":[400,200],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[90,0,0,100,70,70,80,0,50,100],\"gripPairsConfig\":[9,4,11,5,7,10,2,1],\"gripSequentialConfig\":[255,7,8,2,255,10,12,11,6,13,4,3],\"gripSwitchingMode\":[3],\"holdOpen\":[2500,2500],\"pulseTimings\":[750,440,730,860],\"softGrip\":[0],\"speedControlStrategy\":[1]}",
    "created_at": "2026-08-28T14:45:07.000000Z",
    "updated_at": "2026-08-28T14:45:07.000000Z",
    "author": {
        "id": 103,
        "mrn": "YEE2AKAX1787928306",
        "name": "Elyse Corkery",
        "email": "1787928306gottlieb.edmund@example.com",
        "language": "en",
        "phone": "838-265-0066",
        "phone_country": "RS",
        "phone_verified_at": null,
        "address1": "571 Lemke Union",
        "address2": "Paucekmouth, KY 48513",
        "postal_code": "58801-3194",
        "city": "Oberbrunner-Rau",
        "country": "HR",
        "clinic_name": "Port Brendenstad",
        "clinic_location": "8789 Pagac Plaza Apt. 896\nFeilfurt, ME 43689-9167",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:06.000000Z",
        "updated_at": "2026-08-28T14:45:06.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view config template",
    "code": "CONFIG_TEMPLATES:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Config template not found):


{
    "message": "Config template not found",
    "code": "CONFIG_TEMPLATES:GET:TEMPLATE_NOT_FOUND"
}
 

Request   

GET api/config/templates/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Config template ID. Example: 1

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: author).

Response

Response Fields

id   integer   

Config template ID.

name   string   

Template name.

description   string   

Template description.

author_id   integer   

ID of the user who created the template.

company_id   integer   

Associated company ID.

config   string   

Serialized config data.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who created the template.

notes   object[]   

Notes attached to this template.

Create new config template

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/config/templates" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Default config for Aether Zeus\",
    \"description\": \"Description of the config template.\",
    \"owner\": \"company\",
    \"author\": 1,
    \"config\": \"{\\\"param_1\\\": [100, 200], \\\"param_2\\\": [100, 200, 300]}\"
}"
const url = new URL(
    "http://localhost:8000/api/config/templates"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Default config for Aether Zeus",
    "description": "Description of the config template.",
    "owner": "company",
    "author": 1,
    "config": "{\"param_1\": [100, 200], \"param_2\": [100, 200, 300]}"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "name": "Enim fugit repellendus placeat.",
    "description": "Voluptas aliquam enim corrupti amet ratione voluptas neque officiis.",
    "author_id": 104,
    "company_id": null,
    "config": "{\"autoGrasp\":[1,0],\"coContractionTimings\":[500,100],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[20,40,100,0,40,20,50,90,70,80],\"gripPairsConfig\":[2,6,8,4,1,13,3,10],\"gripSequentialConfig\":[12,10,6,4,11,8,2,255,13,5,3,255],\"gripSwitchingMode\":[3],\"holdOpen\":[2500,2500],\"pulseTimings\":[530,290,410,860],\"softGrip\":[0],\"speedControlStrategy\":[0]}",
    "created_at": "2026-08-28T14:45:07.000000Z",
    "updated_at": "2026-08-28T14:45:07.000000Z",
    "author": {
        "id": 104,
        "mrn": "9LTJX7DJ1787928307",
        "name": "Urban Hodkiewicz",
        "email": "1787928307wanda.hill@example.com",
        "language": "en",
        "phone": "+1 (443) 713-4954",
        "phone_country": "LU",
        "phone_verified_at": null,
        "address1": "2518 Scarlett Mission Suite 122",
        "address2": "Tillmanfort, NE 93901-6305",
        "postal_code": "03905-6217",
        "city": "Corwin and Sons",
        "country": "EE",
        "clinic_name": "Bransonmouth",
        "clinic_location": "193 Norval Creek Apt. 927\nPort Antoinette, MI 46194",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:07.000000Z",
        "updated_at": "2026-08-28T14:45:07.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create config template",
    "code": "CONFIG_TEMPLATES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/config/templates

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Name of the config template. Example: Default config for Aether Zeus

description   string  optional  

Description of the config template. Example: Description of the config template.

owner   string  optional  

Mark config template owned by clinician or company. Default: me (clinician). Example: company

Must be one of:
  • me
  • company
author   string  optional  

Super Admin only: User ID to be the author of template. The id of an existing record in the App\Models\User table. Example: 1

config   string   

Full config. MUST_BE_JSON. Example: {"param_1": [100, 200], "param_2": [100, 200, 300]}

Response

Response Fields

id   integer   

Config template ID.

name   string   

Template name.

description   string   

Template description.

author_id   integer   

ID of the user who created the template.

company_id   integer   

Associated company ID.

config   string   

Serialized config data.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who created the template.

notes   object[]   

Notes attached to this template.

Update config template

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/config/templates/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Default config for Aether Zeus\",
    \"description\": \"Description of the config template.\",
    \"owner\": \"company\",
    \"author\": 1,
    \"config\": \"{\\\"param_1\\\": [100, 200], \\\"param_2\\\": [100, 200, 300]}\"
}"
const url = new URL(
    "http://localhost:8000/api/config/templates/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Default config for Aether Zeus",
    "description": "Description of the config template.",
    "owner": "company",
    "author": 1,
    "config": "{\"param_1\": [100, 200], \"param_2\": [100, 200, 300]}"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 5,
    "name": "Qui accusantium cum repellat sed natus.",
    "description": "Eos voluptatem asperiores illo iste iusto.",
    "author_id": 105,
    "company_id": null,
    "config": "{\"autoGrasp\":[0,100],\"coContractionTimings\":[400,100],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[40,60,40,60,10,50,10,10,10,40],\"gripPairsConfig\":[8,3,2,7,6,10,4,1],\"gripSequentialConfig\":[6,11,255,255,255,4,1,5,255,12,8,7],\"gripSwitchingMode\":[2],\"holdOpen\":[1500,2000],\"pulseTimings\":[170,610,400,890],\"softGrip\":[1],\"speedControlStrategy\":[0]}",
    "created_at": "2026-08-28T14:45:08.000000Z",
    "updated_at": "2026-08-28T14:45:08.000000Z",
    "author": {
        "id": 105,
        "mrn": "AETTAQB61787928307",
        "name": "Miss Dandre Gutmann DDS",
        "email": "1787928307simeon04@example.com",
        "language": "en",
        "phone": "(662) 800-5659",
        "phone_country": "VG",
        "phone_verified_at": null,
        "address1": "31922 Reid Branch",
        "address2": "West Burley, PA 36443-3821",
        "postal_code": "87466",
        "city": "Durgan and Sons",
        "country": "BG",
        "clinic_name": "Kirlinmouth",
        "clinic_location": "6067 Heathcote Keys\nRunolfssonfort, WV 42621",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:07.000000Z",
        "updated_at": "2026-08-28T14:45:07.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update config template",
    "code": "CONFIG_TEMPLATES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Config template not found):


{
    "message": "Config template not found",
    "code": "CONFIG_TEMPLATES:UPDATE:TEMPLATE_NOT_FOUND"
}
 

Request   

PUT api/config/templates/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Config template ID. Example: 1

Body Parameters

name   string  optional  

Name of the config template. Example: Default config for Aether Zeus

description   string  optional  

Description of the config template. Example: Description of the config template.

owner   string  optional  

Mark config template owned by clinician or company. Default: me (clinician). Example: company

Must be one of:
  • me
  • company
author   string  optional  

Super Admin only: User ID to be the author of template. The id of an existing record in the App\Models\User table. Example: 1

config   string  optional  

Full config. MUST_BE_JSON. Example: {"param_1": [100, 200], "param_2": [100, 200, 300]}

Response

Response Fields

id   integer   

Config template ID.

name   string   

Template name.

description   string   

Template description.

author_id   integer   

ID of the user who created the template.

company_id   integer   

Associated company ID.

config   string   

Serialized config data.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who created the template.

notes   object[]   

Notes attached to this template.

Delete config template

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/config/templates/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/config/templates/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Config template deleted",
    "code": "CONFIG_TEMPLATES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete config template",
    "code": "CONFIG_TEMPLATES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Config template not found):


{
    "message": "Config template not found",
    "code": "CONFIG_TEMPLATES:DELETE:TEMPLATE_NOT_FOUND"
}
 

Request   

DELETE api/config/templates/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Config template ID. Example: 1

Config Templates Notes

API endpoints for config templates notes

Get config templates notes list

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/config/templates/1/notes?user=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/config/templates/1/notes"
);

const params = {
    "user": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "template_id": 6,
            "user_id": 106,
            "note": "Qui aut sit et eaque.",
            "created_at": "2026-08-28T14:45:08.000000Z",
            "updated_at": "2026-08-28T14:45:08.000000Z",
            "author": {
                "id": 106,
                "mrn": "FJ5ZV6K91787928308",
                "name": "Dorothea Lemke",
                "email": "1787928308nellie17@example.net",
                "language": "en",
                "phone": "207-889-8801",
                "phone_country": "AI",
                "phone_verified_at": null,
                "address1": "2478 Torey Drives Apt. 888",
                "address2": "West Kathryn, WY 06478-8631",
                "postal_code": "87852",
                "city": "Towne Group",
                "country": "FI",
                "clinic_name": "South Gavin",
                "clinic_location": "537 McCullough Cliffs Suite 846\nSouth Flavieborough, KY 35911-7081",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:08.000000Z",
                "updated_at": "2026-08-28T14:45:08.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        },
        {
            "id": 2,
            "template_id": 7,
            "user_id": 107,
            "note": "Et eum quidem ea modi.",
            "created_at": "2026-08-28T14:45:09.000000Z",
            "updated_at": "2026-08-28T14:45:09.000000Z",
            "author": {
                "id": 107,
                "mrn": "2X5BV5Z91787928308",
                "name": "Hilma Christiansen",
                "email": "1787928308enrico17@example.org",
                "language": "en",
                "phone": "682.591.5210",
                "phone_country": "VN",
                "phone_verified_at": null,
                "address1": "9420 Kathlyn Vista",
                "address2": "Kyliestad, PA 22887",
                "postal_code": "99341",
                "city": "Hoeger, Walsh and Dietrich",
                "country": "MT",
                "clinic_name": "North Jaymeton",
                "clinic_location": "5537 Wilmer Views Suite 452\nAnnabellefort, ND 50592",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:08.000000Z",
                "updated_at": "2026-08-28T14:45:08.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access config templates notes",
    "code": "CONFIG_TEMPLATE_NOTES:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Config template not found):


{
    "message": "Config template not found",
    "code": "CONFIG_TEMPLATE_NOTES:LIST:TEMPLATE_NOT_FOUND"
}
 

Request   

GET api/config/templates/{id}/notes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Config template ID. Example: 1

Query Parameters

user   integer  optional  

Filter notes by user. Example: 1

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: author).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Note ID.

template_id   integer   

Associated config template ID.

user_id   integer   

ID of the user who wrote the note.

note   string   

Note content.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who wrote the note.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get config template note

requires authentication

Returns single config template note in response.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/config/templates/1/notes/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/config/templates/1/notes/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 3,
    "template_id": 8,
    "user_id": 108,
    "note": "Repellat expedita tenetur tempora id rem nulla veniam.",
    "created_at": "2026-08-28T14:45:09.000000Z",
    "updated_at": "2026-08-28T14:45:09.000000Z",
    "author": {
        "id": 108,
        "mrn": "M57HCACQ1787928309",
        "name": "Jasmin Runolfsson Jr.",
        "email": "1787928309edwardo99@example.com",
        "language": "en",
        "phone": "+1 (302) 989-2533",
        "phone_country": "BS",
        "phone_verified_at": null,
        "address1": "953 Hessel Walk",
        "address2": "Port Cotyview, IL 39668",
        "postal_code": "27760",
        "city": "Sanford and Sons",
        "country": "UA",
        "clinic_name": "Joeyport",
        "clinic_location": "102 Nathen Fall Apt. 341\nPort Bernadineport, LA 27032-1674",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:09.000000Z",
        "updated_at": "2026-08-28T14:45:09.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access config templates notes",
    "code": "CONFIG_TEMPLATE_NOTES:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Config template not found):


{
    "message": "Config template not found",
    "code": "CONFIG_TEMPLATE_NOTES:GET:TEMPLATE_NOT_FOUND"
}
 

Example response (404, Config template note not found):


{
    "message": "Config template note not found",
    "code": "CONFIG_TEMPLATE_NOTES:GET:NOTE_NOT_FOUND"
}
 

Request   

GET api/config/templates/{id}/notes/{noteId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Config template ID. Example: 1

noteId   integer   

Config template note ID. Example: 1

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: author).

Response

Response Fields

id   integer   

Note ID.

template_id   integer   

Associated config template ID.

user_id   integer   

ID of the user who wrote the note.

note   string   

Note content.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who wrote the note.

Create new config template note

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/config/templates/1/notes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"note\": \"Facere dolorem illum dolore reiciendis.\"
}"
const url = new URL(
    "http://localhost:8000/api/config/templates/1/notes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "note": "Facere dolorem illum dolore reiciendis."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "template_id": 9,
    "user_id": 109,
    "note": "Qui aut ipsa dicta sapiente quidem.",
    "created_at": "2026-08-28T14:45:09.000000Z",
    "updated_at": "2026-08-28T14:45:09.000000Z",
    "author": {
        "id": 109,
        "mrn": "HFLQGQNT1787928309",
        "name": "Prof. Arnold Moore DDS",
        "email": "1787928309leonie.macejkovic@example.org",
        "language": "en",
        "phone": "1-985-585-8239",
        "phone_country": "MA",
        "phone_verified_at": null,
        "address1": "998 Schmeler Cliffs",
        "address2": "Brennaport, IN 18685-0358",
        "postal_code": "30052",
        "city": "Moore-Corwin",
        "country": "BG",
        "clinic_name": "Ardithburgh",
        "clinic_location": "55161 Kariane Circle Apt. 630\nDenafurt, NH 81177",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:09.000000Z",
        "updated_at": "2026-08-28T14:45:09.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to add config templates notes",
    "code": "CONFIG_TEMPLATE_NOTES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Config template not found):


{
    "message": "Config template not found",
    "code": "CONFIG_TEMPLATE_NOTES:CREATE:TEMPLATE_NOT_FOUND"
}
 

Request   

POST api/config/templates/{id}/notes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Config template ID. Example: 1

Body Parameters

note   string  optional  

Note text. Example: Facere dolorem illum dolore reiciendis.

Response

Response Fields

id   integer   

Note ID.

template_id   integer   

Associated config template ID.

user_id   integer   

ID of the user who wrote the note.

note   string   

Note content.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who wrote the note.

Delete config template note

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/config/templates/1/notes/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/config/templates/1/notes/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Config template note deleted",
    "code": "CONFIG_TEMPLATE_NOTES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete config templates notes",
    "code": "CONFIG_TEMPLATE_NOTES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Config template not found):


{
    "message": "Config template not found",
    "code": "CONFIG_TEMPLATE_NOTES:DELETE:TEMPLATE_NOT_FOUND"
}
 

Example response (404, Config template note not found):


{
    "message": "Config template note not found",
    "code": "CONFIG_TEMPLATE_NOTES:DELETE:NOTE_NOT_FOUND"
}
 

Request   

DELETE api/config/templates/{id}/notes/{noteId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Config template ID. Example: 1

noteId   integer   

Config template note ID. Example: 1

Custom Grips

API endpoints for custom grips management

List custom grips templates

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/custom-grips-templates" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/custom-grips-templates"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "user_id": 260,
            "name": "hschuppe",
            "initial_position": "[50, 50, 50, 50, 50]",
            "limit_position": "[900, 900, 900, 900, 900]",
            "active_fingers": "[0, 1, 1, 1, 1]",
            "created_at": "2026-08-28T14:46:15.000000Z",
            "updated_at": "2026-08-28T14:46:15.000000Z"
        },
        {
            "id": 2,
            "user_id": 261,
            "name": "tcrooks",
            "initial_position": "[50, 50, 50, 50, 50]",
            "limit_position": "[900, 900, 900, 900, 900]",
            "active_fingers": "[0, 1, 1, 1, 1]",
            "created_at": "2026-08-28T14:46:15.000000Z",
            "updated_at": "2026-08-28T14:46:15.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage custom grips templates",
    "code": "CUSTOM_GRIPS_TEMPLATES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/custom-grips-templates

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

Custom grip template ID.

user_id   integer   

Owner user ID.

name   string   

Template name.

initial_position   string   

Initial finger positions.

limit_position   string   

Limit finger positions.

active_fingers   string   

Active fingers configuration.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create custom grip template

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/custom-grips-templates" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Custom Grip Template 1\",
    \"initial_position\": \"[50, 50, 50, 50, 50]\",
    \"limit_position\": \"[900, 900, 900, 900, 900]\",
    \"active_fingers\": \"[0, 1, 1, 1, 1]\"
}"
const url = new URL(
    "http://localhost:8000/api/custom-grips-templates"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Custom Grip Template 1",
    "initial_position": "[50, 50, 50, 50, 50]",
    "limit_position": "[900, 900, 900, 900, 900]",
    "active_fingers": "[0, 1, 1, 1, 1]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "user_id": 262,
    "name": "solon.stracke",
    "initial_position": "[50, 50, 50, 50, 50]",
    "limit_position": "[900, 900, 900, 900, 900]",
    "active_fingers": "[0, 1, 1, 1, 1]",
    "created_at": "2026-08-28T14:46:16.000000Z",
    "updated_at": "2026-08-28T14:46:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage custom grips templates",
    "code": "CUSTOM_GRIPS_TEMPLATES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Custom grip template name in use):


{
    "message": "Custom grip template name already in use",
    "code": "CUSTOM_GRIPS_TEMPLATES:CREATE:NAME_IN_USE"
}
 

Request   

POST api/custom-grips-templates

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Name of custom grip template. Example: Custom Grip Template 1

initial_position   string   

Grip initial position. Value should be a string containing the array of values. Example: "[50, 50, 50, 50, 50]". Must start with one of [ Must end with one of ]. Example: [50, 50, 50, 50, 50]

limit_position   string   

Grip limit position. Value should be a string containing the array of values. Example: "[900, 900, 900, 900, 900]". Must start with one of [ Must end with one of ]. Example: [900, 900, 900, 900, 900]

active_fingers   string   

Grip active fingers. Value should be a string containing the array of values. Example: "[0, 1, 1, 1, 1]". Must start with one of [ Must end with one of ]. Example: [0, 1, 1, 1, 1]

Response

Response Fields

id   integer   

Custom grip template ID.

user_id   integer   

Owner user ID.

name   string   

Template name.

initial_position   string   

Initial finger positions.

limit_position   string   

Limit finger positions.

active_fingers   string   

Active fingers configuration.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete custom grip template

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/custom-grips-templates/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/custom-grips-templates/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Custom grip deleted",
    "code": "CUSTOM_GRIPS_TEMPLATES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage custom grips templates",
    "code": "CUSTOM_GRIPS_TEMPLATES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Custom grip template not found):


{
    "message": "Custom grip template not found",
    "code": "CUSTOM_GRIPS_TEMPLATES:DELETE:TEMPLATE_NOT_FOUND"
}
 

Request   

DELETE api/custom-grips-templates/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Custom Grip Template ID. Example: 1

List custom grips

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/custom-grips" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/custom-grips"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "device_id": 136,
            "name": "considine.alysa",
            "opposed": 1,
            "grip_number": 0,
            "created_at": "2026-08-28T14:46:16.000000Z",
            "updated_at": "2026-08-28T14:46:16.000000Z"
        },
        {
            "id": 2,
            "device_id": 137,
            "name": "kunze.kathleen",
            "opposed": 1,
            "grip_number": 0,
            "created_at": "2026-08-28T14:46:16.000000Z",
            "updated_at": "2026-08-28T14:46:16.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view custom grips",
    "code": "CUSTOM_GRIPS:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CUSTOM_GRIPS:LIST:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/custom-grips

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

Custom grip ID.

device_id   integer   

Associated device ID.

name   string   

Custom grip name.

opposed   boolean   

Whether the grip is opposed.

grip_number   integer   

Grip slot number.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create custom grip

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/custom-grips" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Custom Grip 1\",
    \"opposed\": true,
    \"grip_number\": 1
}"
const url = new URL(
    "http://localhost:8000/api/device/1/custom-grips"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Custom Grip 1",
    "opposed": true,
    "grip_number": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "device_id": 138,
    "name": "geovanni.fay",
    "opposed": 1,
    "grip_number": 0,
    "created_at": "2026-08-28T14:46:16.000000Z",
    "updated_at": "2026-08-28T14:46:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage custom grips",
    "code": "CUSTOM_GRIPS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Custom grip name in use):


{
    "message": "Custom grip name already in use",
    "code": "CUSTOM_GRIPS:CREATE:NAME_IN_USE"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CUSTOM_GRIPS:CREATE:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/custom-grips

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Body Parameters

name   string   

Name of custom grip. Example: Custom Grip 1

opposed   boolean   

Grip opposed status. Example: true

grip_number   integer   

Grip number (not ID). Example: 1

Response

Response Fields

id   integer   

Custom grip ID.

device_id   integer   

Associated device ID.

name   string   

Custom grip name.

opposed   boolean   

Whether the grip is opposed.

grip_number   integer   

Grip slot number.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update custom grip

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/device/1/custom-grips/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Custom Grip 1\",
    \"opposed\": true,
    \"grip_number\": 1
}"
const url = new URL(
    "http://localhost:8000/api/device/1/custom-grips/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Custom Grip 1",
    "opposed": true,
    "grip_number": 1
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 4,
    "device_id": 139,
    "name": "considine.rosella",
    "opposed": 1,
    "grip_number": 0,
    "created_at": "2026-08-28T14:46:16.000000Z",
    "updated_at": "2026-08-28T14:46:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage custom grips",
    "code": "CUSTOM_GRIPS:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Custom grip name in use):


{
    "message": "Custom grip name already in use",
    "code": "CUSTOM_GRIPS:UPDATE:NAME_IN_USE"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CUSTOM_GRIPS:UPDATE:DEVICE_NOT_FOUND"
}
 

Example response (404, Custom grip not found):


{
    "message": "Custom grip not found",
    "code": "CUSTOM_GRIPS:UPDATE:GRIP_NOT_FOUND"
}
 

Request   

PUT api/device/{deviceId}/custom-grips/{gripId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

gripId   integer   

Custom Grip ID. Example: 1

Body Parameters

name   string  optional  

Name of custom grip. Example: Custom Grip 1

opposed   boolean  optional  

Grip opposed status. Example: true

grip_number   integer  optional  

Grip number (not ID). Example: 1

Response

Response Fields

id   integer   

Custom grip ID.

device_id   integer   

Associated device ID.

name   string   

Custom grip name.

opposed   boolean   

Whether the grip is opposed.

grip_number   integer   

Grip slot number.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete custom grip

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/device/1/custom-grips/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/custom-grips/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Custom grip template deleted",
    "code": "CUSTOM_GRIPS:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage custom grips",
    "code": "CUSTOM_GRIPS:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "CUSTOM_GRIPS:DELETE:DEVICE_NOT_FOUND"
}
 

Example response (404, Custom grip not found):


{
    "message": "Custom grip not found",
    "code": "CUSTOM_GRIPS:DELETE:GRIP_NOT_FOUND"
}
 

Request   

DELETE api/device/{deviceId}/custom-grips/{gripId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

gripId   integer   

Custom Grip ID. Example: 1

Device Models

API endpoints for device models management

Get device models list

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/devices/models?active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/devices/models"
);

const params = {
    "active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 3,
        "name": "Zeus hand v1",
        "type": "leg",
        "orientation": "right",
        "active": 1,
        "created_at": "2026-08-28T14:44:37.000000Z",
        "updated_at": "2026-08-28T14:44:37.000000Z"
    },
    {
        "id": 4,
        "name": "Zeus hand v1",
        "type": "leg",
        "orientation": "right",
        "active": 1,
        "created_at": "2026-08-28T14:44:37.000000Z",
        "updated_at": "2026-08-28T14:44:37.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list device models",
    "code": "DEVICE_MODELS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/devices/models

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

active   integer  optional  

Filter device models by active status (available: 0 - only inactive, 1 - only active, any - all users). Default: 1. Example: 1

Response

Response Fields

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Create device model

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/devices/models" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Zeus hand v1\",
    \"type\": \"hand\",
    \"orientation\": \"left\",
    \"active\": true
}"
const url = new URL(
    "http://localhost:8000/api/devices/models"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Zeus hand v1",
    "type": "hand",
    "orientation": "left",
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 5,
    "name": "Zeus hand v1",
    "type": "leg",
    "orientation": "right",
    "active": 1,
    "created_at": "2026-08-28T14:44:37.000000Z",
    "updated_at": "2026-08-28T14:44:37.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create device model",
    "code": "DEVICE_MODELS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/devices/models

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Model name. Example: Zeus hand v1

type   string  optional  

Model type (e.g. hand). Example: hand

orientation   string  optional  

Model orientation if specified. Example: left

active   boolean  optional  

Device model active status (0 - inactive, 1 - active). Example: true

Response

Response Fields

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update device model

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/devices/models/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Zeus hand v1\",
    \"type\": \"hand\",
    \"orientation\": \"right\",
    \"active\": true
}"
const url = new URL(
    "http://localhost:8000/api/devices/models/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Zeus hand v1",
    "type": "hand",
    "orientation": "right",
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 6,
    "name": "Zeus hand v1",
    "type": "arm",
    "orientation": "left",
    "active": 1,
    "created_at": "2026-08-28T14:44:37.000000Z",
    "updated_at": "2026-08-28T14:44:37.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device model",
    "code": "DEVICE_MODELS:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device model not found):


{
    "message": "Device model not found",
    "code": "DEVICE_MODELS:UPDATE:MODEL_NOT_FOUND"
}
 

Request   

PUT api/devices/models/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

DeviceModel ID. Example: 1

Body Parameters

name   string  optional  

Model name. Example: Zeus hand v1

type   string  optional  

Model type (e.g. hand). Example: hand

orientation   string  optional  

Model orientation if specified. Example: right

active   boolean  optional  

Device model active status (0 - inactive, 1 - active). Example: true

Response

Response Fields

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Device Peripherals

API endpoints for device peripherals management

List device peripherals

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/peripherals" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/peripherals"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "device_id": 140,
            "name": "earum",
            "company": "Buckridge-Kautzer",
            "internal_id": "18b5e07c-b004-3584-b465-af9f557d717c",
            "type": "ut",
            "created_at": "2026-08-28T14:46:16.000000Z",
            "updated_at": "2026-08-28T14:46:16.000000Z"
        },
        {
            "id": 2,
            "device_id": 141,
            "name": "excepturi",
            "company": "Mills LLC",
            "internal_id": "6d7ebe36-e5e8-3838-8563-2afd0244c6aa",
            "type": "voluptatibus",
            "created_at": "2026-08-28T14:46:16.000000Z",
            "updated_at": "2026-08-28T14:46:16.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view device peripherals",
    "code": "DEVICE_PERIPHERALS:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICE_PERIPHERALS:LIST:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{deviceId}/peripherals

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Create device peripheral

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/peripherals" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Bluetooth Dongle\",
    \"company\": \"Acme Corp\",
    \"internal_id\": \"BT-DONGLE-001\",
    \"type\": \"bluetooth_dongle\"
}"
const url = new URL(
    "http://localhost:8000/api/device/1/peripherals"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Bluetooth Dongle",
    "company": "Acme Corp",
    "internal_id": "BT-DONGLE-001",
    "type": "bluetooth_dongle"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "device_id": 142,
    "name": "id",
    "company": "Ankunding-Lakin",
    "internal_id": "56de637f-099e-3cf2-a0c1-dba0f38a31db",
    "type": "esse",
    "created_at": "2026-08-28T14:46:16.000000Z",
    "updated_at": "2026-08-28T14:46:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage device peripherals",
    "code": "DEVICE_PERIPHERALS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICE_PERIPHERALS:CREATE:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/peripherals

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Body Parameters

name   string   

Peripheral device name. Example: Bluetooth Dongle

company   string   

Manufacturer of the peripheral device. Example: Acme Corp

internal_id   string   

Internal identifier of the peripheral device. Example: BT-DONGLE-001

type   string   

Type of the peripheral device. Example: bluetooth_dongle

Update device peripheral

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/device/1/peripherals/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Bluetooth Dongle\",
    \"company\": \"Acme Corp\",
    \"internal_id\": \"BT-DONGLE-001\",
    \"type\": \"bluetooth_dongle\"
}"
const url = new URL(
    "http://localhost:8000/api/device/1/peripherals/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Bluetooth Dongle",
    "company": "Acme Corp",
    "internal_id": "BT-DONGLE-001",
    "type": "bluetooth_dongle"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 4,
    "device_id": 143,
    "name": "omnis",
    "company": "Heaney and Sons",
    "internal_id": "770e6091-46cc-34ac-b92a-7dce7dfc3d11",
    "type": "quo",
    "created_at": "2026-08-28T14:46:16.000000Z",
    "updated_at": "2026-08-28T14:46:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage device peripherals",
    "code": "DEVICE_PERIPHERALS:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICE_PERIPHERALS:UPDATE:DEVICE_NOT_FOUND"
}
 

Example response (404, Peripheral not found):


{
    "message": "Device peripheral not found",
    "code": "DEVICE_PERIPHERALS:UPDATE:PERIPHERAL_NOT_FOUND"
}
 

Request   

PUT api/device/{deviceId}/peripherals/{peripheralId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

peripheralId   integer   

Device Peripheral ID. Example: 1

Body Parameters

name   string  optional  

Peripheral device name. Example: Bluetooth Dongle

company   string  optional  

Manufacturer of the peripheral device. Example: Acme Corp

internal_id   string  optional  

Internal identifier of the peripheral device. Example: BT-DONGLE-001

type   string  optional  

Type of the peripheral device. Example: bluetooth_dongle

Delete device peripheral

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/device/1/peripherals/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/peripherals/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Device peripheral deleted",
    "code": "DEVICE_PERIPHERALS:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage device peripherals",
    "code": "DEVICE_PERIPHERALS:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICE_PERIPHERALS:DELETE:DEVICE_NOT_FOUND"
}
 

Example response (404, Peripheral not found):


{
    "message": "Device peripheral not found",
    "code": "DEVICE_PERIPHERALS:DELETE:PERIPHERAL_NOT_FOUND"
}
 

Request   

DELETE api/device/{deviceId}/peripherals/{peripheralId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

peripheralId   integer   

Device Peripheral ID. Example: 1

Devices

API endpoints for devices management

Check serial number or bluetooth ID

Public endpoint responding with status of given device serial number or bluetooth ID. If any of these numbers can be found in database, status will be true. Otherwise, status will be false (device does not exist).

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/check/S3R1AL-NUM83R" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"serial\"
}"
const url = new URL(
    "http://localhost:8000/api/device/check/S3R1AL-NUM83R"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "serial"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "status": true
}
 

Request   

GET api/device/check/{serial}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

serial   string   

Device serial number or bluetooth ID. Example: S3R1AL-NUM83R

Body Parameters

type   string  optional  

Type of checked identifier. Example: serial

Must be one of:
  • serial
  • bluetooth_id

Get devices list

requires authentication

Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/devices?search=S3R1AL-NUM83R&active=-1&amputee=1&clinician=1&model=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/devices"
);

const params = {
    "search": "S3R1AL-NUM83R",
    "active": "-1",
    "amputee": "1",
    "clinician": "1",
    "model": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 5,
            "serial": "f5f44438-de1d-364b-91cf-55f52d7304a8",
            "bluetooth_id": "000d9bbf-bbf2-3e8f-b423-43b3c7763caf",
            "company_id": null,
            "model_id": 7,
            "amputee_id": 38,
            "clinician_id": null,
            "firmware_version_id": null,
            "pcb_version_id": null,
            "reverse_magnets": 0,
            "is_electrode": 0,
            "active": 1,
            "last_activity_at": "0000-00-00 00:00:00",
            "first_connected_at": null,
            "measurements": null,
            "created_at": "2026-08-28T14:44:37.000000Z",
            "updated_at": "2026-08-28T14:44:37.000000Z",
            "first_config_change_at": null,
            "model": {
                "id": 7,
                "name": "Zeus hand v1",
                "type": "arm",
                "orientation": "left",
                "active": 1,
                "created_at": "2026-08-28T14:44:37.000000Z",
                "updated_at": "2026-08-28T14:44:37.000000Z"
            },
            "amputee": {
                "id": 38,
                "mrn": "AR3VM37V1787928277",
                "name": "Nicklaus Bogisich",
                "email": "1787928277ramona.hill@example.net",
                "language": "en",
                "phone": "(562) 223-0881",
                "phone_country": "BN",
                "phone_verified_at": null,
                "address1": "264 Murphy Ramp Apt. 957",
                "address2": "North Bethel, MI 29216",
                "postal_code": "47162",
                "city": "Dietrich-Reynolds",
                "country": "SI",
                "clinic_name": "Schusterton",
                "clinic_location": "182 Hudson Trafficway\nLake Brendan, CT 00703-1846",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:44:37.000000Z",
                "updated_at": "2026-08-28T14:44:37.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        },
        {
            "id": 6,
            "serial": "f64c4c0c-64e1-363f-8831-3b1f9d2d1771",
            "bluetooth_id": "64fb06e8-6584-3c09-bc21-1a11f08bbe1f",
            "company_id": null,
            "model_id": 8,
            "amputee_id": 39,
            "clinician_id": null,
            "firmware_version_id": null,
            "pcb_version_id": null,
            "reverse_magnets": 0,
            "is_electrode": 0,
            "active": 1,
            "last_activity_at": "0000-00-00 00:00:00",
            "first_connected_at": null,
            "measurements": null,
            "created_at": "2026-08-28T14:44:37.000000Z",
            "updated_at": "2026-08-28T14:44:37.000000Z",
            "first_config_change_at": null,
            "model": {
                "id": 8,
                "name": "Zeus hand v1",
                "type": "leg",
                "orientation": "left",
                "active": 1,
                "created_at": "2026-08-28T14:44:37.000000Z",
                "updated_at": "2026-08-28T14:44:37.000000Z"
            },
            "amputee": {
                "id": 39,
                "mrn": "L9L9G6NN1787928277",
                "name": "Moshe Maggio",
                "email": "1787928277sporer.jordan@example.com",
                "language": "en",
                "phone": "1-680-812-9717",
                "phone_country": "FM",
                "phone_verified_at": null,
                "address1": "7926 Adonis Centers",
                "address2": "New Micaelaside, MN 62085-6161",
                "postal_code": "99920-5797",
                "city": "Denesik PLC",
                "country": "AT",
                "clinic_name": "Lindgrenborough",
                "clinic_location": "860 Schinner Lakes Suite 698\nRachelhaven, IL 31125-9380",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:44:37.000000Z",
                "updated_at": "2026-08-28T14:44:37.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list devices",
    "code": "DEVICES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/devices

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Filter devices by searching in: serial number, bluetooth ID. Example: S3R1AL-NUM83R

active   integer  optional  

Filter devices by active status (available: 0 - only inactive, 1 - only active, -1 - all users). Default: 1. Example: -1

amputee   string  optional  

Filter devices by amputees. Provide single ID (amputee=1), array of IDs (amputee[]=1&amputee[]=2) or comma-separated list of IDs (amputee=1,2). Pass value 0 to get devices unassigned to any amputee. Example: 1

clinician   string  optional  

Filter devices by clinicians. Provide single ID (clinician=1), array of IDs (clinician[]=1&clinician[]=2) or comma-separated list of IDs (clinician=1,2). Pass value 0 to get devices unassigned to any clinician. Example: 1

model   string  optional  

Filter devices by device models. Provide single ID (model=1), array of IDs (model[]=1&model[]=2) or comma-separated list of IDs (model=1,2). Pass value 0 to get devices without model. Example: 1

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: model, amputee, clinicians, firmwareVersion, pcbVersion, config, joinedDevices, joinedElectrodes).

sortby   string  optional  

Sort by field (available: serial, amputee_name, date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Device ID.

serial   string   

Device serial number.

bluetooth_id   string   

Bluetooth identifier.

model_id   integer   

Device model ID.

amputee_id   integer   

Assigned patient (amputee) user ID.

firmware_version_id   integer   

Firmware version ID.

pcb_version_id   integer   

PCB version ID.

company_id   integer   

Company ID.

reverse_magnets   boolean   

Whether magnets are reversed.

is_electrode   boolean   

Whether this device is an electrode.

active   boolean   

Whether the device is active.

last_activity_at   string   

Last activity timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

model   object   

Device model details.

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

amputee   object   

Assigned patient (amputee) user.

id   integer   

User ID.

name   string   

User full name.

email   string   

User email address.

clinicians   object[]   

Clinicians assigned to this device.

firmwareVersion   object   

Firmware version details.

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

pcbVersion   object   

PCB version details.

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

joinedDevices   object[]   

Joined hand devices.

joinedElectrodes   object[]   

Joined electrode devices.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get device information

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 7,
    "serial": "36395a58-234e-3ea2-94c7-c7376a809eb7",
    "bluetooth_id": "b5b0b82b-04f6-3627-92bc-d156eb4a0bc5",
    "company_id": null,
    "model_id": 9,
    "amputee_id": 40,
    "clinician_id": null,
    "firmware_version_id": 1,
    "pcb_version_id": 1,
    "reverse_magnets": 0,
    "is_electrode": 0,
    "active": 1,
    "last_activity_at": "0000-00-00 00:00:00",
    "first_connected_at": null,
    "measurements": null,
    "created_at": "2026-08-28T14:44:38.000000Z",
    "updated_at": "2026-08-28T14:44:38.000000Z",
    "first_config_change_at": null,
    "model": {
        "id": 9,
        "name": "Zeus hand v1",
        "type": "arm",
        "orientation": "left",
        "active": 1,
        "created_at": "2026-08-28T14:44:38.000000Z",
        "updated_at": "2026-08-28T14:44:38.000000Z"
    },
    "amputee": {
        "id": 40,
        "mrn": "YD6T9VFB1787928278",
        "name": "Yasmine Fay",
        "email": "1787928278ckonopelski@example.org",
        "language": "en",
        "phone": "551-971-4479",
        "phone_country": "IN",
        "phone_verified_at": null,
        "address1": "22465 Mellie Ramp Suite 573",
        "address2": "Lake Otha, NV 39484",
        "postal_code": "16583-6209",
        "city": "Hessel LLC",
        "country": "LT",
        "clinic_name": "Carmelaton",
        "clinic_location": "58046 Metz Path Apt. 344\nHodkiewiczview, IA 94094-3600",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:44:38.000000Z",
        "updated_at": "2026-08-28T14:44:38.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "pcb_version": {
        "id": 1,
        "name": "0.57.75",
        "hardware_id": "",
        "created_at": "2026-08-28T14:44:38.000000Z",
        "updated_at": "2026-08-28T14:44:38.000000Z"
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view device data",
    "code": "DEVICES:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:GET:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: model, amputee, firmwareVersion, pcbVersion, clinicians, joinedDevices, joinedElectrodes).

Response

Response Fields

id   integer   

Device ID.

serial   string   

Device serial number.

bluetooth_id   string   

Bluetooth identifier.

model_id   integer   

Device model ID.

amputee_id   integer   

Assigned patient (amputee) user ID.

firmware_version_id   integer   

Firmware version ID.

pcb_version_id   integer   

PCB version ID.

company_id   integer   

Company ID.

reverse_magnets   boolean   

Whether magnets are reversed.

is_electrode   boolean   

Whether this device is an electrode.

active   boolean   

Whether the device is active.

last_activity_at   string   

Last activity timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

model   object   

Device model details.

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

amputee   object   

Assigned patient (amputee) user.

id   integer   

User ID.

name   string   

User full name.

email   string   

User email address.

clinicians   object[]   

Clinicians assigned to this device.

firmwareVersion   object   

Firmware version details.

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

pcbVersion   object   

PCB version details.

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

joinedDevices   object[]   

Joined hand devices.

joinedElectrodes   object[]   

Joined electrode devices.

Create new device

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"serial\": \"S3R1AL-NUM83R\",
    \"bluetooth_id\": \"BL0123456789\",
    \"model_id\": 1,
    \"amputee_id\": 1,
    \"clinicians\": [
        2
    ],
    \"firmware_version_id\": 1,
    \"pcb_version_id\": 1,
    \"reverse_magnets\": false,
    \"is_electrode\": false,
    \"active\": true,
    \"last_activity_at\": \"2022-08-15 12:00:00\",
    \"first_connected_at\": \"2022-08-15 12:00:00\",
    \"measurements\": \"{\\\"length\\\": 25.4, \\\"unit\\\": \\\"cm\\\"}\"
}"
const url = new URL(
    "http://localhost:8000/api/device"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "serial": "S3R1AL-NUM83R",
    "bluetooth_id": "BL0123456789",
    "model_id": 1,
    "amputee_id": 1,
    "clinicians": [
        2
    ],
    "firmware_version_id": 1,
    "pcb_version_id": 1,
    "reverse_magnets": false,
    "is_electrode": false,
    "active": true,
    "last_activity_at": "2022-08-15 12:00:00",
    "first_connected_at": "2022-08-15 12:00:00",
    "measurements": "{\"length\": 25.4, \"unit\": \"cm\"}"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 8,
    "serial": "caa1944d-8a93-3fe1-a372-facd166da353",
    "bluetooth_id": "ab497442-9a18-3ddc-be32-d8c618f45870",
    "company_id": null,
    "model_id": null,
    "amputee_id": null,
    "clinician_id": null,
    "firmware_version_id": null,
    "pcb_version_id": null,
    "reverse_magnets": 0,
    "is_electrode": 0,
    "active": 1,
    "last_activity_at": "0000-00-00 00:00:00",
    "first_connected_at": null,
    "measurements": null,
    "created_at": "2026-08-28T14:44:38.000000Z",
    "updated_at": "2026-08-28T14:44:38.000000Z",
    "first_config_change_at": null
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create device",
    "code": "DEVICES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Firmware has no schema):


{
    "message": "Cannot create: firmware has no schema",
    "code": "DEVICES:CREATE:NO_FIRMWARE_SCHEMA"
}
 

Example response (500, Server error):


{
    "message": "Server error: device not created",
    "code": "DEVICES:CREATE:SERVER_ERROR"
}
 

Request   

POST api/device

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

serial   string   

Device serial number. Example: S3R1AL-NUM83R

bluetooth_id   string   

Device Bluetooth ID. Example: BL0123456789

model_id   string   

Device Model ID. The id of an existing record in the App\Models\DeviceModel table. Example: 1

amputee_id   string  optional  

Device amputee ID. The id of an existing record in the App\Models\User table. Example: 1

clinicians   integer[]  optional  

Clinician ID. The id of an existing record in the App\Models\User table.

firmware_version_id   string  optional  

Firmware Version ID. The id of an existing record in the App\Models\FirmwareVersion table. Example: 1

pcb_version_id   string  optional  

PCB Version ID. The id of an existing record in the App\Models\PCBVersion table. Example: 1

reverse_magnets   boolean  optional  

Device reverse magnets. Default: 0. Example: false

is_electrode   boolean  optional  

Super Admin only: Device is electrode. Default: 0. Example: false

active   boolean  optional  

Device active status (0 - inactive, 1 - active). Example: true

last_activity_at   string  optional  

Device last activity date. Update this value each time device connects to the mobile app. Always shift local datetime to UTC timezone. Must be a valid date in the format Y-m-d H:i:s. Example: 2022-08-15 12:00:00

first_connected_at   string  optional  

Date the device first connected to ADP. Must be a valid date in the format Y-m-d H:i:s. Example: 2022-08-15 12:00:00

measurements   string  optional  

Device measurements. MUST_BE_JSON. Example: {"length": 25.4, "unit": "cm"}

Response

Response Fields

id   integer   

Device ID.

serial   string   

Device serial number.

bluetooth_id   string   

Bluetooth identifier.

model_id   integer   

Device model ID.

amputee_id   integer   

Assigned patient (amputee) user ID.

firmware_version_id   integer   

Firmware version ID.

pcb_version_id   integer   

PCB version ID.

company_id   integer   

Company ID.

reverse_magnets   boolean   

Whether magnets are reversed.

is_electrode   boolean   

Whether this device is an electrode.

active   boolean   

Whether the device is active.

last_activity_at   string   

Last activity timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

model   object   

Device model details.

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

amputee   object   

Assigned patient (amputee) user.

id   integer   

User ID.

name   string   

User full name.

email   string   

User email address.

clinicians   object[]   

Clinicians assigned to this device.

firmwareVersion   object   

Firmware version details.

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

pcbVersion   object   

PCB version details.

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

joinedDevices   object[]   

Joined hand devices.

joinedElectrodes   object[]   

Joined electrode devices.

Update device

requires authentication

Amputee of device can update only these fields: serial, bluetooth_id, firmware_version_id, pcb_version_id

Example request:
curl --request PUT \
    "http://localhost:8000/api/device/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"serial\": \"S3R1AL-NUM83R\",
    \"bluetooth_id\": \"BL0123456789\",
    \"model_id\": 1,
    \"amputee_id\": 1,
    \"clinicians\": [
        2
    ],
    \"firmware_version_id\": 1,
    \"pcb_version_id\": 1,
    \"reverse_magnets\": false,
    \"is_electrode\": false,
    \"active\": true,
    \"last_activity_at\": \"2022-08-15 12:00:00\",
    \"first_connected_at\": \"2022-08-15 12:00:00\",
    \"measurements\": \"{\\\"length\\\": 25.4, \\\"unit\\\": \\\"cm\\\"}\"
}"
const url = new URL(
    "http://localhost:8000/api/device/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "serial": "S3R1AL-NUM83R",
    "bluetooth_id": "BL0123456789",
    "model_id": 1,
    "amputee_id": 1,
    "clinicians": [
        2
    ],
    "firmware_version_id": 1,
    "pcb_version_id": 1,
    "reverse_magnets": false,
    "is_electrode": false,
    "active": true,
    "last_activity_at": "2022-08-15 12:00:00",
    "first_connected_at": "2022-08-15 12:00:00",
    "measurements": "{\"length\": 25.4, \"unit\": \"cm\"}"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 9,
    "serial": "c4ea338e-0052-381e-b6f1-f01cf6f0d05d",
    "bluetooth_id": "83b6c4b8-a83f-3602-9b16-aa7f00f447e4",
    "company_id": null,
    "model_id": null,
    "amputee_id": null,
    "clinician_id": null,
    "firmware_version_id": null,
    "pcb_version_id": null,
    "reverse_magnets": 0,
    "is_electrode": 0,
    "active": 1,
    "last_activity_at": "0000-00-00 00:00:00",
    "first_connected_at": null,
    "measurements": null,
    "created_at": "2026-08-28T14:44:38.000000Z",
    "updated_at": "2026-08-28T14:44:38.000000Z",
    "first_config_change_at": null
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device",
    "code": "DEVICES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Firmware has no schema):


{
    "message": "Cannot update: firmware has no schema",
    "code": "DEVICES:UPDATE:NO_FIRMWARE_SCHEMA"
}
 

Example response (403):


{
    "message": "Cannot update: no clinicians left for patient relation",
    "code": "DEVICES:UPDATE:NO_CLINICIANS"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:UPDATE:DEVICE_NOT_FOUND"
}
 

Request   

PUT api/device/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Body Parameters

serial   string  optional  

Device serial number. Example: S3R1AL-NUM83R

bluetooth_id   string  optional  

Device Bluetooth ID. Example: BL0123456789

model_id   string  optional  

Device Model ID. The id of an existing record in the App\Models\DeviceModel table. Example: 1

amputee_id   string  optional  

Device amputee ID. Pass null to remove assignment. The id of an existing record in the App\Models\User table. Example: 1

clinicians   integer[]  optional  

Clinician ID. The id of an existing record in the App\Models\User table.

firmware_version_id   string  optional  

Firmware Version ID. The id of an existing record in the App\Models\FirmwareVersion table. Example: 1

pcb_version_id   string  optional  

PCB Version ID. The id of an existing record in the App\Models\PCBVersion table. Example: 1

reverse_magnets   boolean  optional  

Device reverse magnets. Default: 0. Example: false

is_electrode   boolean  optional  

Super Admin only: Device is electrode. Default: 0. Example: false

active   boolean  optional  

Device active status (0 - inactive, 1 - active). Example: true

last_activity_at   string  optional  

Device last activity date. Update this value each time device connects to the mobile app. Always shift local datetime to UTC timezone. Must be a valid date in the format Y-m-d H:i:s. Example: 2022-08-15 12:00:00

first_connected_at   string  optional  

Date the device first connected to ADP. Must be a valid date in the format Y-m-d H:i:s. Example: 2022-08-15 12:00:00

measurements   string  optional  

Device measurements. MUST_BE_JSON. Example: {"length": 25.4, "unit": "cm"}

Response

Response Fields

id   integer   

Device ID.

serial   string   

Device serial number.

bluetooth_id   string   

Bluetooth identifier.

model_id   integer   

Device model ID.

amputee_id   integer   

Assigned patient (amputee) user ID.

firmware_version_id   integer   

Firmware version ID.

pcb_version_id   integer   

PCB version ID.

company_id   integer   

Company ID.

reverse_magnets   boolean   

Whether magnets are reversed.

is_electrode   boolean   

Whether this device is an electrode.

active   boolean   

Whether the device is active.

last_activity_at   string   

Last activity timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

model   object   

Device model details.

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

amputee   object   

Assigned patient (amputee) user.

id   integer   

User ID.

name   string   

User full name.

email   string   

User email address.

clinicians   object[]   

Clinicians assigned to this device.

firmwareVersion   object   

Firmware version details.

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

pcbVersion   object   

PCB version details.

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

joinedDevices   object[]   

Joined hand devices.

joinedElectrodes   object[]   

Joined electrode devices.

Delete device

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/device/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Device deleted",
    "code": "DEVICES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete device",
    "code": "DEVICES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:DELETE:DEVICE_NOT_FOUND"
}
 

Request   

DELETE api/device/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Get device hashes

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/hash" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/hash"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "hash_global": "123456789012345",
    "hash_common_settings": "123456789012345",
    "hash_common_grips": "123456789012345",
    "hash_mode1": "123456789012345",
    "hash_mode2": "123456789012345",
    "hash_mode3": "123456789012345"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access device hashes",
    "code": "DEVICES:GET_HASHES:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:GET_HASHES:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{id}/hash

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Update device hashes

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/hash" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hash_global\": \"123456789012345\",
    \"hash_common_settings\": \"123456789012345\",
    \"hash_common_grips\": \"123456789012345\",
    \"hash_mode1\": \"123456789012345\",
    \"hash_mode2\": \"123456789012345\",
    \"hash_mode3\": \"123456789012345\"
}"
const url = new URL(
    "http://localhost:8000/api/device/1/hash"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hash_global": "123456789012345",
    "hash_common_settings": "123456789012345",
    "hash_common_grips": "123456789012345",
    "hash_mode1": "123456789012345",
    "hash_mode2": "123456789012345",
    "hash_mode3": "123456789012345"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202, OK):


{
    "hash_global": "123456789012345",
    "hash_common_settings": "123456789012345",
    "hash_common_grips": "123456789012345",
    "hash_mode1": "123456789012345",
    "hash_mode2": "123456789012345",
    "hash_mode3": "123456789012345"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access device hashes",
    "code": "DEVICES:SET_HASHES:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:SET_HASHES:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/{id}/hash

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Body Parameters

hash_global   string  optional  

Global hash. Example: 123456789012345

hash_common_settings   string  optional  

Common settings hash. Example: 123456789012345

hash_common_grips   string  optional  

Common grips hash. Example: 123456789012345

hash_mode1   string  optional  

Mode 1 hash. Example: 123456789012345

hash_mode2   string  optional  

Mode 2 hash. Example: 123456789012345

hash_mode3   string  optional  

Mode 3 hash. Example: 123456789012345

Detach device

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/detach" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/detach"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Device detached",
    "code": "DEVICES:DETACH:DETACHED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to detach device",
    "code": "DEVICES:DETACH:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:DETACH:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/{id}/detach

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Add device

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/add/S3R1AL-NUM83R" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/add/S3R1AL-NUM83R"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202):


{
    "id": 10,
    "serial": "47b5c982-6cc5-3e66-8f18-c06debff359c",
    "bluetooth_id": "d213d349-accd-3f88-aea9-e6b8d1aaf5a6",
    "company_id": null,
    "model_id": null,
    "amputee_id": null,
    "clinician_id": null,
    "firmware_version_id": null,
    "pcb_version_id": null,
    "reverse_magnets": 0,
    "is_electrode": 0,
    "active": 1,
    "last_activity_at": "0000-00-00 00:00:00",
    "first_connected_at": null,
    "measurements": null,
    "created_at": "2026-08-28T14:44:38.000000Z",
    "updated_at": "2026-08-28T14:44:38.000000Z",
    "first_config_change_at": null
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to assign devices with code",
    "code": "DEVICES:ASSIGN:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User reached the temporary limit of attached devices):


{
    "message": "Reached the limit of assigned devices",
    "code": "DEVICES:ASSIGN:LIMIT_REACHED"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:ASSIGN:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/add/{serial}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

serial   string   

Device serial number or bluetooth ID. Example: S3R1AL-NUM83R

Response

Response Fields

id   integer   

Device ID.

serial   string   

Device serial number.

bluetooth_id   string   

Bluetooth identifier.

model_id   integer   

Device model ID.

amputee_id   integer   

Assigned patient (amputee) user ID.

firmware_version_id   integer   

Firmware version ID.

pcb_version_id   integer   

PCB version ID.

company_id   integer   

Company ID.

reverse_magnets   boolean   

Whether magnets are reversed.

is_electrode   boolean   

Whether this device is an electrode.

active   boolean   

Whether the device is active.

last_activity_at   string   

Last activity timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

model   object   

Device model details.

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

amputee   object   

Assigned patient (amputee) user.

id   integer   

User ID.

name   string   

User full name.

email   string   

User email address.

clinicians   object[]   

Clinicians assigned to this device.

firmwareVersion   object   

Firmware version details.

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

pcbVersion   object   

PCB version details.

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

joinedDevices   object[]   

Joined hand devices.

joinedElectrodes   object[]   

Joined electrode devices.

Connect device

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/connect/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/connect/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Device connected",
    "code": "DEVICES:CONNECT:CONNECTED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view device data",
    "code": "DEVICES:CONNECT:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:CONNECT:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/connect/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Disconnect device

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/disconnect/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/disconnect/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Device disconnected",
    "code": "DEVICES:DISCONNECT:DISCONNECTED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view device data",
    "code": "DEVICES:DISCONNECT:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:DISCONNECT:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/disconnect/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Join devices

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/join/1/2" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"force\": false,
    \"patient\": 1
}"
const url = new URL(
    "http://localhost:8000/api/device/join/1/2"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "force": false,
    "patient": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 11,
    "serial": "78305bec-ad44-3cf7-89b2-6da085f4d7f1",
    "bluetooth_id": "2c721f88-7af1-362e-ba04-e2bcee613249",
    "company_id": null,
    "model_id": null,
    "amputee_id": null,
    "clinician_id": null,
    "firmware_version_id": null,
    "pcb_version_id": null,
    "reverse_magnets": 0,
    "is_electrode": 0,
    "active": 1,
    "last_activity_at": "0000-00-00 00:00:00",
    "first_connected_at": null,
    "measurements": null,
    "created_at": "2026-08-28T14:44:38.000000Z",
    "updated_at": "2026-08-28T14:44:38.000000Z",
    "first_config_change_at": null,
    "joined_devices": [
        {
            "id": 12,
            "serial": "c530bdf4-334e-3b4f-9da7-9670afd8c283",
            "bluetooth_id": "00e3b6cd-79c0-35e4-ac5f-7affcdc87b0f",
            "company_id": null,
            "model_id": null,
            "amputee_id": null,
            "clinician_id": null,
            "firmware_version_id": null,
            "pcb_version_id": null,
            "reverse_magnets": 0,
            "is_electrode": 0,
            "active": 1,
            "last_activity_at": "0000-00-00 00:00:00",
            "first_connected_at": null,
            "measurements": null,
            "created_at": "2026-08-28T14:44:38.000000Z",
            "updated_at": "2026-08-28T14:44:38.000000Z",
            "first_config_change_at": null,
            "pivot": {
                "electrode_id": 11,
                "device_id": 12,
                "created_at": "2026-08-28T14:44:38.000000Z",
                "updated_at": "2026-08-28T14:44:38.000000Z"
            }
        }
    ],
    "joined_electrodes": [
        {
            "id": 13,
            "serial": "95358986-71c6-369d-8859-b929c800fcce",
            "bluetooth_id": "4ef9c99d-c50e-3a56-b524-b43f31976039",
            "company_id": null,
            "model_id": null,
            "amputee_id": null,
            "clinician_id": null,
            "firmware_version_id": null,
            "pcb_version_id": null,
            "reverse_magnets": 0,
            "is_electrode": 0,
            "active": 1,
            "last_activity_at": "0000-00-00 00:00:00",
            "first_connected_at": null,
            "measurements": null,
            "created_at": "2026-08-28T14:44:38.000000Z",
            "updated_at": "2026-08-28T14:44:38.000000Z",
            "first_config_change_at": null,
            "pivot": {
                "device_id": 11,
                "electrode_id": 13,
                "created_at": "2026-08-28T14:44:38.000000Z",
                "updated_at": "2026-08-28T14:44:38.000000Z"
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to join devices",
    "code": "DEVICES:JOIN:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Device 2 has a patient assigned):


{
    "message": "Device 2 has a patient assigned",
    "code": "DEVICES:JOIN:DEVICE2_HAS_PATIENT"
}
 

Example response (403, Device already has an electrode joined):


{
    "message": "Device already has an electrode joined",
    "code": "DEVICES:JOIN:ALREADY_JOINED"
}
 

Example response (403, Server error):


{
    "message": "Server error",
    "code": "DEVICES:JOIN:SERVER_ERROR"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:JOIN:DEVICE_NOT_FOUND"
}
 

Example response (404, Device 1 cannot be an electrode):


{
    "message": "Device 1 cannot be an electrode",
    "code": "DEVICES:JOIN:INCORRECT_DEVICE1_TYPE"
}
 

Example response (404, Device 2 must be an electrode):


{
    "message": "Device 1 must be an electrode",
    "code": "DEVICES:JOIN:INCORRECT_DEVICE2_TYPE"
}
 

Example response (404, Both devices have no patient assigned):


{
    "message": "Both devices have no patient assigned",
    "code": "DEVICES:JOIN:NO_PATIENT"
}
 

Request   

POST api/device/join/{deviceId}/{electrodeId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID (hand). Example: 1

electrodeId   integer   

Device ID (electrode). Example: 2

Body Parameters

force   boolean  optional  

Force assignment even if one or both devices are already joined with other devices. Example: false

patient   integer  optional  

Add or replace patient assignment in joined devices. The id of an existing record in the App\Models\User table. Example: 1

Response

Response Fields

id   integer   

Device ID.

serial   string   

Device serial number.

bluetooth_id   string   

Bluetooth identifier.

model_id   integer   

Device model ID.

amputee_id   integer   

Assigned patient (amputee) user ID.

firmware_version_id   integer   

Firmware version ID.

pcb_version_id   integer   

PCB version ID.

company_id   integer   

Company ID.

reverse_magnets   boolean   

Whether magnets are reversed.

is_electrode   boolean   

Whether this device is an electrode.

active   boolean   

Whether the device is active.

last_activity_at   string   

Last activity timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

model   object   

Device model details.

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

amputee   object   

Assigned patient (amputee) user.

id   integer   

User ID.

name   string   

User full name.

email   string   

User email address.

clinicians   object[]   

Clinicians assigned to this device.

firmwareVersion   object   

Firmware version details.

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

pcbVersion   object   

PCB version details.

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

joinedDevices   object[]   

Joined hand devices.

joinedElectrodes   object[]   

Joined electrode devices.

Detach joined devices

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/unjoin/1/2" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/unjoin/1/2"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Devices unjoined",
    "code": "DEVICES:UNJOIN:UNJOINED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to join devices",
    "code": "DEVICES:UNJOIN:INSUFFICIENT_PERMISSION"
}
 

Example response (403, OK):


{
    "message": "Devices are not joined",
    "code": "DEVICES:UNJOIN:NOT_JOINED"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:UNJOIN:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/unjoin/{deviceId}/{electrodeId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

electrodeId   integer   

Electrode ID. Example: 2

Create demo patient

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/dummy-patient" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/dummy-patient"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201, OK):


{
    "email": "SERIAL@gmail.com",
    "password": "Demo@123"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create dummy patient",
    "code": "DEVICES:DUMMY_PATIENT:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Device already has a patient):


{
    "message": "Device already has a patient",
    "code": "DEVICES:DUMMY_PATIENT:PATIENT_EXISTS"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "DEVICES:DUMMY_PATIENT:DEVICE_NOT_FOUND"
}
 

Example response (500, Server error):


{
    "message": "Server error: dummy patient not created",
    "code": "DEVICES:DUMMY_PATIENT:SERVER_ERROR"
}
 

Request   

POST api/device/{id}/dummy-patient

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Get device internal note

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/internal-note" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/internal-note"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "device_id": 17,
    "note": "Est et iste optio totam facere. Voluptate doloremque blanditiis ipsam dolorem blanditiis sed. Eos non omnis asperiores corporis est ut eaque modi. Aut qui accusantium omnis et quae ut rerum est.",
    "created_at": "2026-08-28T14:44:39.000000Z",
    "updated_at": "2026-08-28T14:44:39.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access internal notes",
    "code": "INTERNAL_NOTE:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "INTERNAL_NOTE:GET:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{id}/internal-note

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the device. Example: 1

deviceId   integer   

Device ID. Example: 1

Update device internal note

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/device/1/internal-note" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"note\": \"Device returned from clinic for inspection.\"
}"
const url = new URL(
    "http://localhost:8000/api/device/1/internal-note"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "note": "Device returned from clinic for inspection."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 2,
    "device_id": 18,
    "note": "Incidunt natus eveniet rem quo fugit asperiores deserunt eligendi. Labore veniam nisi occaecati ut corrupti labore.",
    "created_at": "2026-08-28T14:44:39.000000Z",
    "updated_at": "2026-08-28T14:44:39.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access internal notes",
    "code": "INTERNAL_NOTE:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "INTERNAL_NOTE:UPDATE:DEVICE_NOT_FOUND"
}
 

Request   

PUT api/device/{id}/internal-note

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Body Parameters

note   string  optional  

Super Admin only: Internal note for this device. Maximum length: 50 000 characters. MAXIMUM:STRING_LENGTH:50000. Example: Device returned from clinic for inspection.

Documents

API endpoints for documents management

List documents

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/documents?type=web" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/documents"
);

const params = {
    "type": "web",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "name": "Surveying Technician",
            "type": "web",
            "created_at": "2026-08-28T14:46:14.000000Z",
            "updated_at": "2026-08-28T14:46:14.000000Z"
        },
        {
            "id": 2,
            "name": "Pesticide Sprayer",
            "type": "web",
            "created_at": "2026-08-28T14:46:14.000000Z",
            "updated_at": "2026-08-28T14:46:14.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage documents",
    "code": "DOCUMENTS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/documents

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

type   string  optional  

Filter documents by type. Example: web

Must be one of:
  • web
  • mobile
perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

Document ID.

name   string   

Document name.

type   string   

Document target platform.

Must be one of:
  • web
  • mobile
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

versions   object[]   

Document versions.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create document

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/documents" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Privacy Policy\",
    \"type\": \"web\"
}"
const url = new URL(
    "http://localhost:8000/api/documents"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Privacy Policy",
    "type": "web"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "name": "Fitter",
    "type": "mobile",
    "created_at": "2026-08-28T14:46:14.000000Z",
    "updated_at": "2026-08-28T14:46:14.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage documents",
    "code": "DOCUMENTS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/documents

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Document name. Example: Privacy Policy

type   string   

Document destination. Example: web

Must be one of:
  • web
  • mobile

Response

Response Fields

id   integer   

Document ID.

name   string   

Document name.

type   string   

Document target platform.

Must be one of:
  • web
  • mobile
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

versions   object[]   

Document versions.

Delete document

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/documents/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/documents/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Document deleted",
    "code": "DOCUMENTS:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage documents",
    "code": "DOCUMENTS:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Document has existing versions):


{
    "message": "Cannot delete: document has existing versions (1)",
    "code": "DOCUMENTS:DELETE:HAS_VERSIONS"
}
 

Example response (404, Document not found):


{
    "message": "Document not found",
    "code": "DOCUMENTS:DELETE:DOCUMENT_NOT_FOUND"
}
 

Request   

DELETE api/documents/{documentId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

documentId   integer   

Document ID. Example: 1

List document versions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/documents/1/versions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/documents/1/versions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "document_id": null,
        "index": 109133420,
        "file": "http://www.brekke.com/et-quidem-quod-ratione-quia",
        "created_at": "2026-08-28T14:46:14.000000Z",
        "updated_at": "2026-08-28T14:46:14.000000Z"
    },
    {
        "id": 2,
        "document_id": null,
        "index": 512385,
        "file": "http://turcotte.com/ex-exercitationem-est-sit-natus-quisquam-consequatur",
        "created_at": "2026-08-28T14:46:14.000000Z",
        "updated_at": "2026-08-28T14:46:14.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage documents",
    "code": "DOCUMENTS:LIST_VERSIONS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Document not found):


{
    "message": "Document not found",
    "code": "DOCUMENTS:LIST_VERSIONS:DOCUMENT_NOT_FOUND"
}
 

Request   

GET api/documents/{documentId}/versions

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

documentId   integer   

Document ID. Example: 1

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

id   integer   

Document version ID.

document_id   integer   

Associated document ID.

index   integer   

Version index number.

file   string   

File path or URL.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

document   object   

Parent document.

Create document version

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/documents/1/versions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"file\": \"https:\\/\\/www.aetherbiomedical.com\\/privacy-policy\"
}"
const url = new URL(
    "http://localhost:8000/api/documents/1/versions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "file": "https:\/\/www.aetherbiomedical.com\/privacy-policy"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "document_id": null,
    "index": 870,
    "file": "http://www.will.com/",
    "created_at": "2026-08-28T14:46:14.000000Z",
    "updated_at": "2026-08-28T14:46:14.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage documents",
    "code": "DOCUMENTS:CREATE_VERSION:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Document not found):


{
    "message": "Document not found",
    "code": "DOCUMENTS:CREATE_VERSION:DOCUMENT_NOT_FOUND"
}
 

Request   

POST api/documents/{documentId}/versions

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

documentId   integer   

Document ID. Example: 1

Body Parameters

file   string   

URL to document file. Must be a valid URL. Example: https://www.aetherbiomedical.com/privacy-policy

Response

Response Fields

id   integer   

Document version ID.

document_id   integer   

Associated document ID.

index   integer   

Version index number.

file   string   

File path or URL.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

document   object   

Parent document.

Delete document version

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/documents/1/versions/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/documents/1/versions/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Document version deleted",
    "code": "DOCUMENTS:DELETE_VERSION:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage documents",
    "code": "DOCUMENTS:DELETE_VERSION:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Document not found):


{
    "message": "Document not found",
    "code": "DOCUMENTS:DELETE_VERSION:DOCUMENT_NOT_FOUND"
}
 

Example response (404, Document version not found):


{
    "message": "Document version not found",
    "code": "DOCUMENTS:DELETE_VERSION:VERSION_NOT_FOUND"
}
 

Request   

DELETE api/documents/{documentId}/versions/{versionId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

documentId   integer   

Document ID. Example: 1

versionId   integer   

DocumentVersion ID. Example: 1

Get documents status

requires authentication

Any document on the list has to be accepted. Use POST /documents/accept endpoint to mark them as accepted once user agrees to that. Empty list means that user is up-to-date with all required documents and nothing has to be accepted.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/documents/status?type=web" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/documents/status"
);

const params = {
    "type": "web",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "documents": []
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view documents status",
    "code": "DOCUMENTS:STATUS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/documents/status

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

type   string  optional  

Filter documents by type. Example: web

Must be one of:
  • web
  • mobile

Accept documents

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/documents/accept" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"documents\": [
        1
    ]
}"
const url = new URL(
    "http://localhost:8000/api/documents/accept"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "documents": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Accepted 1 document(s)",
    "code": "DOCUMENTS:ACCEPT:ACCEPTED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update documents status",
    "code": "DOCUMENTS:ACCEPT:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/documents/accept

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

documents   integer[]   

Document Version ID. The id of an existing record in the App\Models\DocumentVersion table.

Accept Terms of Service for patients

requires authentication

This endpoint does not save any information to the database. Its purpose is to make sure the patient will be saved in the HubSpot.

Example request:
curl --request POST \
    "http://localhost:8000/api/documents/accept/tos" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/documents/accept/tos"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Patients' \"Terms of Service\" accepted",
    "code": "DOCUMENTS:ACCEPT_PATIENT_TOS:ACCEPTED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to accept patients' \"Terms of Service\"",
    "code": "DOCUMENTS:ACCEPT_PATIENT_TOS:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/documents/accept/tos

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Feedback

Endpoints related to feedback collecting

Check feedback token

Example request:
curl --request POST \
    "http://localhost:8000/api/feedback/4KJ2YLM0MA64Y6D6FUY2OFY690IICO1OJ2DHR6T68IZNI528H3SKUFJMY0C5DHOA/check" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/feedback/4KJ2YLM0MA64Y6D6FUY2OFY690IICO1OJ2DHR6T68IZNI528H3SKUFJMY0C5DHOA/check"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "valid": true
}
 

Request   

POST api/feedback/{token}/check

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

token   string   

Authentication token Example: 4KJ2YLM0MA64Y6D6FUY2OFY690IICO1OJ2DHR6T68IZNI528H3SKUFJMY0C5DHOA

Send feedback with token

Example request:
curl --request POST \
    "http://localhost:8000/api/feedback/4KJ2YLM0MA64Y6D6FUY2OFY690IICO1OJ2DHR6T68IZNI528H3SKUFJMY0C5DHOA" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"contextual\",
    \"trigger\": \"remote_session\",
    \"rate\": 5,
    \"description\": \"That was amazing!\",
    \"skipped\": false,
    \"training_day_id\": 1
}"
const url = new URL(
    "http://localhost:8000/api/feedback/4KJ2YLM0MA64Y6D6FUY2OFY690IICO1OJ2DHR6T68IZNI528H3SKUFJMY0C5DHOA"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "contextual",
    "trigger": "remote_session",
    "rate": 5,
    "description": "That was amazing!",
    "skipped": false,
    "training_day_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 1,
    "user_id": 6,
    "type": "contextual",
    "trigger": "patient_create",
    "platform": "mobile",
    "rate": 3,
    "description": "Velit dolorem delectus rem hic omnis.",
    "skipped": 0,
    "training_day_id": null,
    "created_at": "2026-08-28T14:44:22.000000Z",
    "updated_at": "2026-08-28T14:44:22.000000Z"
}
 

Example response (403, Invalid token):


{
    "message": "Invalid token",
    "code": "FEEDBACK:SEND_WITH_TOKEN:INVALID_TOKEN"
}
 

Request   

POST api/feedback/{token}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

token   string   

Authentication token Example: 4KJ2YLM0MA64Y6D6FUY2OFY690IICO1OJ2DHR6T68IZNI528H3SKUFJMY0C5DHOA

Body Parameters

type   string   

Type of feedback. Example: contextual

Must be one of:
  • contextual
  • periodic
trigger   string  optional  

Feedback trigger. This field is required when type is contextual. Example: remote_session

Must be one of:
  • remote_session
  • local_session
  • async_session
  • patient_create
  • clinician_invite
  • firmware_update
  • new_config
  • grip_change
  • training_failed
  • training_success
rate   integer  optional  

User's rating. MINIMUM:NUMBER:0 MAXIMUM:NUMBER:5. Example: 5

description   string  optional  

User's description. Example: That was amazing!

skipped   boolean  optional  

Feedback skipped by the user. Example: false

training_day_id   integer  optional  

Training day ID (for training feedback only). The id of an existing record in the App\Models\TrainingDay table. Example: 1

Response

Response Fields

id   integer   

Feedback ID.

user_id   integer   

User who submitted the feedback.

type   string   

Feedback type.

trigger   string   

What triggered the feedback.

platform   string   

Platform the feedback was submitted from.

rate   integer   

Feedback rating.

description   string   

Feedback description.

skipped   boolean   

Whether the feedback was skipped.

training_day_id   integer   

Associated training day ID.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Get feedback status

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/feedback/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/feedback/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "remote_session": true,
    "firmware_update": true,
    "local_session": true,
    "async_session": true,
    "patient_create": false,
    "clinician_invite": true
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to check feedback status",
    "code": "FEEDBACK:STATUS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/feedback/status

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Send feedback

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/feedback" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"contextual\",
    \"trigger\": \"remote_session\",
    \"platform\": \"web\",
    \"rate\": 5,
    \"description\": \"That was amazing!\",
    \"skipped\": false,
    \"training_day_id\": 1
}"
const url = new URL(
    "http://localhost:8000/api/feedback"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "contextual",
    "trigger": "remote_session",
    "platform": "web",
    "rate": 5,
    "description": "That was amazing!",
    "skipped": false,
    "training_day_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 2,
    "user_id": 311,
    "type": "contextual",
    "trigger": "patient_create",
    "platform": "mobile",
    "rate": 2,
    "description": "Labore voluptas quia voluptates.",
    "skipped": 0,
    "training_day_id": null,
    "created_at": "2026-08-28T14:46:39.000000Z",
    "updated_at": "2026-08-28T14:46:39.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to send feedback",
    "code": "FEEDBACK:SEND:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/feedback

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

type   string   

Type of feedback. Example: contextual

Must be one of:
  • contextual
  • on_demand
  • periodic
  • training
trigger   string  optional  

Feedback trigger. Example: remote_session

Must be one of:
  • remote_session
  • local_session
  • async_session
  • patient_create
  • clinician_invite
  • firmware_update
  • new_config
  • grip_change
  • training_failed
  • training_success
platform   string   

Feedback platform. Example: web

Must be one of:
  • web
  • mobile
rate   integer  optional  

User's rating. MINIMUM:NUMBER:0 MAXIMUM:NUMBER:5. Example: 5

description   string  optional  

User's description. Example: That was amazing!

skipped   boolean  optional  

Feedback skipped by the user. Example: false

training_day_id   integer  optional  

Training day ID (for training feedback only). The id of an existing record in the App\Models\TrainingDay table. Example: 1

Response

Response Fields

id   integer   

Feedback ID.

user_id   integer   

User who submitted the feedback.

type   string   

Feedback type.

trigger   string   

What triggered the feedback.

platform   string   

Platform the feedback was submitted from.

rate   integer   

Feedback rating.

description   string   

Feedback description.

skipped   boolean   

Whether the feedback was skipped.

training_day_id   integer   

Associated training day ID.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Schedule feedback notification

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/feedback/schedule" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"trigger\": \"remote_session\"
}"
const url = new URL(
    "http://localhost:8000/api/feedback/schedule"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "trigger": "remote_session"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "scheduled_at": "2026-04-13 12:00:00"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to schedule feedback notification",
    "code": "FEEDBACK:SCHEDULE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Feedback with this trigger was already scheduled today):


{
    "message": "Feedback with this trigger was already scheduled today",
    "code": "FEEDBACK:SCHEDULE:ALREADY_SCHEDULED"
}
 

Request   

POST api/feedback/schedule

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

trigger   string   

Feedback trigger. Example: remote_session

Must be one of:
  • remote_session
  • local_session
  • async_session
  • patient_create
  • clinician_invite
  • firmware_update
  • new_config
  • grip_change
  • training_failed
  • training_success

List feedback

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/feedback" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/feedback"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (201):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 25,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 3,
            "user_id": 312,
            "type": "contextual",
            "trigger": "remote_session",
            "platform": "web",
            "rate": 1,
            "description": "Autem possimus aut maxime dolorem.",
            "skipped": 1,
            "training_day_id": null,
            "created_at": "2026-08-28T14:46:40.000000Z",
            "updated_at": "2026-08-28T14:46:40.000000Z"
        },
        {
            "id": 4,
            "user_id": 313,
            "type": "on_demand",
            "trigger": "async_session",
            "platform": "web",
            "rate": 4,
            "description": "Quam soluta asperiores itaque non.",
            "skipped": 0,
            "training_day_id": null,
            "created_at": "2026-08-28T14:46:40.000000Z",
            "updated_at": "2026-08-28T14:46:40.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list feedback",
    "code": "FEEDBACK:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/feedback

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Feedback ID.

user_id   integer   

User who submitted the feedback.

type   string   

Feedback type.

trigger   string   

What triggered the feedback.

platform   string   

Platform the feedback was submitted from.

rate   integer   

Feedback rating.

description   string   

Feedback description.

skipped   boolean   

Whether the feedback was skipped.

training_day_id   integer   

Associated training day ID.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Export feedback to CSV

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/feedback/csv" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/feedback/csv"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, CSV file):


{
    "file": "https://staging-us-east-2-aether-biomedical-s3-us-bucket.s3.us-east-2.amazonaws.com/feedback/feedback-1759228216.csv",
    "expires": "2025-09-30 10:40:00"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to export feedback",
    "code": "FEEDBACK:EXPORT_CSV:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/feedback/csv

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get feedback cooldowns

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/feedback/cooldowns" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/feedback/cooldowns"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "remote_session": 1,
    "local_session": 1,
    "async_session": 1,
    "patient_create": 1,
    "clinician_invite": 1,
    "firmware_update": 1,
    "new_config": 1,
    "grip_change": 1
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage feedback cooldowns",
    "code": "FEEDBACK:GET_COOLDOWNS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/feedback/cooldowns

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Update feedback cooldowns

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/feedback/cooldowns" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"remote_session\": 1,
    \"local_session\": 1,
    \"async_session\": 1,
    \"patient_create\": 1,
    \"clinician_invite\": 1,
    \"firmware_update\": 1,
    \"new_config\": 1,
    \"grip_change\": 1
}"
const url = new URL(
    "http://localhost:8000/api/feedback/cooldowns"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "remote_session": 1,
    "local_session": 1,
    "async_session": 1,
    "patient_create": 1,
    "clinician_invite": 1,
    "firmware_update": 1,
    "new_config": 1,
    "grip_change": 1
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "remote_session": 1,
    "local_session": 1,
    "async_session": 1,
    "patient_create": 1,
    "clinician_invite": 1,
    "firmware_update": 1,
    "new_config": 1,
    "grip_change": 1
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage feedback cooldowns",
    "code": "FEEDBACK:UPDATE_COOLDOWNS:INSUFFICIENT_PERMISSION"
}
 

Request   

PUT api/feedback/cooldowns

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

remote_session   integer  optional  

Cooldown for remote session trigger. MINIMUM:NUMBER:1. Example: 1

local_session   integer  optional  

Cooldown for local session trigger. MINIMUM:NUMBER:1. Example: 1

async_session   integer  optional  

Cooldown for async session trigger. MINIMUM:NUMBER:1. Example: 1

patient_create   integer  optional  

Cooldown for patient create trigger. MINIMUM:NUMBER:1. Example: 1

clinician_invite   integer  optional  

Cooldown for clinician invite trigger. MINIMUM:NUMBER:1. Example: 1

firmware_update   integer  optional  

Cooldown for firmware update trigger. MINIMUM:NUMBER:1. Example: 1

new_config   integer  optional  

Cooldown for new config trigger. MINIMUM:NUMBER:1. Example: 1

grip_change   integer  optional  

Cooldown for grip change trigger. MINIMUM:NUMBER:1. Example: 1

Get feedback enabled

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/feedback/enabled" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/feedback/enabled"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "remote_session": true,
    "local_session": true,
    "async_session": true,
    "patient_create": true,
    "clinician_invite": true,
    "firmware_update": true,
    "new_config": true,
    "grip_change": true
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage feedback cooldowns",
    "code": "FEEDBACK:GET_ENABLED:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/feedback/enabled

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Set feedback enabled

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/feedback/enabled" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"remote_session\": false,
    \"local_session\": false,
    \"async_session\": false,
    \"patient_create\": false,
    \"clinician_invite\": false,
    \"firmware_update\": false,
    \"new_config\": false,
    \"grip_change\": false
}"
const url = new URL(
    "http://localhost:8000/api/feedback/enabled"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "remote_session": false,
    "local_session": false,
    "async_session": false,
    "patient_create": false,
    "clinician_invite": false,
    "firmware_update": false,
    "new_config": false,
    "grip_change": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "remote_session": true,
    "local_session": true,
    "async_session": true,
    "patient_create": true,
    "clinician_invite": true,
    "firmware_update": true,
    "new_config": true,
    "grip_change": true
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage feedback cooldowns",
    "code": "FEEDBACK:SET_ENABLED:INSUFFICIENT_PERMISSION"
}
 

Request   

PUT api/feedback/enabled

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

remote_session   boolean  optional  

Enabled state for remote session trigger. Example: false

local_session   boolean  optional  

Enabled state for local session trigger. Example: false

async_session   boolean  optional  

Enabled state for async session trigger. Example: false

patient_create   boolean  optional  

Enabled state for patient create trigger. Example: false

clinician_invite   boolean  optional  

Enabled state for clinician invite trigger. Example: false

firmware_update   boolean  optional  

Enabled state for firmware update trigger. Example: false

new_config   boolean  optional  

Enabled state for new config trigger. Example: false

grip_change   boolean  optional  

Enabled state for grip change trigger. Example: false

Feedback statistics

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/feedback/statistics" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/feedback/statistics"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "submitted": 100,
    "skipped": 150,
    "total": 250,
    "average_rating": 4.76
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view feedback statistics",
    "code": "FEEDBACK:STATISTICS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/feedback/statistics

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Finger Calibrations

API endpoints for managing finger calibration results

Get finger calibration

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/device/1/finger-calibration" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/device/1/finger-calibration"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "device_id": 14,
            "result": "hic",
            "created_at": "2026-08-28T14:44:39.000000Z",
            "updated_at": "2026-08-28T14:44:39.000000Z"
        },
        {
            "id": 2,
            "device_id": 15,
            "result": "ut",
            "created_at": "2026-08-28T14:44:39.000000Z",
            "updated_at": "2026-08-28T14:44:39.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view finger calibration data",
    "code": "FINGER_CALIBRATION:VIEW:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "FINGER_CALIBRATION:VIEW:DEVICE_NOT_FOUND"
}
 

Request   

GET api/device/{id}/finger-calibration

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Store finger calibration

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/finger-calibration" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"result\": \"test\"
}"
const url = new URL(
    "http://localhost:8000/api/device/1/finger-calibration"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "result": "test"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "device_id": 16,
    "result": "reprehenderit",
    "created_at": "2026-08-28T14:44:39.000000Z",
    "updated_at": "2026-08-28T14:44:39.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create finger calibration",
    "code": "FINGER_CALIBRATION:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "FINGER_CALIBRATION:CREATE:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/{id}/finger-calibration

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Device ID. Example: 1

Body Parameters

result   string   

Calibration result. Example: test

GeoData

API endpoints for geodata

Get supported timezones list

Example request:
curl --request GET \
    --get "http://localhost:8000/api/timezones" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/timezones"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


[
    "Africa/Abidjan",
    "Africa/Accra",
    "Africa/Addis_Ababa",
    "Africa/Algiers",
    "Africa/Asmara",
    "Africa/Bamako",
    "Africa/Bangui",
    "Africa/Banjul",
    "Africa/Bissau",
    "Africa/Blantyre",
    "Africa/Brazzaville",
    "Africa/Bujumbura",
    "Africa/Cairo",
    "Africa/Casablanca",
    "Africa/Ceuta",
    "Africa/Conakry",
    "Africa/Dakar",
    "Africa/Dar_es_Salaam",
    "Africa/Djibouti",
    "Africa/Douala",
    "Africa/El_Aaiun",
    "Africa/Freetown",
    "Africa/Gaborone",
    "Africa/Harare",
    "Africa/Johannesburg",
    "Africa/Juba",
    "Africa/Kampala",
    "Africa/Khartoum",
    "Africa/Kigali",
    "Africa/Kinshasa",
    "Africa/Lagos",
    "Africa/Libreville",
    "Africa/Lome",
    "Africa/Luanda",
    "Africa/Lubumbashi",
    "Africa/Lusaka",
    "Africa/Malabo",
    "Africa/Maputo",
    "Africa/Maseru",
    "Africa/Mbabane",
    "Africa/Mogadishu",
    "Africa/Monrovia",
    "Africa/Nairobi",
    "Africa/Ndjamena",
    "Africa/Niamey",
    "Africa/Nouakchott",
    "Africa/Ouagadougou",
    "Africa/Porto-Novo",
    "Africa/Sao_Tome",
    "Africa/Tripoli",
    "Africa/Tunis",
    "Africa/Windhoek",
    "America/Adak",
    "America/Anchorage",
    "America/Anguilla",
    "America/Antigua",
    "America/Araguaina",
    "America/Argentina/Buenos_Aires",
    "America/Argentina/Catamarca",
    "America/Argentina/Cordoba",
    "America/Argentina/Jujuy",
    "America/Argentina/La_Rioja",
    "America/Argentina/Mendoza",
    "America/Argentina/Rio_Gallegos",
    "America/Argentina/Salta",
    "America/Argentina/San_Juan",
    "America/Argentina/San_Luis",
    "America/Argentina/Tucuman",
    "America/Argentina/Ushuaia",
    "America/Aruba",
    "America/Asuncion",
    "America/Atikokan",
    "America/Bahia",
    "America/Bahia_Banderas",
    "America/Barbados",
    "America/Belem",
    "America/Belize",
    "America/Blanc-Sablon",
    "America/Boa_Vista",
    "America/Bogota",
    "America/Boise",
    "America/Cambridge_Bay",
    "America/Campo_Grande",
    "America/Cancun",
    "America/Caracas",
    "America/Cayenne",
    "America/Cayman",
    "America/Chicago",
    "America/Chihuahua",
    "America/Costa_Rica",
    "America/Creston",
    "America/Cuiaba",
    "America/Curacao",
    "America/Danmarkshavn",
    "America/Dawson",
    "America/Dawson_Creek",
    "America/Denver",
    "America/Detroit",
    "America/Dominica",
    "America/Edmonton",
    "America/Eirunepe",
    "America/El_Salvador",
    "America/Fort_Nelson",
    "America/Fortaleza",
    "America/Glace_Bay",
    "America/Goose_Bay",
    "America/Grand_Turk",
    "America/Grenada",
    "America/Guadeloupe",
    "America/Guatemala",
    "America/Guayaquil",
    "America/Guyana",
    "America/Halifax",
    "America/Havana",
    "America/Hermosillo",
    "America/Indiana/Indianapolis",
    "America/Indiana/Knox",
    "America/Indiana/Marengo",
    "America/Indiana/Petersburg",
    "America/Indiana/Tell_City",
    "America/Indiana/Vevay",
    "America/Indiana/Vincennes",
    "America/Indiana/Winamac",
    "America/Inuvik",
    "America/Iqaluit",
    "America/Jamaica",
    "America/Juneau",
    "America/Kentucky/Louisville",
    "America/Kentucky/Monticello",
    "America/Kralendijk",
    "America/La_Paz",
    "America/Lima",
    "America/Los_Angeles",
    "America/Lower_Princes",
    "America/Maceio",
    "America/Managua",
    "America/Manaus",
    "America/Marigot",
    "America/Martinique",
    "America/Matamoros",
    "America/Mazatlan",
    "America/Menominee",
    "America/Merida",
    "America/Metlakatla",
    "America/Mexico_City",
    "America/Miquelon",
    "America/Moncton",
    "America/Monterrey",
    "America/Montevideo",
    "America/Montserrat",
    "America/Nassau",
    "America/New_York",
    "America/Nipigon",
    "America/Nome",
    "America/Noronha",
    "America/North_Dakota/Beulah",
    "America/North_Dakota/Center",
    "America/North_Dakota/New_Salem",
    "America/Nuuk",
    "America/Ojinaga",
    "America/Panama",
    "America/Pangnirtung",
    "America/Paramaribo",
    "America/Phoenix",
    "America/Port-au-Prince",
    "America/Port_of_Spain",
    "America/Porto_Velho",
    "America/Puerto_Rico",
    "America/Punta_Arenas",
    "America/Rainy_River",
    "America/Rankin_Inlet",
    "America/Recife",
    "America/Regina",
    "America/Resolute",
    "America/Rio_Branco",
    "America/Santarem",
    "America/Santiago",
    "America/Santo_Domingo",
    "America/Sao_Paulo",
    "America/Scoresbysund",
    "America/Sitka",
    "America/St_Barthelemy",
    "America/St_Johns",
    "America/St_Kitts",
    "America/St_Lucia",
    "America/St_Thomas",
    "America/St_Vincent",
    "America/Swift_Current",
    "America/Tegucigalpa",
    "America/Thule",
    "America/Thunder_Bay",
    "America/Tijuana",
    "America/Toronto",
    "America/Tortola",
    "America/Vancouver",
    "America/Whitehorse",
    "America/Winnipeg",
    "America/Yakutat",
    "America/Yellowknife",
    "Antarctica/Casey",
    "Antarctica/Davis",
    "Antarctica/DumontDUrville",
    "Antarctica/Macquarie",
    "Antarctica/Mawson",
    "Antarctica/McMurdo",
    "Antarctica/Palmer",
    "Antarctica/Rothera",
    "Antarctica/Syowa",
    "Antarctica/Troll",
    "Antarctica/Vostok",
    "Arctic/Longyearbyen",
    "Asia/Aden",
    "Asia/Almaty",
    "Asia/Amman",
    "Asia/Anadyr",
    "Asia/Aqtau",
    "Asia/Aqtobe",
    "Asia/Ashgabat",
    "Asia/Atyrau",
    "Asia/Baghdad",
    "Asia/Bahrain",
    "Asia/Baku",
    "Asia/Bangkok",
    "Asia/Barnaul",
    "Asia/Beirut",
    "Asia/Bishkek",
    "Asia/Brunei",
    "Asia/Chita",
    "Asia/Choibalsan",
    "Asia/Colombo",
    "Asia/Damascus",
    "Asia/Dhaka",
    "Asia/Dili",
    "Asia/Dubai",
    "Asia/Dushanbe",
    "Asia/Famagusta",
    "Asia/Gaza",
    "Asia/Hebron",
    "Asia/Ho_Chi_Minh",
    "Asia/Hong_Kong",
    "Asia/Hovd",
    "Asia/Irkutsk",
    "Asia/Jakarta",
    "Asia/Jayapura",
    "Asia/Jerusalem",
    "Asia/Kabul",
    "Asia/Kamchatka",
    "Asia/Karachi",
    "Asia/Kathmandu",
    "Asia/Khandyga",
    "Asia/Kolkata",
    "Asia/Krasnoyarsk",
    "Asia/Kuala_Lumpur",
    "Asia/Kuching",
    "Asia/Kuwait",
    "Asia/Macau",
    "Asia/Magadan",
    "Asia/Makassar",
    "Asia/Manila",
    "Asia/Muscat",
    "Asia/Nicosia",
    "Asia/Novokuznetsk",
    "Asia/Novosibirsk",
    "Asia/Omsk",
    "Asia/Oral",
    "Asia/Phnom_Penh",
    "Asia/Pontianak",
    "Asia/Pyongyang",
    "Asia/Qatar",
    "Asia/Qostanay",
    "Asia/Qyzylorda",
    "Asia/Riyadh",
    "Asia/Sakhalin",
    "Asia/Samarkand",
    "Asia/Seoul",
    "Asia/Shanghai",
    "Asia/Singapore",
    "Asia/Srednekolymsk",
    "Asia/Taipei",
    "Asia/Tashkent",
    "Asia/Tbilisi",
    "Asia/Tehran",
    "Asia/Thimphu",
    "Asia/Tokyo",
    "Asia/Tomsk",
    "Asia/Ulaanbaatar",
    "Asia/Urumqi",
    "Asia/Ust-Nera",
    "Asia/Vientiane",
    "Asia/Vladivostok",
    "Asia/Yakutsk",
    "Asia/Yangon",
    "Asia/Yekaterinburg",
    "Asia/Yerevan",
    "Atlantic/Azores",
    "Atlantic/Bermuda",
    "Atlantic/Canary",
    "Atlantic/Cape_Verde",
    "Atlantic/Faroe",
    "Atlantic/Madeira",
    "Atlantic/Reykjavik",
    "Atlantic/South_Georgia",
    "Atlantic/St_Helena",
    "Atlantic/Stanley",
    "Australia/Adelaide",
    "Australia/Brisbane",
    "Australia/Broken_Hill",
    "Australia/Darwin",
    "Australia/Eucla",
    "Australia/Hobart",
    "Australia/Lindeman",
    "Australia/Lord_Howe",
    "Australia/Melbourne",
    "Australia/Perth",
    "Australia/Sydney",
    "Europe/Amsterdam",
    "Europe/Andorra",
    "Europe/Astrakhan",
    "Europe/Athens",
    "Europe/Belgrade",
    "Europe/Berlin",
    "Europe/Bratislava",
    "Europe/Brussels",
    "Europe/Bucharest",
    "Europe/Budapest",
    "Europe/Busingen",
    "Europe/Chisinau",
    "Europe/Copenhagen",
    "Europe/Dublin",
    "Europe/Gibraltar",
    "Europe/Guernsey",
    "Europe/Helsinki",
    "Europe/Isle_of_Man",
    "Europe/Istanbul",
    "Europe/Jersey",
    "Europe/Kaliningrad",
    "Europe/Kiev",
    "Europe/Kirov",
    "Europe/Lisbon",
    "Europe/Ljubljana",
    "Europe/London",
    "Europe/Luxembourg",
    "Europe/Madrid",
    "Europe/Malta",
    "Europe/Mariehamn",
    "Europe/Minsk",
    "Europe/Monaco",
    "Europe/Moscow",
    "Europe/Oslo",
    "Europe/Paris",
    "Europe/Podgorica",
    "Europe/Prague",
    "Europe/Riga",
    "Europe/Rome",
    "Europe/Samara",
    "Europe/San_Marino",
    "Europe/Sarajevo",
    "Europe/Saratov",
    "Europe/Simferopol",
    "Europe/Skopje",
    "Europe/Sofia",
    "Europe/Stockholm",
    "Europe/Tallinn",
    "Europe/Tirane",
    "Europe/Ulyanovsk",
    "Europe/Uzhgorod",
    "Europe/Vaduz",
    "Europe/Vatican",
    "Europe/Vienna",
    "Europe/Vilnius",
    "Europe/Volgograd",
    "Europe/Warsaw",
    "Europe/Zagreb",
    "Europe/Zaporozhye",
    "Europe/Zurich",
    "Indian/Antananarivo",
    "Indian/Chagos",
    "Indian/Christmas",
    "Indian/Cocos",
    "Indian/Comoro",
    "Indian/Kerguelen",
    "Indian/Mahe",
    "Indian/Maldives",
    "Indian/Mauritius",
    "Indian/Mayotte",
    "Indian/Reunion",
    "Pacific/Apia",
    "Pacific/Auckland",
    "Pacific/Bougainville",
    "Pacific/Chatham",
    "Pacific/Chuuk",
    "Pacific/Easter",
    "Pacific/Efate",
    "Pacific/Fakaofo",
    "Pacific/Fiji",
    "Pacific/Funafuti",
    "Pacific/Galapagos",
    "Pacific/Gambier",
    "Pacific/Guadalcanal",
    "Pacific/Guam",
    "Pacific/Honolulu",
    "Pacific/Kanton",
    "Pacific/Kiritimati",
    "Pacific/Kosrae",
    "Pacific/Kwajalein",
    "Pacific/Majuro",
    "Pacific/Marquesas",
    "Pacific/Midway",
    "Pacific/Nauru",
    "Pacific/Niue",
    "Pacific/Norfolk",
    "Pacific/Noumea",
    "Pacific/Pago_Pago",
    "Pacific/Palau",
    "Pacific/Pitcairn",
    "Pacific/Pohnpei",
    "Pacific/Port_Moresby",
    "Pacific/Rarotonga",
    "Pacific/Saipan",
    "Pacific/Tahiti",
    "Pacific/Tarawa",
    "Pacific/Tongatapu",
    "Pacific/Wake",
    "Pacific/Wallis",
    "UTC"
]
 

Request   

GET api/timezones

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Goals

API endpoints for goals

The goals module consists of:

List grips

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/grips?model=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/grips"
);

const params = {
    "model": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "number": 1960,
        "name": "esse grip",
        "description": null,
        "opposed": 0,
        "created_at": "2026-08-28T14:46:14.000000Z",
        "updated_at": "2026-08-28T14:46:14.000000Z"
    },
    {
        "id": 2,
        "number": 7106,
        "name": "nam grip",
        "description": null,
        "opposed": 0,
        "created_at": "2026-08-28T14:46:14.000000Z",
        "updated_at": "2026-08-28T14:46:14.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view grips",
    "code": "GOALS:LIST_GRIPS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/grips

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

model   integer  optional  

Device Model ID. Use this parameter to receive the correct grip images in the image field. When not present, all images will be listed in images array. Example: 1

Response

Response Fields

id   integer   

Grip ID.

number   integer   

Grip number identifier.

name   string   

Grip name.

description   string   

Grip description.

opposed   boolean   

Whether the grip is opposed.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

List exercises

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/exercises" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/exercises"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "name": "exercises.Schimmel Mountains",
            "description": "exercises.Non hic facilis quas nam.",
            "icon": "😊",
            "created_at": "2026-08-28T14:46:16.000000Z",
            "updated_at": "2026-08-28T14:46:16.000000Z"
        },
        {
            "id": 2,
            "name": "exercises.Leanne Forge",
            "description": "exercises.Veritatis eligendi suscipit atque voluptas et blanditiis odit dolor.",
            "icon": "😌",
            "created_at": "2026-08-28T14:46:16.000000Z",
            "updated_at": "2026-08-28T14:46:16.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view exercises",
    "code": "GOALS:LIST_EXERCISES:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/exercises

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

items   object   
id   integer   

Exercise ID.

name   string   

Exercise name.

description   string   

Exercise description.

icon   string   

Exercise icon identifier.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create exercise

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/exercises" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Water plants\",
    \"description\": \"Use Tripod Close Grip and water your plants\",
    \"icon\": \"🪴\"
}"
const url = new URL(
    "http://localhost:8000/api/exercises"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Water plants",
    "description": "Use Tripod Close Grip and water your plants",
    "icon": "🪴"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "name": "exercises.Keeling Ranch",
    "description": "exercises.Excepturi voluptatum in officia doloribus.",
    "icon": "😀",
    "created_at": "2026-08-28T14:46:16.000000Z",
    "updated_at": "2026-08-28T14:46:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage exercises",
    "code": "GOALS:CREATE_EXERCISE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/exercises

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Exercise name. Example: Water plants

description   string   

Exercise description. Example: Use Tripod Close Grip and water your plants

icon   string   

Emoji icon. Example: 🪴

Response

Response Fields

id   integer   

Exercise ID.

name   string   

Exercise name.

description   string   

Exercise description.

icon   string   

Exercise icon identifier.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update exercise

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/exercises/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Water plants\",
    \"description\": \"Use Tripod Close Grip and water your plants\",
    \"icon\": \"🪴\"
}"
const url = new URL(
    "http://localhost:8000/api/exercises/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Water plants",
    "description": "Use Tripod Close Grip and water your plants",
    "icon": "🪴"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 4,
    "name": "exercises.Wilderman Lakes",
    "description": "exercises.Molestiae praesentium minima nostrum laboriosam id earum rerum.",
    "icon": "😝",
    "created_at": "2026-08-28T14:46:16.000000Z",
    "updated_at": "2026-08-28T14:46:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage exercises",
    "code": "GOALS:UPDATE_EXERCISE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Exercise not found):


{
    "message": "Exercise not found",
    "code": "GOALS:UPDATE_EXERCISE:EXERCISE_NOT_FOUND"
}
 

Request   

PUT api/exercises/{exerciseId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

exerciseId   integer   

Exercise ID. Example: 1

Body Parameters

name   string  optional  

Exercise name. Example: Water plants

description   string  optional  

Exercise description. Example: Use Tripod Close Grip and water your plants

icon   string  optional  

Emoji icon. Example: 🪴

Response

Response Fields

id   integer   

Exercise ID.

name   string   

Exercise name.

description   string   

Exercise description.

icon   string   

Exercise icon identifier.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete exercise

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/exercises/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/exercises/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Exercise deleted",
    "code": "GOALS:DELETE_EXERCISE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage exercises",
    "code": "GOALS:DELETE_EXERCISE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Exercise is used in goals):


{
    "message": "Cannot delete: exercise is used in goals (1)",
    "code": "GOALS:DELETE_EXERCISE:HAS_GOALS"
}
 

Example response (404, Exercise not found):


{
    "message": "Exercise not found",
    "code": "GOALS:DELETE_EXERCISE:EXERCISE_NOT_FOUND"
}
 

Request   

DELETE api/exercises/{exerciseId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

exerciseId   integer   

Exercise ID. Example: 1

List user goals

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/user/1/goals?active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/goals"
);

const params = {
    "active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "amputee_id": 263,
            "clinician_id": 264,
            "start_date": "2010-03-19",
            "end_date": "1983-01-23",
            "active": 0,
            "created_at": "2026-08-28T14:46:17.000000Z",
            "updated_at": "2026-08-28T14:46:17.000000Z"
        },
        {
            "id": 2,
            "amputee_id": 265,
            "clinician_id": 266,
            "start_date": "1975-06-25",
            "end_date": "2007-06-19",
            "active": 0,
            "created_at": "2026-08-28T14:46:18.000000Z",
            "updated_at": "2026-08-28T14:46:18.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view user goals",
    "code": "GOALS:LIST_GOALS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "GOALS:LIST_GOALS:USER_NOT_FOUND"
}
 

Request   

GET api/user/{userId}/goals

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Query Parameters

active   boolean  optional  

Goal active status. Example: 1

sortby   string  optional  

Sort by field (available: start_date). Default: start_date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Goal ID.

amputee_id   integer   

Patient (amputee) user ID.

clinician_id   integer   

Clinician user ID.

start_date   string   

Goal start date.

end_date   string   

Goal end date.

active   boolean   

Whether the goal is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create user goal

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/user/1/goals" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2023-05-12\",
    \"end_date\": \"2023-05-15\",
    \"active\": true
}"
const url = new URL(
    "http://localhost:8000/api/user/1/goals"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "start_date": "2023-05-12",
    "end_date": "2023-05-15",
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "amputee_id": 267,
    "clinician_id": 268,
    "start_date": "1984-10-30",
    "end_date": "1983-08-27",
    "active": 1,
    "created_at": "2026-08-28T14:46:19.000000Z",
    "updated_at": "2026-08-28T14:46:19.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user goals",
    "code": "GOALS:CREATE_GOAL:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "GOALS:CREATE_GOAL:USER_NOT_FOUND"
}
 

Request   

POST api/user/{userId}/goals

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Body Parameters

start_date   string   

Start date of the goal tracking. MUST_BE_DATE Must be a valid date in the format Y-m-d. MUST_BE_AFTER_OR_EQUAL:today. Example: 2023-05-12

end_date   string   

End date of goal tracking. MUST_BE_DATE Must be a valid date in the format Y-m-d. MUST_BE_AFTER:start_date. Example: 2023-05-15

active   boolean  optional  

Status of goal activity. Example: true

Response

Response Fields

id   integer   

Goal ID.

amputee_id   integer   

Patient (amputee) user ID.

clinician_id   integer   

Clinician user ID.

start_date   string   

Goal start date.

end_date   string   

Goal end date.

active   boolean   

Whether the goal is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update user goal

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/user/1/goals/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2023-05-12\",
    \"end_date\": \"2023-05-15\",
    \"active\": true
}"
const url = new URL(
    "http://localhost:8000/api/user/1/goals/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "start_date": "2023-05-12",
    "end_date": "2023-05-15",
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 4,
    "amputee_id": 269,
    "clinician_id": 270,
    "start_date": "2015-10-21",
    "end_date": "2023-09-06",
    "active": 0,
    "created_at": "2026-08-28T14:46:19.000000Z",
    "updated_at": "2026-08-28T14:46:19.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user goals",
    "code": "GOALS:UPDATE_GOAL:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Cannot activate ongoing goal):


{
    "message": "Cannot activate ongoing goal",
    "code": "GOALS:UPDATE_GOAL:GOAL_IS_ONGOING"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "GOALS:UPDATE_GOAL:USER_NOT_FOUND"
}
 

Example response (404, Goal not found):


{
    "message": "Goal not found",
    "code": "GOALS:UPDATE_GOAL:GOAL_NOT_FOUND"
}
 

Request   

PUT api/user/{userId}/goals/{goalId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

goalId   integer   

Goal ID. Example: 1

Body Parameters

start_date   string  optional  

Start date of the goal tracking. MUST_BE_DATE Must be a valid date in the format Y-m-d. MUST_BE_AFTER_OR_EQUAL:today. Example: 2023-05-12

end_date   string  optional  

End date of goal tracking. MUST_BE_DATE Must be a valid date in the format Y-m-d. MUST_BE_AFTER:start_date. Example: 2023-05-15

active   boolean  optional  

Status of goal activity. Example: true

Response

Response Fields

id   integer   

Goal ID.

amputee_id   integer   

Patient (amputee) user ID.

clinician_id   integer   

Clinician user ID.

start_date   string   

Goal start date.

end_date   string   

Goal end date.

active   boolean   

Whether the goal is active.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete user goal

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/user/1/goals/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/goals/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Goal deleted",
    "code": "GOALS:DELETE_GOAL:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user goals",
    "code": "GOALS:DELETE_GOAL:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Cannot delete ongoing goal):


{
    "message": "Cannot delete active ongoing goal",
    "code": "GOALS:DELETE_GOAL:GOAL_IS_ONGOING"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "GOALS:DELETE_GOAL:USER_NOT_FOUND"
}
 

Example response (404, Goal not found):


{
    "message": "Goal not found",
    "code": "GOALS:DELETE_GOAL:GOAL_NOT_FOUND"
}
 

Request   

DELETE api/user/{userId}/goals/{goalId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

goalId   integer   

Goal ID. Example: 1

List user goal conditions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/user/1/goals/1/conditions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/goals/1/conditions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "goal_id": 5,
            "type": "switch",
            "grip_id": 3,
            "grips_frequency": "d",
            "grips_count": 70,
            "switches_frequency": "w",
            "switches_count": 750,
            "exercise_id": 5,
            "exercise_frequency": "m",
            "exercise_count": 2,
            "created_at": "2026-08-28T14:46:20.000000Z",
            "updated_at": "2026-08-28T14:46:20.000000Z"
        },
        {
            "id": 2,
            "goal_id": 6,
            "type": "exercise",
            "grip_id": 4,
            "grips_frequency": "w",
            "grips_count": 753,
            "switches_frequency": "w",
            "switches_count": 608,
            "exercise_id": 6,
            "exercise_frequency": "d",
            "exercise_count": 5,
            "created_at": "2026-08-28T14:46:21.000000Z",
            "updated_at": "2026-08-28T14:46:21.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view user goals",
    "code": "GOALS:LIST_CONDITIONS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "GOALS:LIST_CONDITIONS:USER_NOT_FOUND"
}
 

Example response (404, Goal not found):


{
    "message": "Goal not found",
    "code": "GOALS:LIST_CONDITIONS:GOAL_NOT_FOUND"
}
 

Request   

GET api/user/{userId}/goals/{goalId}/conditions

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

goalId   integer   

Goal ID. Example: 1

Response

Response Fields

items   object   
id   integer   

Goal condition ID.

goal_id   integer   

Associated goal ID.

type   string   

Condition type.

Must be one of:
  • grip
  • switch
  • exercise
grip_id   integer   

Target grip ID.

grips_frequency   string   

Grip frequency period.

Must be one of:
  • d
  • w
  • m
  • a
grips_count   integer   

Required grip count.

switches_frequency   string   

Switch frequency period.

Must be one of:
  • d
  • w
  • m
  • a
switches_count   integer   

Required switch count.

exercise_id   integer   

Target exercise ID.

exercise_frequency   string   

Exercise frequency period.

Must be one of:
  • d
  • w
  • m
exercise_count   integer   

Required exercise count.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create user goal condition

requires authentication

Each goal condition could be one of type: grip, switch or exercise.

If goal condition is type of grip, fill only grip_id (optional), grips_frequency and grips_count.
If grip_id is null or missing, patient can perform any grip to fulfill objective.

If goal condition is type of switch, fill only switches_frequency and switches_count.

If goal condition is type of exercise, fill only exercise_id, exercise_frequency and exercise_count.


Restrictions:

  • you can add one grip-any condition (grip_id=null, any grip is counted) and many grip-specific conditions (for example: grip 1 - 100 times and grip 2 - 50 times),
  • all grips conditions must have same frequency (grips_frequency field),
  • sum of grip-specific conditions (grips_count field) cannot be greater than grip-any condition for same goal
  • you can add only one switch condition for same goal,
  • you can add multiple exercise conditions, but each exercise can be used only once.
Example request:
curl --request POST \
    "http://localhost:8000/api/user/1/goals/1/conditions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"grip\",
    \"grip_id\": 1,
    \"grips_frequency\": \"d\",
    \"grips_count\": 100,
    \"switches_frequency\": \"d\",
    \"switches_count\": 100,
    \"exercise_id\": 1,
    \"exercise_frequency\": \"d\",
    \"exercise_count\": 5
}"
const url = new URL(
    "http://localhost:8000/api/user/1/goals/1/conditions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "grip",
    "grip_id": 1,
    "grips_frequency": "d",
    "grips_count": 100,
    "switches_frequency": "d",
    "switches_count": 100,
    "exercise_id": 1,
    "exercise_frequency": "d",
    "exercise_count": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "goal_id": 7,
    "type": "grip",
    "grip_id": 5,
    "grips_frequency": "d",
    "grips_count": 579,
    "switches_frequency": "m",
    "switches_count": 118,
    "exercise_id": 7,
    "exercise_frequency": "m",
    "exercise_count": 6,
    "created_at": "2026-08-28T14:46:22.000000Z",
    "updated_at": "2026-08-28T14:46:22.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user goals",
    "code": "GOALS:CREATE_CONDITION:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Cannot create condition: all grip conditions have to be same frequency):


{
    "message": "Cannot create condition: all grip conditions have to be same frequency",
    "code": "GOALS:CREATE_CONDITION:INVALID_FREQUENCY"
}
 

Example response (403, Cannot create condition: grip-any condition for this goal already exist):


{
    "message": "Cannot create condition: grip-any condition for this goal already exist",
    "code": "GOALS:CREATE_CONDITION:GRIP_ANY_ALREADY_EXISTS"
}
 

Example response (403, Cannot create condition: condition with this grip already exist):


{
    "message": "Cannot create condition: condition with this grip already exist",
    "code": "GOALS:CREATE_CONDITION:GRIP_CONDITION_ALREADY_EXISTS"
}
 

Example response (403, Cannot create condition: grip-any value cannot be lower than sum of grip-specific conditions):


{
    "message": "Cannot create condition: grip-any value cannot be lower than sum of grip-specific conditions",
    "code": "GOALS:CREATE_CONDITION:GRIP_ANY_LOWER_THAN_GRIPS_SUM"
}
 

Example response (403, Cannot create condition: sum of grip-specific conditions cannot be greater than value of grip-any condition):


{
    "message": "Cannot create condition: sum of grip-specific conditions cannot be greater than value of grip-any condition",
    "code": "GOALS:CREATE_CONDITION:GRIPS_SUM_GREATER_THAN_GRIP_ANY"
}
 

Example response (403, Cannot create condition: switch condition for this goal already exist):


{
    "message": "Cannot create condition: switch condition for this goal already exist",
    "code": "GOALS:CREATE_CONDITION:SWITCH_CONDITION_ALREADY_EXISTS"
}
 

Example response (403, Cannot create condition: condition with this exercise already exist):


{
    "message": "Cannot create condition: condition with this exercise already exist",
    "code": "GOALS:CREATE_CONDITION:EXERCISE_CONDITION_ALREADY_EXISTS"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "GOALS:CREATE_CONDITION:USER_NOT_FOUND"
}
 

Example response (404, Goal not found):


{
    "message": "Goal not found",
    "code": "GOALS:CREATE_CONDITION:GOAL_NOT_FOUND"
}
 

Request   

POST api/user/{userId}/goals/{goalId}/conditions

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

goalId   integer   

Goal ID. Example: 1

Body Parameters

type   string   

Goal condition type. Example: grip

Must be one of:
  • grip
  • switch
  • exercise
grip_id   integer  optional  

Grip number required for condition. Pass null to allow any grip. The id of an existing record in the App\Models\Grip table. Example: 1

grips_frequency   string  optional  

Grips frequency unit. d - daily, w - weekly, m - monthly, a - all time (within goal). This field is required when type is grip. Example: d

Must be one of:
  • d
  • w
  • m
  • a
grips_count   integer  optional  

Required number of grips per frequency unit. This field is required when type is grip. MINIMUM:NUMBER:1. Example: 100

switches_frequency   string  optional  

Switches frequency unit. d - daily, w - weekly, m - monthly, a - all time (within goal). This field is required when type is switch. Example: d

Must be one of:
  • d
  • w
  • m
  • a
switches_count   integer  optional  

Required number of switches per frequency unit. This field is required when type is switch. MINIMUM:NUMBER:1. Example: 100

exercise_id   integer  optional  

Exercise ID. This field is required when type is exercise. The id of an existing record in the App\Models\Exercise table. Example: 1

exercise_frequency   string  optional  

Exercise frequency unit. d - daily, w - weekly, m - monthly. This field is required when type is exercise. Example: d

Must be one of:
  • d
  • w
  • m
exercise_count   integer  optional  

Required number of performed exercises per frequency unit. This field is required when type is exercise. MINIMUM:NUMBER:1. Example: 5

Response

Response Fields

id   integer   

Goal condition ID.

goal_id   integer   

Associated goal ID.

type   string   

Condition type.

Must be one of:
  • grip
  • switch
  • exercise
grip_id   integer   

Target grip ID.

grips_frequency   string   

Grip frequency period.

Must be one of:
  • d
  • w
  • m
  • a
grips_count   integer   

Required grip count.

switches_frequency   string   

Switch frequency period.

Must be one of:
  • d
  • w
  • m
  • a
switches_count   integer   

Required switch count.

exercise_id   integer   

Target exercise ID.

exercise_frequency   string   

Exercise frequency period.

Must be one of:
  • d
  • w
  • m
exercise_count   integer   

Required exercise count.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete user goal condition

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/user/1/goals/1/conditions/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/goals/1/conditions/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Goal condition deleted",
    "code": "GOALS:DELETE_CONDITION:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user goals",
    "code": "GOALS:DELETE_CONDITION:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "GOALS:DELETE_CONDITION:USER_NOT_FOUND"
}
 

Example response (404, Goal not found):


{
    "message": "Goal not found",
    "code": "GOALS:DELETE_CONDITION:GOAL_NOT_FOUND"
}
 

Request   

DELETE api/user/{userId}/goals/{goalId}/conditions/{conditionId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

goalId   integer   

Goal ID. Example: 1

conditionId   integer   

Goal condition ID. Example: 1

Get user goal progress

requires authentication

Data is grouped into three parts:
  • grips - data about grips progress,
  • switches - data about switches progress,
  • exercises - data about exercises progress and attempts made.
For grips and switches there is summary, which is divided into 4 parts:
  • overall - summary of whole goal time-frame,
  • period - summary of given period, according to frequency (for example: if frequency of conditions is "weekly", these data is summary of current's week).
  • today - summary of today's, used mainly to send daily summary notifications,
  • conditions - goal conditions with progress for each one.
There are also extra fields inside the summary parts:
  • type for grips overall summary, which points which conditions were used to calculate the summary. If grip-any condition exists, it has priority over grip-specific conditions, otherwise summary contains sum of all grip-specific conditions,
  • frequency, frequency_from and frequency_to for period summary for both grips and switches, which describe time-frame of frequency and period,
  • done for today's summary for both grips and switches, indicates if today's goal is reached (it's calculated only for conditions of frequency "daily").
Example request:
curl --request GET \
    --get "http://localhost:8000/api/goals/1/progress" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/goals/1/progress"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "grips": {
        "meta": {
            "overall": {
                "from": "2023-09-01 00:00:00",
                "to": "2023-08-30 23:59:59"
            },
            "period": {
                "from": "2023-09-15 23:59:59",
                "to": "2023-09-21 23:59:59",
                "frequency": "w"
            }
        },
        "summary": {
            "type": "grips-specific",
            "progress": 222,
            "goal": 2535
        },
        "progress": [
            {
                "grip": {
                    "id": 1,
                    "number": 0,
                    "name": "Rest Opposition",
                    "description": null,
                    "created_at": "2023-08-30T12:20:00.000000Z",
                    "updated_at": "2023-08-30T12:20:00.000000Z"
                },
                "overall": {
                    "progress": 125,
                    "goal": 200
                },
                "period": {
                    "progress": 22,
                    "goal": 50
                }
            },
            {
                "grip": {
                    "id": 2,
                    "number": 1,
                    "name": "Power",
                    "description": null,
                    "created_at": "2023-05-18T11:24:11.000000Z",
                    "updated_at": "2023-05-18T11:24:11.000000Z"
                },
                "overall": {
                    "progress": 90,
                    "goal": 150
                },
                "period": {
                    "progress": 10,
                    "goal": 30
                }
            },
            {
                "grip": null,
                "overall": {
                    "progress": 78,
                    "goal": 1250
                },
                "period": {
                    "progress": 17,
                    "goal": 240
                }
            }
        ],
        "today": {
            "performed": 0,
            "goal": 0,
            "done": true
        }
    },
    "switches": {
        "overall": {
            "performed": 55,
            "goal": 300
        },
        "period": {
            "performed": 25,
            "goal": 30,
            "frequency": "d",
            "frequency_from": "2023-09-20 00:00:00",
            "frequency_to": "2023-09-20 23:59:59"
        },
        "today": {
            "performed": 25,
            "goal": 30,
            "done": false
        },
        "condition": {
            "type": "switch",
            "switches_frequency": "d",
            "switches_count": 30
        }
    },
    "exercises": {
        "performed": 1,
        "goal": 3,
        "done": false,
        "conditions": [
            {
                "type": "exercise",
                "exercise_id": 1,
                "exercise_frequency": "d",
                "exercise_count": 3,
                "attempts": [
                    {
                        "date_from": "2023-06-06",
                        "date_to": "2023-06-12",
                        "count_done": 1,
                        "count_not_done": 1
                    },
                    {
                        "date_from": "2023-06-13",
                        "date_to": "2023-06-19",
                        "count_done": 0,
                        "count_not_done": 0
                    },
                    {
                        "date_from": "2023-06-20",
                        "date_to": "2023-06-26",
                        "count_done": 0,
                        "count_not_done": 0
                    },
                    {
                        "date_from": "2023-06-27",
                        "date_to": "2023-07-03",
                        "count_done": 0,
                        "count_not_done": 0
                    }
                ],
                "exercise": {
                    "id": 1,
                    "name": "Water plants",
                    "description": "Use Tripod Grip and water your plants",
                    "icon": "🪴",
                    "created_at": "2023-05-19T10:25:37.000000Z",
                    "updated_at": "2023-05-19T10:25:37.000000Z"
                }
            }
        ]
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view goal progress",
    "code": "GOALS:GET_PROGRESS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Goal not found):


{
    "message": "Goal not found",
    "code": "GOALS:GET_PROGRESS:GOAL_NOT_FOUND"
}
 

Request   

GET api/goals/{goalId}/progress

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

goalId   integer   

Goal ID. Example: 1

Update user goal progress

requires authentication

Use this endpoint to update goal progress as patient. Add exercise attempts and mark them as done or not done.

Example request:
curl --request POST \
    "http://localhost:8000/api/goals/1/progress" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"exercise_id\": 1,
    \"exercise_done\": true
}"
const url = new URL(
    "http://localhost:8000/api/goals/1/progress"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "exercise_id": 1,
    "exercise_done": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 1,
    "user_id": 277,
    "goal_id": 8,
    "type": "switch",
    "grip_id": null,
    "grips": 498,
    "switches": 586,
    "exercise_id": 8,
    "exercise_done": 1,
    "created_at": "2026-08-28T14:46:23.000000Z",
    "updated_at": "2026-08-28T14:46:23.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update goal progress",
    "code": "GOALS:UPDATE_PROGRESS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Goal not found):


{
    "message": "Goal not found",
    "code": "GOALS:UPDATE_PROGRESS:GOAL_NOT_FOUND"
}
 

Example response (422, User timezone not set):


{
    "message": "User timezone not set",
    "code": "GOALS:UPDATE_PROGRESS:NO_TIMEZONE"
}
 

Request   

POST api/goals/{goalId}/progress

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

goalId   integer   

Goal ID. Example: 1

Body Parameters

exercise_id   integer   

Exercise ID. The id of an existing record in the App\Models\Exercise table. Example: 1

exercise_done   boolean  optional  

Status of exercise attempt. Example: true

Response

Response Fields

id   integer   

User goal ID.

user_id   integer   

Associated user ID.

goal_id   integer   

Associated goal ID.

type   string   

Goal condition type.

Must be one of:
  • grip
  • switch
  • exercise
grip_id   integer   

Target grip ID.

grips   integer   

Grip count progress.

switches   integer   

Switch count progress.

exercise_id   integer   

Target exercise ID.

exercise_done   boolean   

Whether the exercise is completed.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Invitations

Accept clinician invitation

Example request:
curl --request POST \
    "http://localhost:8000/api/invite/accept" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"ABC123DEF456GHI789JKL0\",
    \"email\": \"example@domain.com\",
    \"password\": \"Test123!\",
    \"language\": \"en\",
    \"name\": \"Tom Smith\",
    \"clinic_name\": \"My clinic Ltd\",
    \"clinic_location\": \"Example St 1\\/345 New York, NY\",
    \"address1\": \"8791 Block Burgs Suite 275\",
    \"address2\": \"East Jarvis, CA 66988\",
    \"mfa_enabled\": true,
    \"mfa_method\": \"email\"
}"
const url = new URL(
    "http://localhost:8000/api/invite/accept"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "ABC123DEF456GHI789JKL0",
    "email": "example@domain.com",
    "password": "Test123!",
    "language": "en",
    "name": "Tom Smith",
    "clinic_name": "My clinic Ltd",
    "clinic_location": "Example St 1\/345 New York, NY",
    "address1": "8791 Block Burgs Suite 275",
    "address2": "East Jarvis, CA 66988",
    "mfa_enabled": true,
    "mfa_method": "email"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 4,
    "mrn": "P5EPECF81787928260",
    "name": "Cristobal Morissette",
    "email": "1787928260mclaughlin.brody@example.com",
    "language": "en",
    "phone": "215.249.7295",
    "phone_country": "TO",
    "phone_verified_at": null,
    "address1": "3329 Cordia Road Apt. 003",
    "address2": "West Trever, NY 27428",
    "postal_code": "35775-7176",
    "city": "McGlynn, Medhurst and Bednar",
    "country": "IN",
    "clinic_name": "Lake Darrel",
    "clinic_location": "3288 Millie Junction\nLake Alecmouth, HI 72466-4970",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:20.000000Z",
    "updated_at": "2026-08-28T14:44:20.000000Z",
    "invitation_status": null,
    "acadle_invitation_status": null,
    "roles": [
        {
            "id": 6,
            "name": "Amputee"
        }
    ]
}
 

Example response (403, Invitation expired):


{
    "message": "Invitation expired",
    "code": "INVITATIONS:ACCEPT:INVITATION_EXPIRED"
}
 

Example response (404, Invitation not found):


{
    "message": "Invitation not found",
    "code": "INVITATIONS:ACCEPT:INVITATION_NOT_FOUND"
}
 

Example response (500, Server error):


{
    "message": "Server error: invitation not accepted",
    "code": "INVITATIONS:ACCEPT:SERVER_ERROR"
}
 

Request   

POST api/invite/accept

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

token   string   

Invitation token sent by e-mail. SIZE:STRING_LENGTH:24. Example: ABC123DEF456GHI789JKL0

email   string   

User e-mail. MUST_BE_EMAIL. Example: example@domain.com

password   string   

User password. Example: Test123!

language   string   

User language. Example: en

name   string   

User name. Example: Tom Smith

clinic_name   string  optional  

Clinic name. Example: My clinic Ltd

clinic_location   string  optional  

Clinic location. Example: Example St 1/345 New York, NY

address1   string  optional  

User address line 1. Example: 8791 Block Burgs Suite 275

address2   string  optional  

User address line 2. Example: East Jarvis, CA 66988

mfa_enabled   boolean  optional  

MFA enabled. Example: true

mfa_method   string  optional  

MFA method. Example: email

Must be one of:
  • email
  • sms

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Accept Acadle invitation

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/invite/acadle/accept" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"a1b2c3d4e5f6g7h8i9j0k1l2m3\",
    \"email\": \"user@example.com\",
    \"password\": \"securePassword123\",
    \"phone\": \"256-896-9145\",
    \"phone_country\": \"US\",
    \"name\": \"John Doe\",
    \"language\": \"en\"
}"
const url = new URL(
    "http://localhost:8000/api/invite/acadle/accept"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "a1b2c3d4e5f6g7h8i9j0k1l2m3",
    "email": "user@example.com",
    "password": "securePassword123",
    "phone": "256-896-9145",
    "phone_country": "US",
    "name": "John Doe",
    "language": "en"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 5,
    "mrn": "UQAA4C5B1787928260",
    "name": "Tanya Gaylord Sr.",
    "email": "1787928260meghan00@example.org",
    "language": "en",
    "phone": "(325) 398-1492",
    "phone_country": "IQ",
    "phone_verified_at": null,
    "address1": "725 Mertie Lodge",
    "address2": "Lake Elias, MS 14917-6956",
    "postal_code": "11650",
    "city": "Schaden Group",
    "country": "AT",
    "clinic_name": "West Janton",
    "clinic_location": "777 Princess Crossroad\nLake Eva, VT 87798",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:21.000000Z",
    "updated_at": "2026-08-28T14:44:21.000000Z",
    "invitation_status": null,
    "acadle_invitation_status": null,
    "roles": [
        {
            "id": 6,
            "name": "Amputee"
        }
    ]
}
 

Example response (403, Invitation expired):


{
    "message": "Invitation expired",
    "code": "INVITATIONS_ACADLE:ACCEPT:INVITATION_EXPIRED"
}
 

Example response (404, Invitation not found):


{
    "message": "Invitation not found",
    "code": "INVITATIONS_ACADLE:ACCEPT:INVITATION_NOT_FOUND"
}
 

Example response (500, Server error):


{
    "message": "Server error: invitation not accepted",
    "code": "INVITATIONS_ACADLE:ACCEPT:SERVER_ERROR"
}
 

Request   

POST api/invite/acadle/accept

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

token   string   

Invitation token. SIZE:STRING_LENGTH:24. Example: a1b2c3d4e5f6g7h8i9j0k1l2m3

email   string   

Email address of the Acadle user. MUST_BE_EMAIL. Example: user@example.com

password   string   

User password. Example: securePassword123

phone   string   

User phone number. Example: 256-896-9145

phone_country   string   

Phone number's country (2 characters). SIZE:STRING_LENGTH:2. Example: US

name   string   

User name. Example: John Doe

language   string   

User preferred language. Example: en

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

List users for invitations

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/invite/users" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/invite/users"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 15,
            "mrn": "6LF8GELW1787928266",
            "name": "Mr. Sigurd Bahringer Sr.",
            "email": "1787928266wgoodwin@example.net",
            "language": "en",
            "phone": "(351) 903-6495",
            "phone_country": "KZ",
            "phone_verified_at": null,
            "address1": "6790 Hauck Harbor",
            "address2": "Macejkovicmouth, MS 38150",
            "postal_code": "19683-1226",
            "city": "Johnston Ltd",
            "country": "LV",
            "clinic_name": "Morarmouth",
            "clinic_location": "730 Neoma Coves Apt. 848\nNew Madysonland, WV 01781",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:44:26.000000Z",
            "updated_at": "2026-08-28T14:44:26.000000Z",
            "invitation_status": "accepted",
            "acadle_invitation_status": null,
            "roles": [
                {
                    "id": 4,
                    "name": "Clinician"
                }
            ]
        },
        {
            "id": 16,
            "mrn": "7D68QYP81787928267",
            "name": "Pinkie White",
            "email": "1787928267bwiza@example.com",
            "language": "en",
            "phone": "918-786-9498",
            "phone_country": "GQ",
            "phone_verified_at": null,
            "address1": "976 Alfonso Gardens",
            "address2": "Claudbury, OK 38418",
            "postal_code": "07492-3397",
            "city": "Conroy-Borer",
            "country": "MT",
            "clinic_name": "East Irwin",
            "clinic_location": "7623 Fadel Camp\nNorth Marielaberg, NH 57038",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:44:27.000000Z",
            "updated_at": "2026-08-28T14:44:27.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": null,
            "roles": [
                {
                    "id": 2,
                    "name": "CommunityAdmin"
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list users for invitations",
    "code": "INVITATIONS:USERS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/invite/users

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: clinicians, patients, devices, devicesAsClinician, roles, permissions).

Response

Response Fields

items   object   
id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create clinician invitations

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/invite" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"patient_id\": 1,
    \"invitations\": [
        {
            \"user_id\": 1,
            \"user_email\": \"newuser@domain.com\",
            \"role\": \"Clinician\",
            \"training_confirmed\": true,
            \"permissions\": [
                \"exercitationem\"
            ]
        }
    ]
}"
const url = new URL(
    "http://localhost:8000/api/invite"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "patient_id": 1,
    "invitations": [
        {
            "user_id": 1,
            "user_email": "newuser@domain.com",
            "role": "Clinician",
            "training_confirmed": true,
            "permissions": [
                "exercitationem"
            ]
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 10,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 17,
            "mrn": "JWRZE39M1787928267",
            "name": "Dr. Delmer O'Hara MD",
            "email": "1787928267turcotte.iliana@example.org",
            "language": "en",
            "phone": "360-466-9007",
            "phone_country": "SS",
            "phone_verified_at": null,
            "address1": "614 Constance Village Suite 430",
            "address2": "Port Onietown, WY 56994-1070",
            "postal_code": "44165-7080",
            "city": "Hagenes-Kuphal",
            "country": "UA",
            "clinic_name": "Cartwrightton",
            "clinic_location": "14524 Arnaldo Mall\nSouth Erica, NY 65176",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:44:27.000000Z",
            "updated_at": "2026-08-28T14:44:27.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": null,
            "invitations": [
                {
                    "id": 1,
                    "user_id": 18,
                    "invited_user_id": 17,
                    "type": "clinician",
                    "training_confirmed": 1,
                    "created_at": "2026-08-28T14:44:28.000000Z",
                    "updated_at": "2026-08-28T14:44:28.000000Z"
                }
            ],
            "roles": [
                {
                    "id": 6,
                    "name": "Amputee"
                }
            ]
        },
        {
            "id": 20,
            "mrn": "EHCMYB3R1787928268",
            "name": "Mrs. Elta Miller DDS",
            "email": "1787928268garth97@example.com",
            "language": "en",
            "phone": "719.310.2227",
            "phone_country": "VN",
            "phone_verified_at": null,
            "address1": "3260 Beatty Trail Apt. 156",
            "address2": "Sporerhaven, DE 62052",
            "postal_code": "38923-2376",
            "city": "Tromp-Hills",
            "country": "UA",
            "clinic_name": "Leathaview",
            "clinic_location": "77211 Bernadette Valleys Suite 209\nEast Emmanuelland, WI 40015",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:44:28.000000Z",
            "updated_at": "2026-08-28T14:44:28.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": null,
            "invitations": [
                {
                    "id": 2,
                    "user_id": 21,
                    "invited_user_id": 20,
                    "type": "clinician",
                    "training_confirmed": 1,
                    "created_at": "2026-08-28T14:44:30.000000Z",
                    "updated_at": "2026-08-28T14:44:30.000000Z"
                }
            ],
            "roles": [
                {
                    "id": 2,
                    "name": "CommunityAdmin"
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create invitations",
    "code": "INVITATIONS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, No access to given patient):


{
    "message": "No access to given patient",
    "code": "INVITATIONS:CREATE:NO_ACCESS_TO_PATIENT"
}
 

Request   

POST api/invite

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

patient_id   string  optional  

Patient user ID. The id of an existing record in the App\Models\User table. Example: 1

invitations   object[]   

List of invitations (maximum entries: 10, array of objects).

user_id   integer  optional  

Invited user ID. Use only for existing users. Don't use together with user_email. This field is required when invitations.*.user_email is not present. The id of an existing record in the App\Models\User table. Example: 1

user_email   string  optional  

Invited user e-mail. Use only for non-existing users. Don't use together with user_id. This field is required when invitations.*.user_id is not present. MUST_BE_EMAIL. Example: newuser@domain.com

role   string  optional  

Invited user role. Use only for non-existing users. This field is required when invitations.*.user_id is not present. Example: Clinician

Must be one of:
  • ClinicAdmin
  • Clinician
  • ClinicianSupport
training_confirmed   boolean   

Confirmation that invited user was properly trained to use ADP. Must be accepted. Example: true

permissions   string[]  optional  

List of permissions to assign to the user (use that for ClinicianSupport role).

permissions[]   string  optional  

Permission name. Example: dolores

Response

Response Fields

items   object   
id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Resend invitation

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/invite/1/resend" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/invite/1/resend"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "id": 23,
    "mrn": "QNVHEKDG1787928270",
    "name": "Cleta Ankunding",
    "email": "1787928270buford76@example.org",
    "language": "en",
    "phone": "1-931-959-7617",
    "phone_country": "LU",
    "phone_verified_at": null,
    "address1": "54889 Cummings Crescent",
    "address2": "New Berniecemouth, NE 74695",
    "postal_code": "74545",
    "city": "Gerhold LLC",
    "country": "DK",
    "clinic_name": "New Jaedenside",
    "clinic_location": "1533 Abbott Rapid Suite 673\nNew Huldafort, NE 53726",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:30.000000Z",
    "updated_at": "2026-08-28T14:44:30.000000Z",
    "invitation_status": "accepted",
    "acadle_invitation_status": null,
    "invitations": [
        {
            "id": 3,
            "user_id": 24,
            "invited_user_id": 23,
            "type": "clinician",
            "training_confirmed": 0,
            "created_at": "2026-08-28T14:44:31.000000Z",
            "updated_at": "2026-08-28T14:44:31.000000Z"
        }
    ],
    "roles": [
        {
            "id": 3,
            "name": "ClinicAdmin"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to resend invitations",
    "code": "INVITATIONS:RESEND:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User not found):


{
    "message": "User not found",
    "code": "INVITATIONS:RESEND:USER_NOT_FOUND"
}
 

Example response (403, Invitation already accepted):


{
    "message": "Invitation already accepted",
    "code": "INVITATIONS:RESEND:INVITATION_ALREADY_ACCEPTED"
}
 

Request   

POST api/invite/{userId}/resend

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

List all users invited to Acadle

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/invite/acadle/users?search=john" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/invite/acadle/users"
);

const params = {
    "search": "john",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 26,
            "mrn": "2P9CRY3E1787928271",
            "name": "Federico Lindgren",
            "email": "1787928271brisa32@example.net",
            "language": "en",
            "phone": "623-527-5246",
            "phone_country": "BO",
            "phone_verified_at": null,
            "address1": "133 Dameon Spurs",
            "address2": "Padbergborough, ME 56198-5586",
            "postal_code": "65151-3516",
            "city": "Becker-Nitzsche",
            "country": "BE",
            "clinic_name": "Gleasonville",
            "clinic_location": "588 DuBuque Roads Apt. 339\nKamrenchester, MI 00235-1395",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:44:31.000000Z",
            "updated_at": "2026-08-28T14:44:31.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": "accepted",
            "roles": [
                {
                    "id": 7,
                    "name": "AcadleUser"
                }
            ]
        },
        {
            "id": 27,
            "mrn": "FP45VUJ51787928272",
            "name": "Abdul Abernathy",
            "email": "1787928272ianderson@example.net",
            "language": "en",
            "phone": "215.801.1655",
            "phone_country": "SX",
            "phone_verified_at": null,
            "address1": "58617 Breanna Ville Apt. 356",
            "address2": "Mckaylatown, PA 82179",
            "postal_code": "20263",
            "city": "Lindgren Group",
            "country": "ES",
            "clinic_name": "New Ashleeside",
            "clinic_location": "22612 Sanford Springs Suite 018\nNorth Aubrey, IL 51840-7601",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:44:32.000000Z",
            "updated_at": "2026-08-28T14:44:32.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": "accepted",
            "roles": [
                {
                    "id": 7,
                    "name": "AcadleUser"
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list users for invitations",
    "code": "INVITATIONS_ACADLE:USERS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/invite/acadle/users

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Filter users by searching in: user name, user email, contact name, contact surname, contact email, CPO number. Example: john

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: roles, acadleSurvey, latestAcadleSurvey).

sortby   string  optional  

Sort by field (available: survey_completion_date). Default: survey_completion_date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create Acadle invitation

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/invite/acadle" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"bartholome76@example.org\"
}"
const url = new URL(
    "http://localhost:8000/api/invite/acadle"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "bartholome76@example.org"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 28,
    "mrn": "Z8YRY2QN1787928272",
    "name": "Catherine Carroll",
    "email": "1787928272wintheiser.clovis@example.com",
    "language": "en",
    "phone": "+1.870.665.2242",
    "phone_country": "ER",
    "phone_verified_at": null,
    "address1": "280 Jeramie Mission",
    "address2": "East Elody, DE 39029",
    "postal_code": "45340-0717",
    "city": "Hammes, Wiza and Kautzer",
    "country": "DE",
    "clinic_name": "Nikitaside",
    "clinic_location": "8323 Gutmann Dam\nPort Alisa, KS 50000",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:32.000000Z",
    "updated_at": "2026-08-28T14:44:32.000000Z",
    "invitation_status": "accepted",
    "acadle_invitation_status": null,
    "invitations": [
        {
            "id": 4,
            "user_id": 29,
            "invited_user_id": 28,
            "type": "clinician",
            "training_confirmed": 0,
            "created_at": "2026-08-28T14:44:33.000000Z",
            "updated_at": "2026-08-28T14:44:33.000000Z"
        }
    ],
    "roles": [
        {
            "id": 3,
            "name": "ClinicAdmin"
        }
    ]
}
 

Example response (400, User already exists):


{
    "message": "User with this email already exists in the system",
    "code": "INVITATIONS_ACADLE:CREATE:USER_ALREADY_EXISTS"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create invitations",
    "code": "INVITATIONS_ACADLE:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/invite/acadle

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

Email address of the Acadle user. Example: bartholome76@example.org

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Resend Acadle invitation

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/invite/acadle/1/resend" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/invite/acadle/1/resend"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "id": 31,
    "mrn": "CX8JZVYF1787928273",
    "name": "Prof. Napoleon Dare",
    "email": "1787928273henderson74@example.net",
    "language": "en",
    "phone": "380.613.0792",
    "phone_country": "LB",
    "phone_verified_at": null,
    "address1": "615 Cole Crescent",
    "address2": "Port Jonathan, ND 35245",
    "postal_code": "24835",
    "city": "Murazik-Lowe",
    "country": "RO",
    "clinic_name": "West Kylieport",
    "clinic_location": "5497 Wilfredo Ville Suite 736\nGorczanyfurt, FL 72078-3177",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:33.000000Z",
    "updated_at": "2026-08-28T14:44:33.000000Z",
    "invitation_status": "accepted",
    "acadle_invitation_status": null,
    "invitations": [
        {
            "id": 5,
            "user_id": 32,
            "invited_user_id": 31,
            "type": "clinician",
            "training_confirmed": 0,
            "created_at": "2026-08-28T14:44:35.000000Z",
            "updated_at": "2026-08-28T14:44:35.000000Z"
        }
    ],
    "roles": [
        {
            "id": 3,
            "name": "ClinicAdmin"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to resend invitations",
    "code": "INVITATIONS_ACADLE:RESEND:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User not found):


{
    "message": "User not found",
    "code": "INVITATIONS_ACADLE:RESEND:USER_NOT_FOUND"
}
 

Example response (403, Invitation already accepted):


{
    "message": "Invitation already accepted",
    "code": "INVITATIONS_ACADLE:RESEND:INVITATION_ALREADY_ACCEPTED"
}
 

Request   

POST api/invite/acadle/{userId}/resend

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Admin access to invitation tokens

requires authentication

Requires admin.invitations_tokens_access permission.
Fetches only non-accepted and non-expired invitations.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/invite/tokens/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/invite/tokens/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


[
    {
        "id": 1,
        "user_id": 1,
        "invited_user_id": 2,
        "token": "I0V25NUVMHC0F8RRF1YEY5BT",
        "training_confirmed": 1,
        "created_at": "2025-05-12T12:00:00.000000Z",
        "updated_at": "2025-05-12T12:00:00.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to get invitation tokens",
    "code": "INVITATIONS:ADMIN_TOKENS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "INVITATIONS:ADMIN_TOKENS:USER_NOT_FOUND"
}
 

Request   

GET api/invite/tokens/{userId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Logs

API endpoints for managing event logs

Get events log

requires authentication

user - user account that performed the action
element - element model that has been affected by the action

Example request:
curl --request GET \
    --get "http://localhost:8000/api/logs?search=Test&ip=200.200.100.5&user=1&type=user&date_from=1642003200&date_to=1642003200&include_sessions=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "http://localhost:8000/api/logs"
);

const params = {
    "search": "Test",
    "ip": "200.200.100.5",
    "user": "1",
    "type": "user",
    "date_from": "1642003200",
    "date_to": "1642003200",
    "include_sessions": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "user_id": 282,
            "event_name": "event_factory",
            "element_type": "App\\Models\\User",
            "element_id": 281,
            "comments": "",
            "ip_address": "253.70.255.60",
            "created_at": "1973-10-11T23:18:55.000000Z",
            "updated_at": "2026-08-28T14:46:25.000000Z",
            "username": "Darien Zulauf PhD",
            "user": {
                "id": 282,
                "mrn": "AZFJTSRF1787928384",
                "name": "Darien Zulauf PhD",
                "email": "1787928384erik.lueilwitz@example.org",
                "language": "en",
                "phone": "+1-669-416-0373",
                "phone_country": "AU",
                "phone_verified_at": null,
                "address1": "6354 Francisca Rapids",
                "address2": "Nolanton, UT 73811-7684",
                "postal_code": "97820",
                "city": "Moen-Ortiz",
                "country": "CZ",
                "clinic_name": "Lake Trevion",
                "clinic_location": "180 Kunze Mill Suite 900\nLeschchester, MD 96604",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:46:24.000000Z",
                "updated_at": "2026-08-28T14:46:24.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "element": {
                "id": 281,
                "mrn": "PTX4564S1787928384",
                "name": "Maryjane Bradtke",
                "email": "1787928384thompson.juvenal@example.com",
                "language": "en",
                "phone": "+1-325-859-1260",
                "phone_country": "TM",
                "phone_verified_at": null,
                "address1": "45599 Ritchie Springs Apt. 528",
                "address2": "Russelshire, AZ 80654-1704",
                "postal_code": "57376-7676",
                "city": "Robel Inc",
                "country": "DE",
                "clinic_name": "Hartmannton",
                "clinic_location": "20804 Rippin Alley Suite 101\nNew Karen, NC 22036",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:46:24.000000Z",
                "updated_at": "2026-08-28T14:46:24.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        },
        {
            "id": 2,
            "user_id": 285,
            "event_name": "event_factory",
            "element_type": "App\\Models\\User",
            "element_id": 284,
            "comments": "",
            "ip_address": "198.22.55.48",
            "created_at": "2015-02-23T14:27:38.000000Z",
            "updated_at": "2026-08-28T14:46:26.000000Z",
            "username": "Antonia Wolff",
            "user": {
                "id": 285,
                "mrn": "SUHRU4T91787928386",
                "name": "Antonia Wolff",
                "email": "1787928386mortimer.rosenbaum@example.com",
                "language": "en",
                "phone": "425.379.0223",
                "phone_country": "BY",
                "phone_verified_at": null,
                "address1": "19411 Meagan Union Apt. 604",
                "address2": "New Larueside, NH 13467",
                "postal_code": "25915",
                "city": "Gottlieb Ltd",
                "country": "CY",
                "clinic_name": "West Shannon",
                "clinic_location": "2869 Bogan Lodge Apt. 443\nWest Amandachester, NM 44600",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:46:26.000000Z",
                "updated_at": "2026-08-28T14:46:26.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "element": {
                "id": 284,
                "mrn": "ZP8CR43J1787928385",
                "name": "Osvaldo Beahan",
                "email": "1787928385weimann.arthur@example.net",
                "language": "en",
                "phone": "1-469-253-2445",
                "phone_country": "SY",
                "phone_verified_at": null,
                "address1": "1507 Cayla Fords",
                "address2": "East Maciburgh, HI 69510-7197",
                "postal_code": "05849",
                "city": "Blanda, Hamill and Willms",
                "country": "FR",
                "clinic_name": "Hoegerhaven",
                "clinic_location": "969 Durgan Cove Apt. 500\nEulahburgh, MS 39633-5090",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:46:25.000000Z",
                "updated_at": "2026-08-28T14:46:25.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access event logs",
    "code": "EVENT_LOGS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/logs

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Filter logs by related element data:

  • for users: search by name or email
  • for devices: search by serial or bluetooth_id
  • for P2P sessions: search by amputee_uuid or clinician_uuid
Example: `Test`
ip   string  optional  

Filter logs by IP address. Example: 200.200.100.5

user   integer  optional  

Filter logs by user. Example: 1

type   string  optional  

Filter logs by event type (available: user, device, p2p_session. Example: user

date_from   integer  optional  

Filter logs from date (timestamp). Example: 1642003200

date_to   integer  optional  

Filter logs to date (timestamp). Example: 1642003200

include_sessions   integer  optional  

Login and logout events are filtered out by default. Set this parameter to 1 to include these events. Example: 1

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

sortby   string  optional  

Sort by field (available: type, username, ip_address, date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Body Parameters

date_from   string  optional  
date_to   string  optional  

Response

Response Fields

items   object   
id   integer   

Event log entry ID.

user_id   integer   

ID of the user who triggered the event.

event_name   string   

Event name.

element_type   string   

Type of the related element.

element_id   integer   

ID of the related element.

comments   string   

Additional event comments.

ip_address   string   

IP address of the request.

created_at   string   

Event timestamp.

updated_at   string   

Last update timestamp.

user   object   

User who triggered the event.

element   object   

Related element.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Messages

API endpoints for message center

Get user messages list

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/messages" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"filter\": \"all\"
}"
const url = new URL(
    "http://localhost:8000/api/messages"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filter": "all"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "user_id": null,
            "message_id": 1,
            "is_read": 0,
            "is_archived": 0,
            "is_deleted": 0,
            "message": {
                "id": 1,
                "sender_id": null,
                "title": "Ratione exercitationem sequi laborum eum.",
                "content": "Vero soluta assumenda earum nam et corrupti.",
                "created_at": "2026-08-28T14:45:26.000000Z",
                "updated_at": "2026-08-28T14:45:26.000000Z",
                "sender": null
            }
        },
        {
            "id": 2,
            "user_id": null,
            "message_id": 2,
            "is_read": 0,
            "is_archived": 0,
            "is_deleted": 0,
            "message": {
                "id": 2,
                "sender_id": null,
                "title": "Molestiae doloribus et corrupti cum doloremque necessitatibus.",
                "content": "Libero excepturi repudiandae excepturi voluptatem quis molestiae accusamus.",
                "created_at": "2026-08-28T14:45:26.000000Z",
                "updated_at": "2026-08-28T14:45:26.000000Z",
                "sender": null
            }
        }
    ]
}
 

Request   

GET api/messages

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Body Parameters

filter   string  optional  

Filter results by message status (available: archived, all). Defaults to non-archived only. Example: all

Response

Response Fields

items   object   
id   integer   

User message ID.

user_id   integer   

Recipient user ID.

message_id   integer   

Associated message ID.

is_read   boolean   

Whether the message has been read.

is_archived   boolean   

Whether the message is archived.

is_deleted   boolean   

Whether the message is deleted.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

message   object   

The message content.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Send message to multiple users

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/message" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"Reminder about your vaccination\",
    \"content\": \"Lorem ipsum dolor sit amet\",
    \"roles\": \"Clinician,Amputee\"
}"
const url = new URL(
    "http://localhost:8000/api/message"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "Reminder about your vaccination",
    "content": "Lorem ipsum dolor sit amet",
    "roles": "Clinician,Amputee"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Messages sent",
    "count": 3,
    "code": "MESSAGES:SEND:SENT"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to send messages",
    "code": "MESSAGES:SEND:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/message

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

title   string   

Message title. MINIMUM:STRING_LENGTH:3. Example: Reminder about your vaccination

content   string  optional  

Message content text. Example: Lorem ipsum dolor sit amet

roles   string  optional  

Filter recipients with given role (comma-separated). Example: Clinician,Amputee

Mark message as read

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/message/1/read" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"state\": true
}"
const url = new URL(
    "http://localhost:8000/api/message/1/read"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "state": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 3,
    "user_id": 148,
    "message_id": 3,
    "is_read": 0,
    "is_archived": 0,
    "is_deleted": 0
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to mark this message as read",
    "code": "MESSAGES:READ:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Message not found):


{
    "message": "Message not found",
    "code": "MESSAGES:READ:MESSAGE_NOT_FOUND"
}
 

Request   

POST api/message/{id}/read

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User Message ID (id from messages list; do not confuse with message_id). Example: 1

Body Parameters

state   boolean  optional  

Explicit read state. Default: 1 (true). Example: true

Response

Response Fields

id   integer   

User message ID.

user_id   integer   

Recipient user ID.

message_id   integer   

Associated message ID.

is_read   boolean   

Whether the message has been read.

is_archived   boolean   

Whether the message is archived.

is_deleted   boolean   

Whether the message is deleted.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

message   object   

The message content.

Mark message as archived

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/message/1/archive" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"state\": true
}"
const url = new URL(
    "http://localhost:8000/api/message/1/archive"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "state": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 4,
    "user_id": 149,
    "message_id": 4,
    "is_read": 0,
    "is_archived": 0,
    "is_deleted": 0
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to mark this message as archived",
    "code": "MESSAGES:ARCHIVE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Message not found):


{
    "message": "Message not found",
    "code": "MESSAGES:ARCHIVE:MESSAGE_NOT_FOUND"
}
 

Request   

POST api/message/{id}/archive

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User Message ID (id from messages list; do not confuse with message_id). Example: 1

Body Parameters

state   boolean  optional  

Explicit archived state. Default: 1 (true). Example: true

Response

Response Fields

id   integer   

User message ID.

user_id   integer   

Recipient user ID.

message_id   integer   

Associated message ID.

is_read   boolean   

Whether the message has been read.

is_archived   boolean   

Whether the message is archived.

is_deleted   boolean   

Whether the message is deleted.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

message   object   

The message content.

List of messages and tickets

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/messages-and-tickets" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/messages-and-tickets"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 2
    },
    "items": [
        {
            "type": "UserMessage",
            "date": "2024-11-02T10:00:00.000000Z",
            "item": {
                "id": 1,
                "user_id": 1,
                "message_id": 1,
                "is_read": 0,
                "is_archived": 0,
                "is_deleted": 0,
                "message": {
                    "id": 1,
                    "sender_id": 1,
                    "title": "Message title",
                    "content": "Message content",
                    "created_at": "2024-11-02T10:00:00.000000Z",
                    "updated_at": "2024-11-02T10:00:00.000000Z",
                    "sender": {
                        "id": 1,
                        "mrn": "MRN",
                        "name": "User name",
                        "email": "user@domain.com",
                        "language": "en",
                        "phone": "",
                        "phone_verified_at": null,
                        "address1": "",
                        "address2": "",
                        "postal_code": "",
                        "city": "",
                        "clinic_name": "Test Company",
                        "clinic_location": "Test Company Location",
                        "image": null,
                        "mfa_enabled": 0,
                        "mfa_method": "email",
                        "mfa_verified_to": null,
                        "created_by": null,
                        "active": 1,
                        "notifications_timezone": "Europe/Warsaw",
                        "notifications_at": "08:00:00",
                        "created_at": "2024-09-01T15:00:00.000000Z",
                        "updated_at": "2024-10-10T10:30:00.000000Z",
                        "invitation_status": "accepted",
                        "roles": [
                            {
                                "id": 3,
                                "name": "Clinician",
                                "guard_name": "web",
                                "created_at": "2024-01-01T12:00:00.000000Z",
                                "updated_at": "2024-01-01T12:00:00.000000Z",
                                "pivot": {
                                    "model_id": 1,
                                    "role_id": 3,
                                    "model_type": "App\\Models\\User"
                                }
                            }
                        ]
                    }
                }
            }
        },
        {
            "type": "SupportTicket",
            "date": "2024-11-01T15:15:00.000000Z",
            "item": {
                "id": 1,
                "sender_id": 1,
                "recipient_id": 999,
                "device_id": null,
                "meeting_date": "2024-11-10T15:00:00.000000Z",
                "meeting_type": "none",
                "contact_email": null,
                "status": "new",
                "created_at": "2024-11-01T15:15:00.000000Z",
                "updated_at": "2024-11-01T15:15:00.000000Z",
                "sender": {
                    "id": 1,
                    "mrn": "MRN",
                    "name": "User name",
                    "email": "user@domain.com",
                    "language": "en",
                    "phone": "",
                    "phone_verified_at": null,
                    "address1": "",
                    "address2": "",
                    "postal_code": "",
                    "city": "",
                    "clinic_name": "Test Company",
                    "clinic_location": "Test Company Location",
                    "image": null,
                    "mfa_enabled": 0,
                    "mfa_method": "email",
                    "mfa_verified_to": null,
                    "created_by": null,
                    "active": 1,
                    "notifications_timezone": "Europe/Warsaw",
                    "notifications_at": "08:00:00",
                    "created_at": "2024-09-01T15:00:00.000000Z",
                    "updated_at": "2024-10-10T10:30:00.000000Z",
                    "invitation_status": "accepted",
                    "roles": [
                        {
                            "id": 3,
                            "name": "Clinician",
                            "guard_name": "web",
                            "created_at": "2024-01-01T12:00:00.000000Z",
                            "updated_at": "2024-01-01T12:00:00.000000Z",
                            "pivot": {
                                "model_id": 1,
                                "role_id": 3,
                                "model_type": "App\\Models\\User"
                            }
                        }
                    ]
                },
                "recipient": {
                    "id": 2,
                    "mrn": "MRN2",
                    "name": "Patient",
                    "email": "patient4@domain.com",
                    "language": "en",
                    "phone": "",
                    "phone_verified_at": null,
                    "address1": "",
                    "address2": "",
                    "postal_code": "",
                    "city": "",
                    "clinic_name": null,
                    "clinic_location": null,
                    "image": null,
                    "mfa_enabled": 0,
                    "mfa_method": null,
                    "mfa_verified_to": null,
                    "created_by": 1,
                    "active": 1,
                    "notifications_timezone": null,
                    "notifications_at": null,
                    "created_at": "2024-10-01T15:00:00.000000Z",
                    "updated_at": "2024-10-10T10:30:00.000000Z",
                    "invitation_status": null,
                    "roles": [
                        {
                            "id": 5,
                            "name": "Amputee",
                            "guard_name": "web",
                            "created_at": "2024-01-01T12:00:00.000000Z",
                            "updated_at": "2024-01-01T12:00:00.000000Z",
                            "pivot": {
                                "model_id": 2,
                                "role_id": 5,
                                "model_type": "App\\Models\\User"
                            }
                        }
                    ]
                },
                "device": null,
                "messages": [
                    {
                        "id": 1,
                        "ticket_id": 1,
                        "sender_id": 1,
                        "title": "Communication channel",
                        "content": "Welcome to the digital platform. Please use this channel for communicating with your clinician.",
                        "is_read": false,
                        "created_at": "2024-11-01T15:15:00.000000Z",
                        "updated_at": "2024-11-01T15:15:00.000000Z",
                        "attachments": [],
                        "sender": {
                            "id": 1,
                            "mrn": "MRN",
                            "name": "User name",
                            "email": "user@domain.com",
                            "language": "en",
                            "phone": "",
                            "phone_verified_at": null,
                            "address1": "",
                            "address2": "",
                            "postal_code": "",
                            "city": "",
                            "clinic_name": "Test Company",
                            "clinic_location": "Test Company Location",
                            "image": null,
                            "mfa_enabled": 0,
                            "mfa_method": "email",
                            "mfa_verified_to": null,
                            "created_by": null,
                            "active": 1,
                            "notifications_timezone": "Europe/Warsaw",
                            "notifications_at": "08:00:00",
                            "created_at": "2024-09-01T15:00:00.000000Z",
                            "updated_at": "2024-10-10T10:30:00.000000Z",
                            "invitation_status": "accepted",
                            "roles": [
                                {
                                    "id": 3,
                                    "name": "Clinician",
                                    "guard_name": "web",
                                    "created_at": "2024-01-01T12:00:00.000000Z",
                                    "updated_at": "2024-01-01T12:00:00.000000Z",
                                    "pivot": {
                                        "model_id": 1,
                                        "role_id": 3,
                                        "model_type": "App\\Models\\User"
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}
 

Request   

GET api/messages-and-tickets

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Status of messages and tickets

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/messages-and-tickets/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/messages-and-tickets/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "messages": 5,
    "tickets": 2
}
 

Request   

GET api/messages-and-tickets/status

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Mobile logs

API endpoints for managing mobile logs

Store log

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/mobile-logs" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "device_id=1"\
    --form "date_start=1989-06-26 12:24:35"\
    --form "date_end=1995-05-10 17:33:54"\
    --form "encrypt_key=aspernatur"\
    --form "encrypt_iv=excepturi"\
    --form "file=@/tmp/php4H1vFv" 
const url = new URL(
    "http://localhost:8000/api/mobile-logs"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('device_id', '1');
body.append('date_start', '1989-06-26 12:24:35');
body.append('date_end', '1995-05-10 17:33:54');
body.append('encrypt_key', 'aspernatur');
body.append('encrypt_iv', 'excepturi');
body.append('file', document.querySelector('input[name="file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (202):


{
    "id": 1,
    "user_id": 286,
    "device_id": 144,
    "file": "/tmp/fakervKSBZu",
    "date_start": "1978-05-24 17:45:49",
    "date_end": "1991-12-14 17:59:16",
    "created_at": "2026-08-28T14:46:26.000000Z",
    "updated_at": "2026-08-28T14:46:26.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to write mobile logs",
    "code": "MOBILE_LOGS:STORE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/mobile-logs

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

device_id   string  optional  

Device ID. The id of an existing record in the App\Models\Device table. Example: 1

file   file   

Log file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/php4H1vFv

date_start   string   

Log start date. MUST_BE_DATE Must be a valid date in the format Y-m-d H:i:s. Example: 1989-06-26 12:24:35

date_end   string   

Log end date. MUST_BE_DATE Must be a valid date in the format Y-m-d H:i:s. MUST_BE_AFTER:date_start. Example: 1995-05-10 17:33:54

encrypt_key   string   

Encryption key. Example: aspernatur

encrypt_iv   string   

Encryption IV (Initialization Vector). Example: excepturi

Response

Response Fields

id   integer   

Mobile log ID.

user_id   integer   

Associated user ID.

device_id   integer   

Associated device ID.

file   string   

Log file URL.

date_start   string   

Log start date.

date_end   string   

Log end date.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Get logs

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/mobile-logs" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/mobile-logs"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 2,
            "user_id": 287,
            "device_id": 145,
            "file": "/tmp/fakerykOyG2",
            "date_start": "2023-04-02 03:39:22",
            "date_end": "1991-02-08 08:19:25",
            "created_at": "2026-08-28T14:46:27.000000Z",
            "updated_at": "2026-08-28T14:46:27.000000Z"
        },
        {
            "id": 3,
            "user_id": 288,
            "device_id": 146,
            "file": "/tmp/fakerp0GTAR",
            "date_start": "1991-08-15 01:35:01",
            "date_end": "1984-09-15 19:38:10",
            "created_at": "2026-08-28T14:46:27.000000Z",
            "updated_at": "2026-08-28T14:46:27.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view mobile logs",
    "code": "MOBILE_LOGS:GET:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/mobile-logs

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: device).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Mobile log ID.

user_id   integer   

Associated user ID.

device_id   integer   

Associated device ID.

file   string   

Log file URL.

date_start   string   

Log start date.

date_end   string   

Log end date.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get logs by user

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/mobile-logs/user/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/mobile-logs/user/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 4,
            "user_id": 289,
            "device_id": 147,
            "file": "/tmp/fakerMtvnc3",
            "date_start": "2001-06-11 10:41:49",
            "date_end": "2010-05-14 08:13:10",
            "created_at": "2026-08-28T14:46:28.000000Z",
            "updated_at": "2026-08-28T14:46:28.000000Z"
        },
        {
            "id": 5,
            "user_id": 290,
            "device_id": 148,
            "file": "/tmp/fakerz85OMW",
            "date_start": "2003-11-25 08:29:06",
            "date_end": "2021-05-12 04:42:13",
            "created_at": "2026-08-28T14:46:28.000000Z",
            "updated_at": "2026-08-28T14:46:28.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view mobile logs",
    "code": "MOBILE_LOGS:GET_BY_USER:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/mobile-logs/user/{userId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: device).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Mobile log ID.

user_id   integer   

Associated user ID.

device_id   integer   

Associated device ID.

file   string   

Log file URL.

date_start   string   

Log start date.

date_end   string   

Log end date.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get logs by device

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/mobile-logs/device/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/mobile-logs/device/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 6,
            "user_id": 291,
            "device_id": 149,
            "file": "/tmp/faker4wmb8T",
            "date_start": "1998-04-27 01:29:34",
            "date_end": "1972-10-13 14:01:42",
            "created_at": "2026-08-28T14:46:29.000000Z",
            "updated_at": "2026-08-28T14:46:29.000000Z"
        },
        {
            "id": 7,
            "user_id": 292,
            "device_id": 150,
            "file": "/tmp/fakerWazwLY",
            "date_start": "1990-04-19 15:29:39",
            "date_end": "2010-01-30 02:05:02",
            "created_at": "2026-08-28T14:46:29.000000Z",
            "updated_at": "2026-08-28T14:46:29.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view mobile logs",
    "code": "MOBILE_LOGS:GET_BY_DEVICE:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/mobile-logs/device/{deviceId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Mobile log ID.

user_id   integer   

Associated user ID.

device_id   integer   

Associated device ID.

file   string   

Log file URL.

date_start   string   

Log start date.

date_end   string   

Log end date.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Old Configurator Statistics

Endpoints for old configurator statistics

Create old configurator statistic

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/old-configurator-statistics" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"entry_id\": \"qui\",
    \"comments\": \"sint\"
}"
const url = new URL(
    "http://localhost:8000/api/old-configurator-statistics"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "entry_id": "qui",
    "comments": "sint"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 1,
    "entry_id": "3982aeaa-f67d-35ba-83d0-d3f74cce4c11",
    "comments": "{\"key\":\"dolore\",\"value\":502}",
    "created_at": "2026-08-28T14:44:22.000000Z",
    "updated_at": "2026-08-28T14:44:22.000000Z"
}
 

Request   

POST api/old-configurator-statistics

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

entry_id   string   

Example: qui

comments   string  optional  

Example: sint

List old configurator statistics

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/old-configurator-statistics" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/old-configurator-statistics"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 2,
            "entry_id": "f89d98d6-375b-38d1-a34e-f7c0257d91df",
            "comments": "{\"key\":\"nostrum\",\"value\":9}",
            "created_at": "2026-08-28T14:46:48.000000Z",
            "updated_at": "2026-08-28T14:46:48.000000Z"
        },
        {
            "id": 3,
            "entry_id": "c9e6f5c9-c764-387a-bae6-69e2b057b2b4",
            "comments": "{\"key\":\"aut\",\"value\":96945}",
            "created_at": "2026-08-28T14:46:48.000000Z",
            "updated_at": "2026-08-28T14:46:48.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view old configurator statistics",
    "code": "OLD_CONFIGURATOR_STATISTIC:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/old-configurator-statistics

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

P2P Sessions

API endpoints for managing P2P (peer-to-peer) sessions

Get active session data

requires authentication

Returns P2P sessions with status "waiting_for_decision" or "in_progress".

Example request:
curl --request GET \
    --get "http://localhost:8000/api/p2p/user/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/p2p/user/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "amputee_id": null,
    "device_id": null,
    "clinician_id": null,
    "amputee_uuid": "3932dd0a-6f5d-38cc-aeb0-6e642396e1fc",
    "clinician_uuid": "2caaa7e5-7b68-32fe-babe-57b740da4221",
    "token": "3F2EVRSPDNSF8BTEPKEQWDZ63LCD7GQESWVNXEG6HNG9ZQV9J5A5NZYTBGSX4RDQ",
    "status": "waiting_for_decision",
    "created_at": "2026-08-28T14:45:15.000000Z",
    "updated_at": "2026-08-28T14:45:15.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view active P2P session",
    "code": "P2P_SESSIONS:GET_ACTIVE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Session not found):


{
    "message": "P2P session not found",
    "code": "P2P_SESSIONS:GET_ACTIVE:SESSION_NOT_FOUND"
}
 

Request   

GET api/p2p/user/{userId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Response

Response Fields

id   integer   

P2P session ID.

device_id   integer   

Associated device ID.

amputee_id   integer   

Patient (amputee) user ID.

clinician_id   integer   

Clinician user ID.

amputee_uuid   string   

Amputee WebRTC UUID.

clinician_uuid   string   

Clinician WebRTC UUID.

token   string   

Session token.

status   string   

Session status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

amputee   object   

Patient user.

clinician   object   

Clinician user.

Get session data

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/p2p/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/p2p/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 2,
    "amputee_id": null,
    "device_id": null,
    "clinician_id": null,
    "amputee_uuid": "055cf4fe-b26f-31fa-90df-a81eac26ec47",
    "clinician_uuid": "068eade7-d234-319e-bf3e-9f9a4b0f74c4",
    "token": "FQZZBWUAG7EQYS7LBMSBZ4MPHCQ3FDP4WYJJTXKMHTU4498AXQXPJJE9K5MX58XC",
    "status": "waiting_for_decision",
    "created_at": "2026-08-28T14:45:15.000000Z",
    "updated_at": "2026-08-28T14:45:15.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view P2P session",
    "code": "P2P_SESSIONS:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Session not found):


{
    "message": "P2P session not found",
    "code": "P2P_SESSIONS:GET:SESSION_NOT_FOUND"
}
 

Request   

GET api/p2p/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

P2P session ID. Example: 1

Response

Response Fields

id   integer   

P2P session ID.

device_id   integer   

Associated device ID.

amputee_id   integer   

Patient (amputee) user ID.

clinician_id   integer   

Clinician user ID.

amputee_uuid   string   

Amputee WebRTC UUID.

clinician_uuid   string   

Clinician WebRTC UUID.

token   string   

Session token.

status   string   

Session status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

amputee   object   

Patient user.

clinician   object   

Clinician user.

Create new P2P session

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/p2p/create" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amputee_id\": 2,
    \"device_id\": 5,
    \"amputee_uuid\": \"3db02e1d-7e48-33e7-8428-0449acdbbc6c\",
    \"clinician_uuid\": \"ebd7f95b-ebfa-3ef3-9208-cc7a8f116d14\"
}"
const url = new URL(
    "http://localhost:8000/api/p2p/create"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "amputee_id": 2,
    "device_id": 5,
    "amputee_uuid": "3db02e1d-7e48-33e7-8428-0449acdbbc6c",
    "clinician_uuid": "ebd7f95b-ebfa-3ef3-9208-cc7a8f116d14"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "amputee_id": 123,
    "device_id": null,
    "clinician_id": 124,
    "amputee_uuid": "387c4a94-acd6-3fa9-a569-66560df75338",
    "clinician_uuid": "104ebec1-aafc-3c6d-be6a-027232d696e3",
    "token": "TGDCUKWQM38Q87FJUMFVKBUG6ANCEQSB2UW3QNE6VHNUVUA7NC49EG6S8TYPNUUU",
    "status": "waiting_for_decision",
    "created_at": "2026-08-28T14:45:16.000000Z",
    "updated_at": "2026-08-28T14:45:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create P2P session",
    "code": "P2P_SESSIONS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Device not assigned to patient):


{
    "message": "Device is not assigned to the patient",
    "code": "P2P_SESSIONS:CREATE:DEVICE_NOT_ASSIGNED"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "P2P_SESSIONS:CREATE:USER_NOT_FOUND"
}
 

Request   

POST api/p2p/create

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

amputee_id   string   

Amputee ID. The id of an existing record in the App\Models\User table. Example: 2

device_id   string   

Device ID. The id of an existing record in the App\Models\Device table. Example: 5

amputee_uuid   string   

Amputee's UUID generated by integration platform. Example: 3db02e1d-7e48-33e7-8428-0449acdbbc6c

clinician_uuid   string   

Clinician's UUID generated by integration platform. Example: ebd7f95b-ebfa-3ef3-9208-cc7a8f116d14

Response

Response Fields

id   integer   

P2P session ID.

device_id   integer   

Associated device ID.

amputee_id   integer   

Patient (amputee) user ID.

clinician_id   integer   

Clinician user ID.

amputee_uuid   string   

Amputee WebRTC UUID.

clinician_uuid   string   

Clinician WebRTC UUID.

token   string   

Session token.

status   string   

Session status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

amputee   object   

Patient user.

clinician   object   

Clinician user.

Update P2P session

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/p2p/1/update" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"closed\"
}"
const url = new URL(
    "http://localhost:8000/api/p2p/1/update"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "closed"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 4,
    "amputee_id": null,
    "device_id": null,
    "clinician_id": null,
    "amputee_uuid": "3832d684-e046-334d-b10c-a48b4eb02c03",
    "clinician_uuid": "44fa73a3-6af2-3629-9214-010015afb181",
    "token": "XJBFP9QWWCZTBY22CRK9QA6TPLDQPGY3YHBYLK9W5GQB6WCTAAZ8LAJNPJBK3RHL",
    "status": "waiting_for_decision",
    "created_at": "2026-08-28T14:45:16.000000Z",
    "updated_at": "2026-08-28T14:45:16.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update P2P session",
    "code": "P2P_SESSIONS:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Session not found):


{
    "message": "P2P session not found",
    "code": "P2P_SESSIONS:UPDATE:SESSION_NOT_FOUND"
}
 

Request   

POST api/p2p/{id}/update

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

P2P session ID. Example: 1

Body Parameters

status   string   

Session status. Example: closed

Must be one of:
  • waiting_for_decision
  • in_progress
  • closed

Response

Response Fields

id   integer   

P2P session ID.

device_id   integer   

Associated device ID.

amputee_id   integer   

Patient (amputee) user ID.

clinician_id   integer   

Clinician user ID.

amputee_uuid   string   

Amputee WebRTC UUID.

clinician_uuid   string   

Clinician WebRTC UUID.

token   string   

Session token.

status   string   

Session status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

amputee   object   

Patient user.

clinician   object   

Clinician user.

Product features and toggles

API endpoints for product features and toggles management

Definitions:

List product features

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/product/features" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/product/features"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "name": "black",
        "slug": "neque-nisi-ratione-consectetur-dignissimos-perspiciatis",
        "created_at": "2026-08-28T14:46:11.000000Z",
        "updated_at": "2026-08-28T14:46:11.000000Z"
    },
    {
        "id": 2,
        "name": "black",
        "slug": "est-atque-aperiam-harum-rerum-ullam-necessitatibus",
        "created_at": "2026-08-28T14:46:11.000000Z",
        "updated_at": "2026-08-28T14:46:11.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view product features and toggles",
    "code": "PRODUCT_FEATURES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/product/features

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

id   integer   

Product feature ID.

name   string   

Feature name.

slug   string   

Feature slug (unique identifier).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Create product feature

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/product/features" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Remote config\",
    \"slug\": \"remote_config\"
}"
const url = new URL(
    "http://localhost:8000/api/product/features"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Remote config",
    "slug": "remote_config"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "name": "teal",
    "slug": "quibusdam-et-ad-est-iste",
    "created_at": "2026-08-28T14:46:11.000000Z",
    "updated_at": "2026-08-28T14:46:11.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "PRODUCT_FEATURES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/product/features

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Name of product feature. Example: Remote config

slug   string   

Simplified name of product feature without spaces (e.g. remote_config for Remote config name). Example: remote_config

Response

Response Fields

id   integer   

Product feature ID.

name   string   

Feature name.

slug   string   

Feature slug (unique identifier).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update product feature

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/product/features/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Remote config\",
    \"slug\": \"remote_config\"
}"
const url = new URL(
    "http://localhost:8000/api/product/features/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Remote config",
    "slug": "remote_config"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "name": "green",
    "slug": "commodi-quaerat-rerum-est-praesentium",
    "created_at": "2026-08-28T14:46:11.000000Z",
    "updated_at": "2026-08-28T14:46:11.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "PRODUCT_FEATURES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Product feature not found):


{
    "message": "Product feature not found",
    "code": "PRODUCT_FEATURES:UPDATE:FEATURE_NOT_FOUND"
}
 

Request   

PUT api/product/features/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Product Feature ID. Example: 1

Body Parameters

name   string  optional  

Name of product feature. Example: Remote config

slug   string  optional  

Simplified name of product feature without spaces (e.g. remote_config for Remote config name). Example: remote_config

Response

Response Fields

id   integer   

Product feature ID.

name   string   

Feature name.

slug   string   

Feature slug (unique identifier).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete product feature

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/product/features/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/product/features/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Product feature deleted",
    "code": "PRODUCT_FEATURES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "PRODUCT_FEATURES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Product feature belongs to compatibility entries):


{
    "message": "Cannot delete: product feature belongs to existing compatibility entries (1)",
    "code": "PRODUCT_FEATURES:DELETE:HAS_COMPATIBILITY_ENTRIES"
}
 

Example response (404, Product feature not found):


{
    "message": "Product feature not found",
    "code": "PRODUCT_FEATURES:DELETE:FEATURE_NOT_FOUND"
}
 

Request   

DELETE api/product/features/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Product Feature ID. Example: 1

List product toggles

requires authentication

This endpoint returns list of global toggles. For some users there could exist user toggle which overrides these settings.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/product/toggles?global=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/product/toggles"
);

const params = {
    "global": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "name": "silver",
        "slug": "rem-delectus-magni-impedit",
        "enabled": 0,
        "created_at": "2026-08-28T14:46:11.000000Z",
        "updated_at": "2026-08-28T14:46:11.000000Z"
    },
    {
        "id": 2,
        "name": "silver",
        "slug": "odio-qui-quia-deserunt-sunt-sit-rem",
        "enabled": 0,
        "created_at": "2026-08-28T14:46:11.000000Z",
        "updated_at": "2026-08-28T14:46:11.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view product features and toggles",
    "code": "PRODUCT_TOGGLES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/product/toggles

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

global   integer  optional  

Pass value 1 to fetch list of global toggles without user overrides Example: 1

Response

Response Fields

id   integer   

Product toggle ID.

name   string   

Toggle name.

slug   string   

Toggle slug (unique identifier).

enabled   boolean   

Whether the toggle is enabled globally.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Create product toggle

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/product/toggles" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Remote config\",
    \"slug\": \"remote_config\",
    \"enabled\": true
}"
const url = new URL(
    "http://localhost:8000/api/product/toggles"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Remote config",
    "slug": "remote_config",
    "enabled": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "name": "purple",
    "slug": "ad-velit-et-aut-quod-nisi",
    "enabled": 1,
    "created_at": "2026-08-28T14:46:11.000000Z",
    "updated_at": "2026-08-28T14:46:11.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "PRODUCT_TOGGLES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/product/toggles

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Name of product toggle. Example: Remote config

slug   string   

Simplified name of product toggle without spaces (e.g. remote_config for Remote config name). Example: remote_config

enabled   boolean   

Is toggle enabled on this environment?. Example: true

Response

Response Fields

id   integer   

Product toggle ID.

name   string   

Toggle name.

slug   string   

Toggle slug (unique identifier).

enabled   boolean   

Whether the toggle is enabled globally.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update product toggle

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/product/toggles/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Remote config\",
    \"slug\": \"remote_config\",
    \"enabled\": true
}"
const url = new URL(
    "http://localhost:8000/api/product/toggles/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Remote config",
    "slug": "remote_config",
    "enabled": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "name": "green",
    "slug": "quia-enim-dolore-neque-explicabo-quia-accusantium-dolorum",
    "enabled": 0,
    "created_at": "2026-08-28T14:46:11.000000Z",
    "updated_at": "2026-08-28T14:46:11.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "PRODUCT_TOGGLES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Product toggle not found):


{
    "message": "Product toggle not found",
    "code": "PRODUCT_TOGGLES:UPDATE:TOGGLE_NOT_FOUND"
}
 

Request   

PUT api/product/toggles/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Product Toggle ID. Example: 1

Body Parameters

name   string  optional  

Name of product toggle. Example: Remote config

slug   string  optional  

Simplified name of product toggle without spaces (e.g. remote_config for Remote config name). Example: remote_config

enabled   boolean  optional  

Is toggle enabled on this environment?. Example: true

Response

Response Fields

id   integer   

Product toggle ID.

name   string   

Toggle name.

slug   string   

Toggle slug (unique identifier).

enabled   boolean   

Whether the toggle is enabled globally.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete product toggle

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/product/toggles/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/product/toggles/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Product toggle deleted",
    "code": "PRODUCT_TOGGLES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "PRODUCT_TOGGLES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Product toggle not found):


{
    "message": "Product toggle not found",
    "code": "PRODUCT_TOGGLES:DELETE:TOGGLE_NOT_FOUND"
}
 

Request   

DELETE api/product/toggles/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Product Toggle ID. Example: 1

List product FAQ

requires authentication

This endpoint returns list of product FAQ.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/product/faq" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/product/faq"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "question": "Recusandae quae ut impedit consequatur. Mollitia iure iusto tempore. Officia accusamus incidunt eius. Dolorum quasi similique quo qui et.",
            "answer": "Commodi ullam commodi nemo enim molestiae molestias ab. Ut et iusto accusantium aliquid debitis. Qui alias dolorem exercitationem.",
            "created_at": "2026-08-28T14:46:11.000000Z",
            "updated_at": "2026-08-28T14:46:11.000000Z"
        },
        {
            "id": 2,
            "question": "Est officia repudiandae natus. Molestiae deserunt minus rem exercitationem.",
            "answer": "Expedita delectus et commodi. Quasi officiis tempora sint. Ut in corrupti ex porro et nisi quas. Culpa est hic aliquid iste.",
            "created_at": "2026-08-28T14:46:11.000000Z",
            "updated_at": "2026-08-28T14:46:11.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view product features and toggles",
    "code": "FAQ:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/product/faq

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

FAQ entry ID.

question   string   

FAQ question.

answer   string   

FAQ answer.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

List user toggles

requires authentication

This endpoint returns list of user toggles with their global toggles.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/user/1/toggles" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/toggles"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "toggle_id": 6,
        "user_id": 256,
        "enabled": 1,
        "created_at": "2026-08-28T14:46:11.000000Z",
        "updated_at": "2026-08-28T14:46:11.000000Z",
        "toggle": {
            "id": 6,
            "name": "olive",
            "slug": "impedit-maxime-eveniet-voluptas-et-animi-velit-aut-at",
            "enabled": 0,
            "created_at": "2026-08-28T14:46:11.000000Z",
            "updated_at": "2026-08-28T14:46:11.000000Z"
        }
    },
    {
        "id": 2,
        "toggle_id": 8,
        "user_id": 257,
        "enabled": 0,
        "created_at": "2026-08-28T14:46:12.000000Z",
        "updated_at": "2026-08-28T14:46:12.000000Z",
        "toggle": {
            "id": 8,
            "name": "aqua",
            "slug": "sed-consequuntur-nihil-ipsum",
            "enabled": 0,
            "created_at": "2026-08-28T14:46:12.000000Z",
            "updated_at": "2026-08-28T14:46:12.000000Z"
        }
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view product features and toggles",
    "code": "USER_TOGGLES:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USER_TOGGLES:LIST:USER_NOT_FOUND"
}
 

Request   

GET api/user/{userId}/toggles

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Response

Response Fields

id   integer   

User product toggle ID.

toggle_id   integer   

Associated product toggle ID.

user_id   integer   

Associated user ID.

enabled   boolean   

Whether the toggle is enabled for this user.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

toggle   object   

Associated product toggle.

Create user toggle

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/user/1/toggles" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"toggle_id\": 1,
    \"enabled\": true
}"
const url = new URL(
    "http://localhost:8000/api/user/1/toggles"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "toggle_id": 1,
    "enabled": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "toggle_id": 9,
    "user_id": 258,
    "enabled": 1,
    "created_at": "2026-08-28T14:46:12.000000Z",
    "updated_at": "2026-08-28T14:46:12.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "USER_TOGGLES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Cannot create user toggles for SuperAdmin):


{
    "message": "Cannot create user toggles for SuperAdmin",
    "code": "USER_TOGGLES:CREATE:CANNOT_CREATE_FOR_SUPER_ADMIN"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USER_TOGGLES:CREATE:USER_NOT_FOUND"
}
 

Request   

POST api/user/{userId}/toggles

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

Body Parameters

toggle_id   integer   

Product toggle ID. The id of an existing record in the App\Models\ProductToggle table. Example: 1

enabled   boolean   

Is user toggle enabled on this environment?. Example: true

Response

Response Fields

id   integer   

User product toggle ID.

toggle_id   integer   

Associated product toggle ID.

user_id   integer   

Associated user ID.

enabled   boolean   

Whether the toggle is enabled for this user.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

toggle   object   

Associated product toggle.

Update user toggle

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/user/1/toggles/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"enabled\": true
}"
const url = new URL(
    "http://localhost:8000/api/user/1/toggles/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "enabled": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "toggle_id": 10,
    "user_id": 259,
    "enabled": 1,
    "created_at": "2026-08-28T14:46:13.000000Z",
    "updated_at": "2026-08-28T14:46:13.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "USER_TOGGLES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USER_TOGGLES:UPDATE:USER_NOT_FOUND"
}
 

Example response (404, User toggle not found):


{
    "message": "User toggle not found",
    "code": "USER_TOGGLES:UPDATE:TOGGLE_NOT_FOUND"
}
 

Request   

PUT api/user/{userId}/toggles/{toggleId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

toggleId   integer   

User Toggle ID. Example: 1

Body Parameters

enabled   boolean  optional  

Is user toggle enabled on this environment?. Example: true

Response

Response Fields

id   integer   

User product toggle ID.

toggle_id   integer   

Associated product toggle ID.

user_id   integer   

Associated user ID.

enabled   boolean   

Whether the toggle is enabled for this user.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

toggle   object   

Associated product toggle.

Delete user toggle

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/user/1/toggles/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/toggles/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "User toggle deleted",
    "code": "USER_TOGGLES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage product features and toggles",
    "code": "USER_TOGGLES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USER_TOGGLES:DELETE:USER_NOT_FOUND"
}
 

Example response (404, User toggle not found):


{
    "message": "User toggle not found",
    "code": "USER_TOGGLES:DELETE:TOGGLE_NOT_FOUND"
}
 

Request   

DELETE api/user/{userId}/toggles/{toggleId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 1

toggleId   integer   

User Toggle ID. Example: 1

Release notes

Endpoints related to release notes

List release notes

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/release-notes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"quos\"
}"
const url = new URL(
    "http://localhost:8000/api/release-notes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "quos"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "title": "Accusantium explicabo minima aut.",
            "body": "<p>Magnam eum et aut ut suscipit. Laboriosam incidunt provident atque sunt alias. Odit quasi sint et maiores expedita. Autem assumenda autem sunt impedit. Architecto sed repellendus quia inventore sint.</p>",
            "video": null,
            "status": "draft",
            "translation_status": "STARTED",
            "activated_at": null,
            "archived_at": null,
            "created_by": null,
            "created_at": "2026-08-28T14:46:47.000000Z",
            "updated_at": "2026-08-28T14:46:47.000000Z"
        },
        {
            "id": 2,
            "title": "Ab expedita optio molestiae.",
            "body": "<p>Odio expedita nulla quas. Excepturi et voluptates animi officia iure. Omnis voluptates quos illo sequi nam vel nihil.</p>",
            "video": null,
            "status": "draft",
            "translation_status": "STARTED",
            "activated_at": null,
            "archived_at": null,
            "created_by": null,
            "created_at": "2026-08-28T14:46:47.000000Z",
            "updated_at": "2026-08-28T14:46:47.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view release notes",
    "code": "RELEASE_NOTES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/release-notes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Body Parameters

status   string  optional  

Example: quos

Create release note

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/release-notes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "title=New grip control available"\
    --form "body=<p>We just shipped a new grip control.</p>"\
    --form "video=@/tmp/phpAk7CSX" 
const url = new URL(
    "http://localhost:8000/api/release-notes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('title', 'New grip control available');
body.append('body', '<p>We just shipped a new grip control.</p>');
body.append('video', document.querySelector('input[name="video"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "title": "Aut laboriosam exercitationem et.",
    "body": "<p>Natus minima ut consequatur vero commodi nam tenetur. Qui est adipisci esse voluptatem quis facilis. Eaque amet tempora ea.</p>",
    "video": null,
    "status": "draft",
    "translation_status": "STARTED",
    "activated_at": null,
    "archived_at": null,
    "created_by": null,
    "created_at": "2026-08-28T14:46:47.000000Z",
    "updated_at": "2026-08-28T14:46:47.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage release notes",
    "code": "RELEASE_NOTES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/release-notes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

title   string   

Release note title, authored in English. Example: New grip control available

body   string   

Release note body (rich text HTML), authored in English. Example: <p>We just shipped a new grip control.</p>

video   file  optional  

Optional video attachment (mp4, max 250MB). Must be a file. MAXIMUM:FILE_KB:256000. Example: /tmp/phpAk7CSX

Update release note

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/release-notes/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "title=New grip control available"\
    --form "body=<p>We just shipped a new grip control.</p>"\
    --form "video=@/tmp/phpuBtKik" 
const url = new URL(
    "http://localhost:8000/api/release-notes/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('title', 'New grip control available');
body.append('body', '<p>We just shipped a new grip control.</p>');
body.append('video', document.querySelector('input[name="video"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());

Example response (202):


{
    "id": 4,
    "title": "Molestiae nihil et dignissimos.",
    "body": "<p>Recusandae fugit autem nisi cupiditate quis itaque nihil. Est error pariatur nihil ad beatae nisi. Ut omnis ipsum sint quam nihil consequuntur quibusdam laboriosam.</p>",
    "video": null,
    "status": "draft",
    "translation_status": "STARTED",
    "activated_at": null,
    "archived_at": null,
    "created_by": null,
    "created_at": "2026-08-28T14:46:47.000000Z",
    "updated_at": "2026-08-28T14:46:47.000000Z"
}
 

Example response (403, Release note is not editable):


{
    "message": "Release note is not editable",
    "code": "RELEASE_NOTES:UPDATE:NOT_EDITABLE"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage release notes",
    "code": "RELEASE_NOTES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Release note not found):


{
    "message": "Release note not found",
    "code": "RELEASE_NOTES:UPDATE:NOT_FOUND"
}
 

Request   

PUT api/release-notes/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

id   integer   

Release note ID. Example: 1

Body Parameters

title   string  optional  

Release note title, authored in English. Example: New grip control available

body   string  optional  

Release note body (rich text HTML), authored in English. Example: <p>We just shipped a new grip control.</p>

video   file  optional  

Optional video attachment (mp4, max 250MB). Must be a file. MAXIMUM:FILE_KB:256000. Example: /tmp/phpuBtKik

Delete release note

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/release-notes/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/release-notes/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Release note deleted",
    "code": "RELEASE_NOTES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage release notes",
    "code": "RELEASE_NOTES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Release note not found):


{
    "message": "Release note not found",
    "code": "RELEASE_NOTES:DELETE:NOT_FOUND"
}
 

Request   

DELETE api/release-notes/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Release note ID. Example: 1

Activate release note

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/release-notes/1/activate" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/release-notes/1/activate"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 5,
    "title": "Vel sunt a autem.",
    "body": "<p>Itaque voluptatem esse iure beatae pariatur ut tempora. Ipsum omnis tempore molestias quae sed suscipit sapiente exercitationem. Voluptatem quam fuga animi eligendi praesentium.</p>",
    "video": null,
    "status": "draft",
    "translation_status": "STARTED",
    "activated_at": null,
    "archived_at": null,
    "created_by": null,
    "created_at": "2026-08-28T14:46:47.000000Z",
    "updated_at": "2026-08-28T14:46:47.000000Z"
}
 

Example response (403, Release note is already active):


{
    "message": "Release note is already active",
    "code": "RELEASE_NOTES:ACTIVATE:ALREADY_ACTIVE"
}
 

Example response (403, Translation is not ready yet):


{
    "message": "Release note translation is not ready yet",
    "code": "RELEASE_NOTES:ACTIVATE:TRANSLATION_NOT_READY"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage release notes",
    "code": "RELEASE_NOTES:ACTIVATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Release note not found):


{
    "message": "Release note not found",
    "code": "RELEASE_NOTES:ACTIVATE:NOT_FOUND"
}
 

Request   

POST api/release-notes/{id}/activate

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Release note ID. Example: 1

Archive release note

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/release-notes/1/archive" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/release-notes/1/archive"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 6,
    "title": "Est neque qui quia.",
    "body": "<p>Quae odit aut et rerum velit odit minus. Libero molestias porro odit quia. Qui quo debitis beatae. Natus similique voluptatum et non consequuntur consequatur amet.</p>",
    "video": null,
    "status": "draft",
    "translation_status": "STARTED",
    "activated_at": null,
    "archived_at": null,
    "created_by": null,
    "created_at": "2026-08-28T14:46:47.000000Z",
    "updated_at": "2026-08-28T14:46:47.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage release notes",
    "code": "RELEASE_NOTES:ARCHIVE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Release note not found):


{
    "message": "Release note not found",
    "code": "RELEASE_NOTES:ARCHIVE:NOT_FOUND"
}
 

Request   

POST api/release-notes/{id}/archive

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Release note ID. Example: 1

Get release notes status

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/release-notes/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/release-notes/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "api.responses.general.unauthenticated",
    "code": "GENERAL:UNAUTHENTICATED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view release notes",
    "code": "RELEASE_NOTES:STATUS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/release-notes/status

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Dismiss release note popup

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/release-notes/1/dismiss" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/release-notes/1/dismiss"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Release note dismissed",
    "code": "RELEASE_NOTES:DISMISS:DISMISSED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view release notes",
    "code": "RELEASE_NOTES:DISMISS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Release note not found):


{
    "message": "Release note not found",
    "code": "RELEASE_NOTES:DISMISS:NOT_FOUND"
}
 

Request   

POST api/release-notes/{id}/dismiss

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Release note ID. Example: 1

Mark release notes as seen

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/release-notes/mark-seen" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/release-notes/mark-seen"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "message": "Release notes marked as seen",
    "code": "RELEASE_NOTES:MARK_SEEN:MARKED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view release notes",
    "code": "RELEASE_NOTES:MARK_SEEN:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/release-notes/mark-seen

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Releases

API endpoints for releases management

List releases

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/releases" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/releases"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "version_type": "App\\Models\\SoftwareVersion",
            "version_id": 14,
            "description": "Expedita autem ut omnis suscipit quis provident ut. In aut voluptate iusto iure. Nisi voluptatem modi sint praesentium id neque vel.",
            "created_at": "2026-08-28T14:46:14.000000Z",
            "updated_at": "2026-08-28T14:46:14.000000Z",
            "version": {
                "id": 14,
                "name": "1.90.54",
                "created_at": "2026-08-28T14:46:14.000000Z",
                "updated_at": "2026-08-28T14:46:14.000000Z"
            }
        },
        {
            "id": 2,
            "version_type": "App\\Models\\SoftwareVersion",
            "version_id": 15,
            "description": "Similique optio occaecati accusantium dolorem corporis aperiam vero. Culpa voluptate sit ex. Sit non sunt et aperiam.",
            "created_at": "2026-08-28T14:46:14.000000Z",
            "updated_at": "2026-08-28T14:46:14.000000Z",
            "version": {
                "id": 15,
                "name": "1.10.86",
                "created_at": "2026-08-28T14:46:14.000000Z",
                "updated_at": "2026-08-28T14:46:14.000000Z"
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list releases",
    "code": "RELEASES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/releases

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

Release ID.

version_type   string   

Version model type (morph class name).

version_id   integer   

Version model ID.

description   string   

Release notes.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

version   object   

Associated version (software, firmware or PCB).

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get release

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/releases/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/releases/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 3,
    "version_type": "App\\Models\\SoftwareVersion",
    "version_id": 16,
    "description": "Et et magnam sit. Nulla sint architecto aspernatur adipisci ut qui est. Iusto voluptates temporibus voluptates repellat id nihil error. Aut sequi nulla et eius dolores.",
    "created_at": "2026-08-28T14:46:14.000000Z",
    "updated_at": "2026-08-28T14:46:14.000000Z",
    "version": {
        "id": 16,
        "name": "1.58.80",
        "created_at": "2026-08-28T14:46:14.000000Z",
        "updated_at": "2026-08-28T14:46:14.000000Z"
    }
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view release",
    "code": "RELEASES:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Release not found):


{
    "message": "Release not found",
    "code": "RELEASES:GET:RELEASE_NOT_FOUND"
}
 

Request   

GET api/releases/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Release ID. Example: 1

Response

Response Fields

id   integer   

Release ID.

version_type   string   

Version model type (morph class name).

version_id   integer   

Version model ID.

description   string   

Release notes.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

version   object   

Associated version (software, firmware or PCB).

Create release

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/releases" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"version_type\": \"SoftwareVersion\",
    \"version_id\": 1,
    \"description\": \"This version fixes minor bugs.\"
}"
const url = new URL(
    "http://localhost:8000/api/releases"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "version_type": "SoftwareVersion",
    "version_id": 1,
    "description": "This version fixes minor bugs."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "version_type": "App\\Models\\SoftwareVersion",
    "version_id": 17,
    "description": "Tempore est magnam magni perferendis. Nobis autem sapiente qui nemo repellat qui reiciendis. Error mollitia est quibusdam sunt consequatur asperiores omnis.",
    "created_at": "2026-08-28T14:46:14.000000Z",
    "updated_at": "2026-08-28T14:46:14.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create release",
    "code": "RELEASES:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/releases

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

version_type   string   

Version type. Example: SoftwareVersion

Must be one of:
  • DeviceModel
  • SoftwareVersion
  • FirmwareVersion
  • PCBVersion
version_id   integer   

Version ID. Example: 1

description   string  optional  

Release description. Example: This version fixes minor bugs.

Response

Response Fields

id   integer   

Release ID.

version_type   string   

Version model type (morph class name).

version_id   integer   

Version model ID.

description   string   

Release notes.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

version   object   

Associated version (software, firmware or PCB).

Update release

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/releases/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"version_type\": \"SoftwareVersion\",
    \"version_id\": 1,
    \"description\": \"This version fixes minor bugs.\"
}"
const url = new URL(
    "http://localhost:8000/api/releases/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "version_type": "SoftwareVersion",
    "version_id": 1,
    "description": "This version fixes minor bugs."
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 5,
    "version_type": "App\\Models\\SoftwareVersion",
    "version_id": 18,
    "description": "Et eos veniam nobis. Eum magni eos possimus aperiam fugit. Sequi molestiae nihil vel ut enim.",
    "created_at": "2026-08-28T14:46:14.000000Z",
    "updated_at": "2026-08-28T14:46:14.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update release",
    "code": "RELEASES:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Release not found):


{
    "message": "Release not found",
    "code": "RELEASES:UPDATE:RELEASE_NOT_FOUND"
}
 

Request   

PUT api/releases/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Release ID. Example: 1

Body Parameters

version_type   string  optional  

Version type. Example: SoftwareVersion

Must be one of:
  • DeviceModel
  • SoftwareVersion
  • FirmwareVersion
  • PCBVersion
version_id   integer  optional  

Version ID. Example: 1

description   string  optional  

Release description. Example: This version fixes minor bugs.

Response

Response Fields

id   integer   

Release ID.

version_type   string   

Version model type (morph class name).

version_id   integer   

Version model ID.

description   string   

Release notes.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

version   object   

Associated version (software, firmware or PCB).

Delete release

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/releases/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/releases/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Version deleted",
    "code": "RELEASES:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete release",
    "code": "RELEASES:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Release not found):


{
    "message": "Release not found",
    "code": "RELEASES:DELETE:RELEASE_NOT_FOUND"
}
 

Request   

DELETE api/releases/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Release ID. Example: 1

Search

API endpoints for search

requires authentication

Searches in:
  • users (by name and email)
  • devices (by serial number)

Returned collection contains entries of type User or Device.

If the device has a patient assigned, this patient is included in the results as an entry of type User. If the device has no patient, the device is included in the results.

Users included in the results, but not found directly have "devices" relation filled in with the devices that match the search query.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/search?query=Tom" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"query\": \"musvhxygayhssxxctpesowylwo\"
}"
const url = new URL(
    "http://localhost:8000/api/search"
);

const params = {
    "query": "Tom",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "query": "musvhxygayhssxxctpesowylwo"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "type": "User",
            "item": {
                "id": 1,
                "mrn": "MRN",
                "name": "User name",
                "email": "user@domain.com",
                "language": "en",
                "phone": "",
                "phone_verified_at": null,
                "address1": "",
                "address2": "",
                "postal_code": "",
                "city": "",
                "clinic_name": "Test Company",
                "clinic_location": "Test Company Location",
                "image": null,
                "mfa_enabled": 0,
                "mfa_method": "email",
                "mfa_verified_to": null,
                "created_by": null,
                "active": 1,
                "notifications_timezone": "Europe/Warsaw",
                "notifications_at": "08:00:00",
                "created_at": "2024-09-01T15:00:00.000000Z",
                "updated_at": "2024-10-10T10:30:00.000000Z",
                "invitation_status": "accepted",
                "pivot": {
                    "assigned_user_id": 2,
                    "user_id": 1
                },
                "devices": [],
                "roles": [
                    {
                        "id": 5,
                        "name": "Amputee",
                        "guard_name": "web",
                        "created_at": "2024-01-01T12:00:00.000000Z",
                        "updated_at": "2024-01-01T12:00:00.000000Z",
                        "pivot": {
                            "model_id": 1,
                            "role_id": 5,
                            "model_type": "App\\Models\\User"
                        }
                    }
                ]
            }
        },
        {
            "type": "Device",
            "item": {
                "id": 1,
                "serial": "SERIAL-NUMBER",
                "bluetooth_id": "BLUETOOTH_ID",
                "model_id": 1,
                "amputee_id": 1,
                "firmware_version_id": 1,
                "pcb_version_id": 1,
                "active": 1,
                "last_activity_at": "2024-11-11 12:00:00",
                "created_at": "2024-08-30T15:00:00.000000Z",
                "updated_at": "2024-09-01T16:00:00.000000Z",
                "pivot": {
                    "user_id": 2,
                    "device_id": 1
                }
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to search",
    "code": "SEARCH:SEARCH:INSUFFICIENT_PERMISSION"
}
 

Servicing

API endpoints for servicing

List of parts

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/servicing/parts" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/servicing/parts"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "device_model": null,
            "name": "Visa",
            "created_at": "2026-08-28T14:45:23.000000Z",
            "updated_at": "2026-08-28T14:45:23.000000Z"
        },
        {
            "id": 2,
            "device_model": null,
            "name": "Visa",
            "created_at": "2026-08-28T14:45:23.000000Z",
            "updated_at": "2026-08-28T14:45:23.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list service parts",
    "code": "SERVICING:LIST_PARTS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/servicing/parts

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

Service part ID.

device_model   integer   

Associated device model ID.

name   string   

Part name.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Report service repair

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/servicing/repair" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "user_id=1"\
    --form "device_id=1"\
    --form "parts[][part_id]=1"\
    --form "parts[][reason]=Mechanical issue"\
    --form "files[]=@/tmp/phpjXRZvB" 
const url = new URL(
    "http://localhost:8000/api/servicing/repair"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('user_id', '1');
body.append('device_id', '1');
body.append('parts[][part_id]', '1');
body.append('parts[][reason]', 'Mechanical issue');
body.append('files[]', document.querySelector('input[name="files[]"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "id": 1,
    "user_id": 141,
    "device_id": 121,
    "created_at": "2026-08-28T14:45:23.000000Z",
    "updated_at": "2026-08-28T14:45:23.000000Z",
    "parts": [
        {
            "id": 1,
            "repair_id": 1,
            "part_id": 3,
            "reason": "Voluptate amet saepe nihil nemo ipsum accusantium eos sint. Non beatae cum inventore sed. Culpa odit ratione harum corrupti harum aut iusto. Sed molestias totam qui iste ut amet.",
            "created_at": "2026-08-28T14:45:24.000000Z",
            "updated_at": "2026-08-28T14:45:24.000000Z",
            "part": {
                "id": 3,
                "device_model": null,
                "name": "Visa",
                "created_at": "2026-08-28T14:45:24.000000Z",
                "updated_at": "2026-08-28T14:45:24.000000Z"
            }
        },
        {
            "id": 2,
            "repair_id": 1,
            "part_id": 4,
            "reason": "Consectetur deleniti incidunt et aspernatur quasi. Aut sapiente velit ut excepturi aut et. Suscipit quas sit natus. Illum rerum debitis vitae qui qui deleniti qui.",
            "created_at": "2026-08-28T14:45:25.000000Z",
            "updated_at": "2026-08-28T14:45:25.000000Z",
            "part": {
                "id": 4,
                "device_model": null,
                "name": "Visa",
                "created_at": "2026-08-28T14:45:25.000000Z",
                "updated_at": "2026-08-28T14:45:25.000000Z"
            }
        },
        {
            "id": 3,
            "repair_id": 1,
            "part_id": 5,
            "reason": "Magni eos aliquid eos asperiores ut officia sit voluptas. Provident beatae et sit quasi facere quaerat. Quam ab officiis fuga earum. Voluptas veritatis tenetur et dolorem nisi libero quos sit.",
            "created_at": "2026-08-28T14:45:25.000000Z",
            "updated_at": "2026-08-28T14:45:25.000000Z",
            "part": {
                "id": 5,
                "device_model": null,
                "name": "Visa",
                "created_at": "2026-08-28T14:45:25.000000Z",
                "updated_at": "2026-08-28T14:45:25.000000Z"
            }
        }
    ],
    "attachments": [
        {
            "id": 1,
            "repair_id": 1,
            "file": "/tmp/fakerTju7wu",
            "created_at": "2026-08-28T14:45:24.000000Z",
            "updated_at": "2026-08-28T14:45:24.000000Z"
        },
        {
            "id": 2,
            "repair_id": 1,
            "file": "/tmp/fakerwTjfxt",
            "created_at": "2026-08-28T14:45:26.000000Z",
            "updated_at": "2026-08-28T14:45:26.000000Z"
        },
        {
            "id": 3,
            "repair_id": 1,
            "file": "/tmp/fakerhVPd83",
            "created_at": "2026-08-28T14:45:26.000000Z",
            "updated_at": "2026-08-28T14:45:26.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to report service repair",
    "code": "SERVICING:REPORT_REPAIR:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/servicing/repair

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

user_id   integer   

User ID. Example: 1

device_id   integer   

Device ID. Example: 1

files   file[]  optional  

Array of attachment files.

parts   object[]  optional  

Array of replaced parts.

part_id   integer  optional  

Service part ID. Example: 1

reason   string  optional  

Reason of part replacement. Example: Mechanical issue

Response

Response Fields

id   integer   

Service repair ID.

user_id   integer   

Associated user ID.

device_id   integer   

Associated device ID.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

parts   object[]   

Service parts included in the repair.

attachments   object[]   

Repair attachments.

Settings

API endpoints for app settings

Get app version

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/settings/app-version" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/settings/app-version"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "version": "1.6.0"
}
 

Request   

GET api/settings/app-version

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get silent push timeout

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/settings/silent-push" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/settings/silent-push"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "timeout": "15"
}
 

Request   

GET api/settings/silent-push

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get available languages

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/settings/languages" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/settings/languages"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "languages": [
        "de",
        "en",
        "es",
        "it",
        "pl",
        "ru",
        "uk"
    ]
}
 

Request   

GET api/settings/languages

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get mobile stores versions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/mobile/versions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/mobile/versions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "ios": "1.0",
    "android": "1.0"
}
 

Request   

GET api/mobile/versions

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Update app version

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/settings/app-version" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"version\": \"1.6.0\"
}"
const url = new URL(
    "http://localhost:8000/api/settings/app-version"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "version": "1.6.0"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "version": "1.6.0"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update settings",
    "code": "SETTINGS:UPDATE_APP_VERSION:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/settings/app-version

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

version   string  optional  

App version. Example: 1.6.0

Update silent push timeout

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/settings/silent-push" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"timeout\": 15
}"
const url = new URL(
    "http://localhost:8000/api/settings/silent-push"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "timeout": 15
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "timeout": "15"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update settings",
    "code": "SETTINGS:UPDATE_SILENT_PUSH:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/settings/silent-push

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

timeout   integer  optional  

Silent push timeout in minutes. Minimum value is 1 minute (15 for production environment), maximum is 60 minutes. MINIMUM:NUMBER:1 MAXIMUM:NUMBER:60. Example: 15

Update mobile stores versions

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/mobile/versions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ios\": \"1.1\",
    \"android\": \"1.1\"
}"
const url = new URL(
    "http://localhost:8000/api/mobile/versions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "ios": "1.1",
    "android": "1.1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "ios": "1.0",
    "android": "1.0"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update settings",
    "code": "SETTINGS:UPDATE_MOBILE_STORES_VERSION:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/mobile/versions

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ios   string  optional  

Apple AppStore current version. Example: 1.1

android   string  optional  

Google Play current version. Example: 1.1

Support Ticket

API endpoints for managing support tickets

Get tickets list

requires authentication

Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/tickets?status=new&sender=1&recipient=1&device=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/tickets"
);

const params = {
    "status": "new",
    "sender": "1",
    "recipient": "1",
    "device": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 27,
            "sender_id": 150,
            "recipient_id": 151,
            "device_id": 128,
            "meeting_date": "2026-08-28 14:45:28",
            "meeting_type": "online_meeting",
            "contact_email": "may89@skiles.com",
            "status": "new",
            "created_at": "2026-08-28T14:45:28.000000Z",
            "updated_at": "2026-08-28T14:45:28.000000Z",
            "sender": {
                "id": 150,
                "mrn": "LJMH8DCZ1787928327",
                "name": "Miss Aliza Parisian II",
                "email": "1787928327wweimann@example.com",
                "language": "en",
                "phone": "1-838-408-2488",
                "phone_country": "SI",
                "phone_verified_at": null,
                "address1": "59059 Thompson Junctions",
                "address2": "Pollichstad, WV 00073-4268",
                "postal_code": "24758-6621",
                "city": "Klocko, Tromp and Keebler",
                "country": "DE",
                "clinic_name": "Port Napoleon",
                "clinic_location": "9559 Predovic Way\nMadgeshire, ND 18617-8338",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:27.000000Z",
                "updated_at": "2026-08-28T14:45:27.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "recipient": {
                "id": 151,
                "mrn": "KAMBZ76Q1787928328",
                "name": "Lauretta Jones",
                "email": "1787928328kenya.kirlin@example.com",
                "language": "en",
                "phone": "1-440-208-8567",
                "phone_country": "BE",
                "phone_verified_at": null,
                "address1": "2383 Blick Mountains Suite 719",
                "address2": "Port Cruzport, SC 43149",
                "postal_code": "96600",
                "city": "Bradtke Inc",
                "country": "US",
                "clinic_name": "New Beulahstad",
                "clinic_location": "88119 Donnelly Port\nNorth Fabianhaven, OR 96309",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:28.000000Z",
                "updated_at": "2026-08-28T14:45:28.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "device": {
                "id": 128,
                "serial": "1cc10541-0656-38df-9a20-91109d3c3bc3",
                "bluetooth_id": "f86169ac-3611-3256-9e60-88a22dbb03e2",
                "company_id": null,
                "model_id": null,
                "amputee_id": null,
                "clinician_id": null,
                "firmware_version_id": null,
                "pcb_version_id": null,
                "reverse_magnets": 0,
                "is_electrode": 0,
                "active": 1,
                "last_activity_at": "0000-00-00 00:00:00",
                "first_connected_at": null,
                "measurements": null,
                "created_at": "2026-08-28T14:45:28.000000Z",
                "updated_at": "2026-08-28T14:45:28.000000Z",
                "first_config_change_at": null
            },
            "messages": [
                {
                    "id": 15,
                    "ticket_id": 27,
                    "sender_id": 152,
                    "title": "Mr.",
                    "content": "Accusamus qui magni voluptatem eaque sed quibusdam nisi consequatur.",
                    "is_read": false,
                    "created_at": "2026-08-28T14:45:29.000000Z",
                    "updated_at": "2026-08-28T14:45:29.000000Z"
                }
            ]
        },
        {
            "id": 35,
            "sender_id": 164,
            "recipient_id": 165,
            "device_id": 129,
            "meeting_date": "2026-08-28 14:45:33",
            "meeting_type": "online_meeting",
            "contact_email": "mrogahn@kovacek.info",
            "status": "new",
            "created_at": "2026-08-28T14:45:34.000000Z",
            "updated_at": "2026-08-28T14:45:34.000000Z",
            "sender": {
                "id": 164,
                "mrn": "B9NLYMFW1787928333",
                "name": "Ms. Idella Cummings",
                "email": "1787928333jaqueline84@example.net",
                "language": "en",
                "phone": "+1 (234) 252-0478",
                "phone_country": "TJ",
                "phone_verified_at": null,
                "address1": "873 Flatley Islands Apt. 542",
                "address2": "Schultzfort, VT 53201-8042",
                "postal_code": "15187-3774",
                "city": "Flatley, Crist and Kovacek",
                "country": "HR",
                "clinic_name": "Micahberg",
                "clinic_location": "275 Gerlach Radial\nEast Simoneshire, IA 55404-2581",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:33.000000Z",
                "updated_at": "2026-08-28T14:45:33.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "recipient": {
                "id": 165,
                "mrn": "F8QQEYGA1787928333",
                "name": "Miss Maxie Spinka",
                "email": "1787928333xrenner@example.net",
                "language": "en",
                "phone": "+12349277894",
                "phone_country": "SK",
                "phone_verified_at": null,
                "address1": "63437 Lakin Extension Apt. 179",
                "address2": "Strosinbury, IL 50178",
                "postal_code": "94404-0184",
                "city": "Heaney-Conroy",
                "country": "BG",
                "clinic_name": "South Claudie",
                "clinic_location": "61118 Connelly Key\nNorth Lynn, AL 31109-1926",
                "image": null,
                "public_image": null,
                "mfa_enabled": 0,
                "mfa_method": null,
                "mfa_verified_to": null,
                "location_id": null,
                "created_by": null,
                "active": 1,
                "is_internal": 0,
                "is_ambassador": 0,
                "notifications_timezone": null,
                "notifications_at": null,
                "created_at": "2026-08-28T14:45:33.000000Z",
                "updated_at": "2026-08-28T14:45:33.000000Z",
                "invitation_status": null,
                "acadle_invitation_status": null,
                "roles": []
            },
            "device": {
                "id": 129,
                "serial": "434e49a2-50c7-34c9-b918-9686667179d2",
                "bluetooth_id": "acca83c3-6eda-38c2-9c3e-e2f16391c403",
                "company_id": null,
                "model_id": null,
                "amputee_id": null,
                "clinician_id": null,
                "firmware_version_id": null,
                "pcb_version_id": null,
                "reverse_magnets": 0,
                "is_electrode": 0,
                "active": 1,
                "last_activity_at": "0000-00-00 00:00:00",
                "first_connected_at": null,
                "measurements": null,
                "created_at": "2026-08-28T14:45:34.000000Z",
                "updated_at": "2026-08-28T14:45:34.000000Z",
                "first_config_change_at": null
            },
            "messages": [
                {
                    "id": 19,
                    "ticket_id": 35,
                    "sender_id": 166,
                    "title": "Mrs.",
                    "content": "Officia non enim debitis amet exercitationem.",
                    "is_read": false,
                    "created_at": "2026-08-28T14:45:35.000000Z",
                    "updated_at": "2026-08-28T14:45:35.000000Z"
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list support tickets",
    "code": "TICKETS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/tickets

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

status   string  optional  

Filter tickets by status (available: new, in_progress, closed, reopened. Example: new

sender   integer  optional  

Filter tickets by sender. Example: 1

recipient   integer  optional  

Filter tickets by recipient. Example: 1

device   string  optional  

Filter tickets by devices. Provide single ID (device=1), array of IDs (device[]=1&device[]=2) or comma-separated list of IDs (device=1,2). Pass value 0 to get tickets without device. Note: tickets without a device are also included when filtering by specific device IDs. Example: 1

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: sender, recipient, device, messages, messages.attachments).

sortby   string  optional  

Sort by field (available: sender_name, recipient_name, date, last_message). Default: last_message, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get tickets status

requires authentication

Counts tickets by their status

Example request:
curl --request GET \
    --get "http://localhost:8000/api/tickets/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/tickets/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "unread": 1
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list support tickets",
    "code": "TICKETS:STATUS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/tickets/status

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get support ticket

requires authentication

Returns single support ticket in the response.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/ticket/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/ticket/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 43,
    "sender_id": 178,
    "recipient_id": 179,
    "device_id": 130,
    "meeting_date": "2026-08-28 14:45:39",
    "meeting_type": "online_meeting",
    "contact_email": "jwolff@gmail.com",
    "status": "new",
    "created_at": "2026-08-28T14:45:39.000000Z",
    "updated_at": "2026-08-28T14:45:39.000000Z",
    "sender": {
        "id": 178,
        "mrn": "Z5GYSVPZ1787928338",
        "name": "Dr. Osborne Mayer",
        "email": "1787928338hstreich@example.com",
        "language": "en",
        "phone": "1-351-475-0122",
        "phone_country": "CZ",
        "phone_verified_at": null,
        "address1": "1633 Feest Spur",
        "address2": "Brekkeborough, SC 27642-6360",
        "postal_code": "30046-3167",
        "city": "Connelly, Bahringer and Nolan",
        "country": "SK",
        "clinic_name": "South Camillastad",
        "clinic_location": "988 Gulgowski Pines Suite 280\nNorth Arvid, KS 89451",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:39.000000Z",
        "updated_at": "2026-08-28T14:45:39.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 179,
        "mrn": "AU68SBGM1787928339",
        "name": "Glenna Fahey",
        "email": "1787928339junior71@example.org",
        "language": "en",
        "phone": "(858) 221-8528",
        "phone_country": "CA",
        "phone_verified_at": null,
        "address1": "252 Junius Place",
        "address2": "New Hellen, SD 07206",
        "postal_code": "36667-1949",
        "city": "Sporer, Schumm and Yost",
        "country": "GR",
        "clinic_name": "Lake Chasity",
        "clinic_location": "330 Art Ways\nSouth Tateland, OK 65883-5192",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:39.000000Z",
        "updated_at": "2026-08-28T14:45:39.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": {
        "id": 130,
        "serial": "d86b497c-9d28-3703-ac93-1286ab2f8024",
        "bluetooth_id": "f36e93b1-27a0-33ef-9f2e-9f4697f01d38",
        "company_id": null,
        "model_id": null,
        "amputee_id": null,
        "clinician_id": null,
        "firmware_version_id": null,
        "pcb_version_id": null,
        "reverse_magnets": 0,
        "is_electrode": 0,
        "active": 1,
        "last_activity_at": "0000-00-00 00:00:00",
        "first_connected_at": null,
        "measurements": null,
        "created_at": "2026-08-28T14:45:39.000000Z",
        "updated_at": "2026-08-28T14:45:39.000000Z",
        "first_config_change_at": null
    },
    "messages": [
        {
            "id": 23,
            "ticket_id": 43,
            "sender_id": 180,
            "title": "Ms.",
            "content": "Reprehenderit nisi nemo sed odio et.",
            "is_read": false,
            "created_at": "2026-08-28T14:45:40.000000Z",
            "updated_at": "2026-08-28T14:45:40.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view support ticket",
    "code": "TICKETS:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Support ticket not found):


{
    "message": "Support ticket not found",
    "code": "TICKETS:GET:TICKET_NOT_FOUND"
}
 

Request   

GET api/ticket/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Support ticket ID. Example: 1

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: sender, recipient, device, messages, messages.attachments, messages.sender).

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Get support ticket history

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/ticket/1/history" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/ticket/1/history"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "ticket_id": 51,
            "author_id": 193,
            "action": "quia",
            "reason": "Nostrum quisquam veniam enim cum est.",
            "created_at": "2026-08-28T14:45:45.000000Z",
            "updated_at": "2026-08-28T14:45:45.000000Z"
        },
        {
            "id": 2,
            "ticket_id": 52,
            "author_id": 195,
            "action": "consequuntur",
            "reason": "Doloribus non voluptates nemo quo cupiditate ratione.",
            "created_at": "2026-08-28T14:45:46.000000Z",
            "updated_at": "2026-08-28T14:45:46.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view support ticket",
    "code": "TICKETS:HISTORY:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Support ticket not found):


{
    "message": "Support ticket not found",
    "code": "TICKETS:HISTORY:TICKET_NOT_FOUND"
}
 

Request   

GET api/ticket/{id}/history

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Support ticket ID. Example: 1

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

sortby   string  optional  

Sort by field (available: date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

History entry ID.

ticket_id   integer   

Associated support ticket ID.

author_id   integer   

ID of the user who made this change.

action   string   

Action performed.

reason   string   

Reason for the action.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who made this change.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get support ticket available filters

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/tickets/available-filters" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/tickets/available-filters"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "clinicians": [
        {
            "id": 95,
            "mrn": null,
            "name": "Name",
            "email": "email",
            "region": "us",
            "language": "pl",
            "phone": "+48-555555555",
            "phone_verified_at": null,
            "address1": "Address",
            "address2": "Address 2",
            "postal_code": "",
            "city": "",
            "clinic_name": "Name",
            "clinic_location": "Name",
            "image": "https://aether-dev-bucket.s3.amazonaws.com/users/LDueuv1uG218G7owaiLAaWRkpaGxjB0jEFwzZsT1.png",
            "mfa_enabled": 0,
            "mfa_method": "sms",
            "mfa_verified_to": null,
            "location_id": 2,
            "created_by": 1,
            "active": 1,
            "notifications_timezone": "America/Adak",
            "notifications_at": null,
            "created_at": "2022-07-19T14:43:37.000000Z",
            "updated_at": "2024-09-27T05:52:51.000000Z",
            "invitation_status": "expired",
            "roles": [
                {
                    "id": 2,
                    "name": "Clinician",
                    "guard_name": "web",
                    "created_at": "2022-03-21T17:15:47.000000Z",
                    "updated_at": "2022-03-21T17:15:47.000000Z",
                    "pivot": {
                        "model_id": 95,
                        "role_id": 2,
                        "model_type": "App\\Models\\User"
                    }
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create support ticket",
    "code": "TICKETS:AVAILABLE_FILTERS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/tickets/available-filters

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Create new support ticket

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/tickets" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "recipient=1"\
    --form "device=1"\
    --form "meeting_type=online_meeting"\
    --form "meeting_date=2026-08-28 14:45:46"\
    --form "contact_email=ynikolaus@gmail.com"\
    --form "message[content]=Rerum ut debitis maiores hic."\
    --form "message[title]=Exercitationem vel voluptatem."\
    --form "message[attachments][]=@/tmp/php2gM4Km" 
const url = new URL(
    "http://localhost:8000/api/tickets"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('recipient', '1');
body.append('device', '1');
body.append('meeting_type', 'online_meeting');
body.append('meeting_date', '2026-08-28 14:45:46');
body.append('contact_email', 'ynikolaus@gmail.com');
body.append('message[content]', 'Rerum ut debitis maiores hic.');
body.append('message[title]', 'Exercitationem vel voluptatem.');
body.append('message[attachments][]', document.querySelector('input[name="message[attachments][]"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "id": 53,
    "sender_id": 196,
    "recipient_id": 197,
    "device_id": 131,
    "meeting_date": "2026-08-28 14:45:46",
    "meeting_type": "online_meeting",
    "contact_email": "mgoldner@hills.com",
    "status": "new",
    "created_at": "2026-08-28T14:45:46.000000Z",
    "updated_at": "2026-08-28T14:45:46.000000Z",
    "sender": {
        "id": 196,
        "mrn": "6XJS27MH1787928346",
        "name": "Gillian Reinger",
        "email": "1787928346kenyon.hartmann@example.com",
        "language": "en",
        "phone": "+18282515424",
        "phone_country": "RO",
        "phone_verified_at": null,
        "address1": "649 Uriel Motorway",
        "address2": "Royalfurt, MN 57901",
        "postal_code": "05301",
        "city": "Luettgen-Jacobs",
        "country": "RO",
        "clinic_name": "Luciousland",
        "clinic_location": "2365 Hand Park Apt. 811\nEast Fabiola, AZ 61714-6772",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:46.000000Z",
        "updated_at": "2026-08-28T14:45:46.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 197,
        "mrn": "ERP6HUT31787928346",
        "name": "Isabell Jacobi MD",
        "email": "1787928346jazmyne49@example.org",
        "language": "en",
        "phone": "1-860-475-2710",
        "phone_country": "SE",
        "phone_verified_at": null,
        "address1": "28658 Beier Locks Suite 256",
        "address2": "Port Tyra, NC 27247",
        "postal_code": "04112-2770",
        "city": "Schaden, Huels and Block",
        "country": "NL",
        "clinic_name": "Blancheland",
        "clinic_location": "6584 Loy Port Suite 835\nPort Mike, FL 17872-9698",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:46.000000Z",
        "updated_at": "2026-08-28T14:45:46.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": {
        "id": 131,
        "serial": "9ddcf512-7618-3247-856c-1bf9ce26811b",
        "bluetooth_id": "6467d4d3-acbb-34be-8be9-cdfde52046f6",
        "company_id": null,
        "model_id": null,
        "amputee_id": null,
        "clinician_id": null,
        "firmware_version_id": null,
        "pcb_version_id": null,
        "reverse_magnets": 0,
        "is_electrode": 0,
        "active": 1,
        "last_activity_at": "0000-00-00 00:00:00",
        "first_connected_at": null,
        "measurements": null,
        "created_at": "2026-08-28T14:45:46.000000Z",
        "updated_at": "2026-08-28T14:45:46.000000Z",
        "first_config_change_at": null
    },
    "messages": [
        {
            "id": 27,
            "ticket_id": 53,
            "sender_id": 198,
            "title": "Miss",
            "content": "Eos consequuntur repellat assumenda placeat.",
            "is_read": false,
            "created_at": "2026-08-28T14:45:48.000000Z",
            "updated_at": "2026-08-28T14:45:48.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create support ticket",
    "code": "TICKETS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/tickets

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

recipient   integer   

User the support ticket is assigned to. For Amputee role main clinician will be automatically assigned instead. The id of an existing record in the App\Models\User table. Example: 1

device   integer  optional  

Device the support ticket is assigned to. The id of an existing record in the App\Models\Device table. Example: 1

meeting_type   string   

Type of support meeting. Example: online_meeting

Must be one of:
  • online_meeting
  • phone_call
  • personally
  • none
meeting_date   string   

Date of support meeting. MUST_BE_DATE. Example: 2026-08-28 14:45:46

contact_email   string  optional  

Email address for later contact. MUST_BE_EMAIL. Example: ynikolaus@gmail.com

message   object  optional  
content   string  optional  

Content of message. Example: Rerum ut debitis maiores hic.

title   string  optional  

Message title. Example: Exercitationem vel voluptatem.

attachments   file[]  optional  

Must be a file.

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Close support ticket

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/ticket/1/close" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/ticket/1/close"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202):


{
    "id": 61,
    "sender_id": 210,
    "recipient_id": 211,
    "device_id": 132,
    "meeting_date": "2026-08-28 14:45:52",
    "meeting_type": "online_meeting",
    "contact_email": "tomasa.ratke@mcclure.com",
    "status": "new",
    "created_at": "2026-08-28T14:45:52.000000Z",
    "updated_at": "2026-08-28T14:45:52.000000Z",
    "sender": {
        "id": 210,
        "mrn": "CFPT2KB31787928351",
        "name": "Lavada Vandervort",
        "email": "1787928351valentin.bayer@example.net",
        "language": "en",
        "phone": "606.336.6191",
        "phone_country": "AQ",
        "phone_verified_at": null,
        "address1": "972 Turcotte Rapids Suite 450",
        "address2": "New Grady, MI 06465-0222",
        "postal_code": "08537",
        "city": "Walsh Ltd",
        "country": "SK",
        "clinic_name": "Port Shermanfort",
        "clinic_location": "70945 Lilyan Passage\nO'Connellstad, IN 52867-6280",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:51.000000Z",
        "updated_at": "2026-08-28T14:45:51.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 211,
        "mrn": "S68ZZDGV1787928352",
        "name": "Dr. Stanton Jones",
        "email": "1787928352june28@example.com",
        "language": "en",
        "phone": "+1 (678) 320-4280",
        "phone_country": "FR",
        "phone_verified_at": null,
        "address1": "5834 Naomie Cove",
        "address2": "Jacobsfurt, IA 85699",
        "postal_code": "14776",
        "city": "Reinger, Langosh and Block",
        "country": "HU",
        "clinic_name": "West Alanna",
        "clinic_location": "443 Vena Spurs Suite 354\nLeannontown, RI 61555-1645",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:52.000000Z",
        "updated_at": "2026-08-28T14:45:52.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": {
        "id": 132,
        "serial": "db7b74d9-4f26-370d-9ca2-9763492c599b",
        "bluetooth_id": "728334a2-4533-3708-afe6-9d0a511c2b67",
        "company_id": null,
        "model_id": null,
        "amputee_id": null,
        "clinician_id": null,
        "firmware_version_id": null,
        "pcb_version_id": null,
        "reverse_magnets": 0,
        "is_electrode": 0,
        "active": 1,
        "last_activity_at": "0000-00-00 00:00:00",
        "first_connected_at": null,
        "measurements": null,
        "created_at": "2026-08-28T14:45:52.000000Z",
        "updated_at": "2026-08-28T14:45:52.000000Z",
        "first_config_change_at": null
    },
    "messages": []
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to close support ticket",
    "code": "TICKETS:CLOSE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Support ticket not found):


{
    "message": "Support ticket not found",
    "code": "TICKETS:CLOSE:TICKET_NOT_FOUND"
}
 

Request   

POST api/ticket/{id}/close

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Support ticket ID. Example: 1

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Reopen support ticket

requires authentication

Patient (Amputee) role can reopen only non-config tickets. For config tickets patients will get "Insufficient permission" response. For patients role reason field is required.

Example request:
curl --request POST \
    "http://localhost:8000/api/ticket/1/reopen" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"Something is still not working\"
}"
const url = new URL(
    "http://localhost:8000/api/ticket/1/reopen"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "reason": "Something is still not working"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 3,
    "ticket_id": 62,
    "author_id": 213,
    "action": "cum",
    "reason": "Accusamus reiciendis accusantium quod et.",
    "created_at": "2026-08-28T14:45:53.000000Z",
    "updated_at": "2026-08-28T14:45:53.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to reopen support ticket",
    "code": "TICKETS:REOPEN:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Support ticket not found):


{
    "message": "Support ticket not found",
    "code": "TICKETS:REOPEN:TICKET_NOT_FOUND"
}
 

Request   

POST api/ticket/{id}/reopen

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Support ticket ID. Example: 1

Body Parameters

reason   string  optional  

Reason for reopen action. Example: Something is still not working

Response

Response Fields

id   integer   

History entry ID.

ticket_id   integer   

Associated support ticket ID.

author_id   integer   

ID of the user who made this change.

action   string   

Action performed.

reason   string   

Reason for the action.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

author   object   

User who made this change.

Create new support ticket message

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/ticket/1/messages" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "title=Earum nulla."\
    --form "content=Nam dicta incidunt velit dolor."\
    --form "attachments[]=@/tmp/phpld2IJn" 
const url = new URL(
    "http://localhost:8000/api/ticket/1/messages"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('title', 'Earum nulla.');
body.append('content', 'Nam dicta incidunt velit dolor.');
body.append('attachments[]', document.querySelector('input[name="attachments[]"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "id": 63,
    "sender_id": 214,
    "recipient_id": 215,
    "device_id": 133,
    "meeting_date": "2026-08-28 14:45:53",
    "meeting_type": "online_meeting",
    "contact_email": "emard.rashad@okuneva.com",
    "status": "new",
    "created_at": "2026-08-28T14:45:54.000000Z",
    "updated_at": "2026-08-28T14:45:54.000000Z",
    "sender": {
        "id": 214,
        "mrn": "XQR4THX51787928353",
        "name": "Mittie Ernser",
        "email": "1787928353brakus.junius@example.org",
        "language": "en",
        "phone": "+1 (731) 821-8060",
        "phone_country": "TW",
        "phone_verified_at": null,
        "address1": "3786 Rolando Tunnel Suite 031",
        "address2": "Lake Brendan, FL 77227",
        "postal_code": "44326-2232",
        "city": "Block-Feeney",
        "country": "RO",
        "clinic_name": "New Cristopherhaven",
        "clinic_location": "301 Rohan Crescent Suite 924\nCletaside, KS 40652",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:53.000000Z",
        "updated_at": "2026-08-28T14:45:53.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 215,
        "mrn": "SZWNTU6V1787928353",
        "name": "Dina Frami",
        "email": "1787928353xkoepp@example.com",
        "language": "en",
        "phone": "+1-931-825-3395",
        "phone_country": "GL",
        "phone_verified_at": null,
        "address1": "535 Von Skyway",
        "address2": "Lupemouth, NC 99983-6441",
        "postal_code": "33924-0398",
        "city": "Blanda PLC",
        "country": "AT",
        "clinic_name": "Clarashire",
        "clinic_location": "4370 Connelly Garden Apt. 879\nSouth Randallton, KY 04547-8472",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:53.000000Z",
        "updated_at": "2026-08-28T14:45:53.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": {
        "id": 133,
        "serial": "fe2eaf3e-5a93-3c32-8b1c-da8d514d7afc",
        "bluetooth_id": "9bdd8e1e-4bd4-365c-a065-84e57b697c3b",
        "company_id": null,
        "model_id": null,
        "amputee_id": null,
        "clinician_id": null,
        "firmware_version_id": null,
        "pcb_version_id": null,
        "reverse_magnets": 0,
        "is_electrode": 0,
        "active": 1,
        "last_activity_at": "0000-00-00 00:00:00",
        "first_connected_at": null,
        "measurements": null,
        "created_at": "2026-08-28T14:45:54.000000Z",
        "updated_at": "2026-08-28T14:45:54.000000Z",
        "first_config_change_at": null
    },
    "messages": [
        {
            "id": 31,
            "ticket_id": 63,
            "sender_id": 216,
            "title": "Mr.",
            "content": "Nulla fugit ad molestiae debitis.",
            "is_read": false,
            "created_at": "2026-08-28T14:45:55.000000Z",
            "updated_at": "2026-08-28T14:45:55.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create support ticket",
    "code": "TICKETS:CREATE_MESSAGE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Support ticket not found):


{
    "message": "Support ticket not found",
    "code": "TICKETS:CREATE_MESSAGE:TICKET_NOT_FOUND"
}
 

Request   

POST api/ticket/{id}/messages

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

id   integer   

Support ticket ID. Example: 1

Body Parameters

title   string  optional  

Message title. Example: Earum nulla.

content   string  optional  

Content of message. Example: Nam dicta incidunt velit dolor.

attachments   file[]  optional  

Must be a file.

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Mark all messages as read

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/ticket/1/read" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/ticket/1/read"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202):


{
    "id": 71,
    "sender_id": 228,
    "recipient_id": 229,
    "device_id": 134,
    "meeting_date": "2026-08-28 14:45:59",
    "meeting_type": "online_meeting",
    "contact_email": "evangeline66@rippin.com",
    "status": "new",
    "created_at": "2026-08-28T14:45:59.000000Z",
    "updated_at": "2026-08-28T14:45:59.000000Z",
    "sender": {
        "id": 228,
        "mrn": "VPMRKHSG1787928359",
        "name": "Alene Jerde",
        "email": "1787928359kadin.heller@example.org",
        "language": "en",
        "phone": "+1 (346) 270-4949",
        "phone_country": "HK",
        "phone_verified_at": null,
        "address1": "28153 Ellen Ferry Suite 619",
        "address2": "Port Gerry, OH 75786",
        "postal_code": "79418-8795",
        "city": "Toy, Rosenbaum and Hyatt",
        "country": "GB",
        "clinic_name": "Aldentown",
        "clinic_location": "8645 Nitzsche Square Suite 239\nWest Cristobalmouth, ID 17492",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:59.000000Z",
        "updated_at": "2026-08-28T14:45:59.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 229,
        "mrn": "QNZXCSDT1787928359",
        "name": "Trever Hagenes",
        "email": "1787928359myles28@example.org",
        "language": "en",
        "phone": "(231) 553-5524",
        "phone_country": "CG",
        "phone_verified_at": null,
        "address1": "5755 O'Hara Way",
        "address2": "North Maddisonbury, NY 01215-3380",
        "postal_code": "18437",
        "city": "Donnelly-Macejkovic",
        "country": "UA",
        "clinic_name": "North Leonardo",
        "clinic_location": "63247 Jazlyn Rue Suite 323\nMerleland, CT 85241",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:45:59.000000Z",
        "updated_at": "2026-08-28T14:45:59.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": {
        "id": 134,
        "serial": "17316197-6ad8-3ab6-a3da-a44b2cc76f21",
        "bluetooth_id": "0de811c6-cf20-300a-9b18-041bbd507287",
        "company_id": null,
        "model_id": null,
        "amputee_id": null,
        "clinician_id": null,
        "firmware_version_id": null,
        "pcb_version_id": null,
        "reverse_magnets": 0,
        "is_electrode": 0,
        "active": 1,
        "last_activity_at": "0000-00-00 00:00:00",
        "first_connected_at": null,
        "measurements": null,
        "created_at": "2026-08-28T14:45:59.000000Z",
        "updated_at": "2026-08-28T14:45:59.000000Z",
        "first_config_change_at": null
    },
    "messages": [
        {
            "id": 35,
            "ticket_id": 71,
            "sender_id": 230,
            "title": "Prof.",
            "content": "Ad odit nostrum similique minus eveniet et.",
            "is_read": false,
            "created_at": "2026-08-28T14:46:01.000000Z",
            "updated_at": "2026-08-28T14:46:01.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to read message",
    "code": "TICKETS:READ_ALL:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Support ticket not found):


{
    "message": "Support ticket not found",
    "code": "TICKETS:READ_ALL:TICKET_NOT_FOUND"
}
 

Request   

POST api/ticket/{id}/read

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Support ticket ID (id from ticket list; do not confuse with messages.id). Example: 1

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Mark single message as read

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/ticket/1/read/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/ticket/1/read/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202):


{
    "id": 79,
    "sender_id": 242,
    "recipient_id": 243,
    "device_id": 135,
    "meeting_date": "2026-08-28 14:46:05",
    "meeting_type": "online_meeting",
    "contact_email": "johns.gust@kuhic.com",
    "status": "new",
    "created_at": "2026-08-28T14:46:05.000000Z",
    "updated_at": "2026-08-28T14:46:05.000000Z",
    "sender": {
        "id": 242,
        "mrn": "QJC3AUCY1787928364",
        "name": "Alfonso Gislason",
        "email": "1787928364twitting@example.com",
        "language": "en",
        "phone": "(731) 628-8000",
        "phone_country": "HK",
        "phone_verified_at": null,
        "address1": "35152 Jarod Village Apt. 830",
        "address2": "Brekkeburgh, AZ 89237-2085",
        "postal_code": "74514-1658",
        "city": "Bayer Group",
        "country": "AT",
        "clinic_name": "New Ardithshire",
        "clinic_location": "24305 Theresa Lodge Apt. 115\nEast Piperville, OH 10440",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:46:04.000000Z",
        "updated_at": "2026-08-28T14:46:04.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "recipient": {
        "id": 243,
        "mrn": "BJFHHDRF1787928365",
        "name": "Michale Schinner",
        "email": "1787928365zhaag@example.net",
        "language": "en",
        "phone": "640.758.4813",
        "phone_country": "TT",
        "phone_verified_at": null,
        "address1": "463 Orn Ramp",
        "address2": "Elizabethstad, MD 39490-2789",
        "postal_code": "25524-6127",
        "city": "Purdy LLC",
        "country": "FI",
        "clinic_name": "Aryannahaven",
        "clinic_location": "8720 Maryse Hill\nJakubowskiberg, PA 35159",
        "image": null,
        "public_image": null,
        "mfa_enabled": 0,
        "mfa_method": null,
        "mfa_verified_to": null,
        "location_id": null,
        "created_by": null,
        "active": 1,
        "is_internal": 0,
        "is_ambassador": 0,
        "notifications_timezone": null,
        "notifications_at": null,
        "created_at": "2026-08-28T14:46:05.000000Z",
        "updated_at": "2026-08-28T14:46:05.000000Z",
        "invitation_status": null,
        "acadle_invitation_status": null,
        "roles": []
    },
    "device": {
        "id": 135,
        "serial": "366f98f8-60a2-3aa8-b01b-794a2f4496f6",
        "bluetooth_id": "586a6e53-20c4-35d1-809e-2b1cbac86fba",
        "company_id": null,
        "model_id": null,
        "amputee_id": null,
        "clinician_id": null,
        "firmware_version_id": null,
        "pcb_version_id": null,
        "reverse_magnets": 0,
        "is_electrode": 0,
        "active": 1,
        "last_activity_at": "0000-00-00 00:00:00",
        "first_connected_at": null,
        "measurements": null,
        "created_at": "2026-08-28T14:46:05.000000Z",
        "updated_at": "2026-08-28T14:46:05.000000Z",
        "first_config_change_at": null
    },
    "messages": [
        {
            "id": 39,
            "ticket_id": 79,
            "sender_id": 244,
            "title": "Mr.",
            "content": "Et aut voluptates dolorum rem sint quod sed.",
            "is_read": false,
            "created_at": "2026-08-28T14:46:07.000000Z",
            "updated_at": "2026-08-28T14:46:07.000000Z"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to read message",
    "code": "TICKETS:READ_MESSAGE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Message not found):


{
    "message": "Message not found",
    "code": "TICKETS:READ_MESSAGE:MESSAGE_NOT_FOUND"
}
 

Request   

POST api/ticket/{id}/read/{messageId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Support ticket ID (id from ticket list; do not confuse with messages.id). Example: 1

messageId   integer   

Message ID. Example: 1

Response

Response Fields

id   integer   

Support ticket ID.

sender_id   integer   

ID of the user who created the ticket.

recipient_id   integer   

ID of the recipient user.

device_id   integer   

Associated device ID.

meeting_date   string   

Scheduled meeting date.

meeting_type   string   

Meeting type.

Must be one of:
  • online
  • in-person
contact_email   string   

Contact email address.

status   string   

Ticket status.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

sender   object   

User who created the ticket.

recipient   object   

Recipient user.

device   object   

Associated device.

messages   object[]   

Ticket messages.

Tooltips

API endpoints for managing tooltips

List tooltips

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/tooltips" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/tooltips"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "name": "Tillman Kautzer II",
            "type": "video",
            "language": "hz",
            "file": "0",
            "created_by": 306,
            "created_at": "2026-08-28T14:46:37.000000Z",
            "updated_at": "2026-08-28T14:46:37.000000Z",
            "deleted_at": null
        },
        {
            "id": 2,
            "name": "Mrs. Tabitha Schumm V",
            "type": "image",
            "language": "bi",
            "file": "0",
            "created_by": 307,
            "created_at": "2026-08-28T14:46:37.000000Z",
            "updated_at": "2026-08-28T14:46:37.000000Z",
            "deleted_at": null
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list tooltips",
    "code": "TOOLTIPS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/tooltips

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

Tooltip ID.

name   string   

Tooltip identifier name.

type   string   

Media type.

Must be one of:
  • image
  • video
language   string   

Language code (ISO 639-1).

file   string   

File path or URL.

created_by   integer   

ID of the user who created the tooltip.

deleted_at   string   

Soft delete timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

List archived tooltips

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/tooltips/archive" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/tooltips/archive"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 3,
            "name": "Uriah Frami II",
            "type": "video",
            "language": "eo",
            "file": "0",
            "created_by": 308,
            "created_at": "2026-08-28T14:46:38.000000Z",
            "updated_at": "2026-08-28T14:46:38.000000Z",
            "deleted_at": null
        },
        {
            "id": 4,
            "name": "Linnea Kuphal",
            "type": "video",
            "language": "cr",
            "file": "0",
            "created_by": 309,
            "created_at": "2026-08-28T14:46:38.000000Z",
            "updated_at": "2026-08-28T14:46:38.000000Z",
            "deleted_at": null
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage tooltips",
    "code": "TOOLTIPS:LIST_ARCHIVE:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/tooltips/archive

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

Response

Response Fields

items   object   
id   integer   

Tooltip ID.

name   string   

Tooltip identifier name.

type   string   

Media type.

Must be one of:
  • image
  • video
language   string   

Language code (ISO 639-1).

file   string   

File path or URL.

created_by   integer   

ID of the user who created the tooltip.

deleted_at   string   

Soft delete timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Create new tooltip

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/tooltips" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=Elta Station"\
    --form "type=image"\
    --form "language=my"\
    --form "file=@/tmp/php9UtA9C" 
const url = new URL(
    "http://localhost:8000/api/tooltips"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'Elta Station');
body.append('type', 'image');
body.append('language', 'my');
body.append('file', document.querySelector('input[name="file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "id": 5,
    "name": "Ms. Stephania Keebler V",
    "type": "video",
    "language": "ho",
    "file": "0",
    "created_by": 310,
    "created_at": "2026-08-28T14:46:39.000000Z",
    "updated_at": "2026-08-28T14:46:39.000000Z",
    "deleted_at": null
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage tooltips",
    "code": "TOOLTIPS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (500, Server error):


{
    "message": "Server error: tooltip not created",
    "code": "TOOLTIPS:CREATE:SERVER_ERROR"
}
 

Request   

POST api/tooltips

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

name   string   

Tooltip name. Example: Elta Station

type   string   

Tooltip content type. Example: image

Must be one of:
  • image
  • video
language   string   

Tooltip content language. Example: my

file   file   

Tooltip content file. Must have one of the following MIME types: webp, png, jpg, jpeg, mp4. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/php9UtA9C

Response

Response Fields

id   integer   

Tooltip ID.

name   string   

Tooltip identifier name.

type   string   

Media type.

Must be one of:
  • image
  • video
language   string   

Language code (ISO 639-1).

file   string   

File path or URL.

created_by   integer   

ID of the user who created the tooltip.

deleted_at   string   

Soft delete timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Archive tooltip

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/tooltips/1/archive" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/tooltips/1/archive"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Tooltip archived",
    "code": "TOOLTIPS:ARCHIVE:ARCHIVED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage tooltips",
    "code": "TOOLTIPS:ARCHIVE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Tooltip not found):


{
    "message": "Tooltip not found",
    "code": "TOOLTIPS:ARCHIVE:TOOLTIP_NOT_FOUND"
}
 

Request   

POST api/tooltips/{id}/archive

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Tooltip ID. Example: 1

Restore archived tooltip

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/tooltips/1/restore" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/tooltips/1/restore"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Tooltip restored",
    "code": "TOOLTIPS:RESTORE:RESTORED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage tooltips",
    "code": "TOOLTIPS:RESTORE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Tooltip not found):


{
    "message": "Tooltip not found",
    "code": "TOOLTIPS:RESTORE:TOOLTIP_NOT_FOUND"
}
 

Example response (404, Tooltip is not archived):


{
    "message": "Tooltip is not archived",
    "code": "TOOLTIPS:RESTORE:TOOLTIP_NOT_ARCHIVED"
}
 

Request   

POST api/tooltips/{id}/restore

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Tooltip ID. Example: 1

Trainings

API endpoints for trainings

Get user trainings

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/trainings" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/trainings"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "user_id": 314,
        "training_id": 2,
        "notifications_enabled": 1,
        "created_at": "2026-08-28T14:46:41.000000Z",
        "updated_at": "2026-08-28T14:46:41.000000Z",
        "training": {
            "id": 2,
            "name": "quia eos",
            "created_at": "2026-08-28T14:46:41.000000Z",
            "updated_at": "2026-08-28T14:46:41.000000Z"
        }
    },
    {
        "id": 2,
        "user_id": 315,
        "training_id": 4,
        "notifications_enabled": 1,
        "created_at": "2026-08-28T14:46:41.000000Z",
        "updated_at": "2026-08-28T14:46:41.000000Z",
        "training": {
            "id": 4,
            "name": "modi optio",
            "created_at": "2026-08-28T14:46:41.000000Z",
            "updated_at": "2026-08-28T14:46:41.000000Z"
        }
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/trainings

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

id   integer   

User training ID.

user_id   integer   

Associated user ID.

training_id   integer   

Associated training ID.

notifications_enabled   boolean   

Whether notifications are enabled for this training.

streak   integer   

Current training streak (days).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

training   object   

Training details.

Get trainings for specific user (clinician access)

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/trainings/user/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/trainings/user/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 3,
        "user_id": 316,
        "training_id": 6,
        "notifications_enabled": 1,
        "created_at": "2026-08-28T14:46:42.000000Z",
        "updated_at": "2026-08-28T14:46:42.000000Z",
        "training": {
            "id": 6,
            "name": "sit nobis",
            "created_at": "2026-08-28T14:46:42.000000Z",
            "updated_at": "2026-08-28T14:46:42.000000Z"
        }
    },
    {
        "id": 4,
        "user_id": 317,
        "training_id": 8,
        "notifications_enabled": 1,
        "created_at": "2026-08-28T14:46:42.000000Z",
        "updated_at": "2026-08-28T14:46:42.000000Z",
        "training": {
            "id": 8,
            "name": "at ut",
            "created_at": "2026-08-28T14:46:42.000000Z",
            "updated_at": "2026-08-28T14:46:42.000000Z"
        }
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access patient training",
    "code": "TRAININGS:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "TRAININGS:LIST:USER_NOT_FOUND"
}
 

Request   

GET api/trainings/user/{userId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

userId   integer   

User ID Example: 1

Response

Response Fields

id   integer   

User training ID.

user_id   integer   

Associated user ID.

training_id   integer   

Associated training ID.

notifications_enabled   boolean   

Whether notifications are enabled for this training.

streak   integer   

Current training streak (days).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

training   object   

Training details.

Get user badges

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/trainings/1/user-badges" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/trainings/1/user-badges"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "user_id": 318,
        "badge_id": 1,
        "created_at": "2026-08-28T14:46:42.000000Z",
        "updated_at": "2026-08-28T14:46:42.000000Z"
    },
    {
        "id": 2,
        "user_id": 319,
        "badge_id": 2,
        "created_at": "2026-08-28T14:46:43.000000Z",
        "updated_at": "2026-08-28T14:46:43.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:BADGES:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User has no training started):


{
    "message": "User has no training started",
    "code": "TRAININGS:BADGES:NO_USER_TRAINING"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:BADGES:TRAINING_NOT_FOUND"
}
 

Request   

GET api/trainings/{trainingId}/user-badges

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trainingId   integer   

Training ID. Example: 1

Response

Response Fields

id   integer   

User badge record ID.

user_id   integer   

Associated user ID.

badge_id   integer   

Associated badge ID.

created_at   string   

Awarded timestamp.

updated_at   string   

Last update timestamp.

Start user training

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/trainings/start/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/trainings/start/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "id": 5,
    "user_id": 320,
    "training_id": 9,
    "notifications_enabled": 1,
    "created_at": "2026-08-28T14:46:43.000000Z",
    "updated_at": "2026-08-28T14:46:43.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:START:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User training already started):


{
    "message": "Cannot start: training already started",
    "code": "TRAININGS:START:ALREADY_STARTED"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:START:TRAINING_NOT_FOUND"
}
 

Request   

POST api/trainings/start/{trainingId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trainingId   integer   

Training ID. Example: 1

Response

Response Fields

id   integer   

User training ID.

user_id   integer   

Associated user ID.

training_id   integer   

Associated training ID.

notifications_enabled   boolean   

Whether notifications are enabled for this training.

streak   integer   

Current training streak (days).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

training   object   

Training details.

Update training

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/trainings/update/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"notifications_enabled\": false
}"
const url = new URL(
    "http://localhost:8000/api/trainings/update/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "notifications_enabled": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 6,
    "user_id": 321,
    "training_id": 10,
    "notifications_enabled": 1,
    "created_at": "2026-08-28T14:46:44.000000Z",
    "updated_at": "2026-08-28T14:46:44.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User has no training started):


{
    "message": "User has no training started",
    "code": "TRAININGS:UPDATE:NO_USER_TRAINING"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:UPDATE:TRAINING_NOT_FOUND"
}
 

Request   

PUT api/trainings/update/{trainingId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trainingId   integer   

Training ID. Example: 1

Body Parameters

notifications_enabled   boolean  optional  

Notifications (reminders) status. Example: false

Response

Response Fields

id   integer   

User training ID.

user_id   integer   

Associated user ID.

training_id   integer   

Associated training ID.

notifications_enabled   boolean   

Whether notifications are enabled for this training.

streak   integer   

Current training streak (days).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

training   object   

Training details.

Get training progress

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/trainings/progress/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/trainings/progress/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 7,
    "user_id": 322,
    "training_id": 11,
    "notifications_enabled": 1,
    "created_at": "2026-08-28T14:46:44.000000Z",
    "updated_at": "2026-08-28T14:46:44.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:PROGRESS:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User has no training started):


{
    "message": "User has no training started",
    "code": "TRAININGS:PROGRESS:NO_USER_TRAINING"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:PROGRESS:TRAINING_NOT_FOUND"
}
 

Request   

GET api/trainings/progress/{trainingId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trainingId   integer   

Training ID. Example: 1

Response

Response Fields

id   integer   

User training ID.

user_id   integer   

Associated user ID.

training_id   integer   

Associated training ID.

notifications_enabled   boolean   

Whether notifications are enabled for this training.

streak   integer   

Current training streak (days).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

training   object   

Training details.

Mark training task done

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/trainings/1/day/2/task/3" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/trainings/1/day/2/task/3"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 8,
    "user_id": 323,
    "training_id": 12,
    "notifications_enabled": 1,
    "created_at": "2026-08-28T14:46:44.000000Z",
    "updated_at": "2026-08-28T14:46:44.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:MARK_DONE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User has no training started):


{
    "message": "User has no training started",
    "code": "TRAININGS:MARK_DONE:NO_USER_TRAINING"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:MARK_DONE:TRAINING_NOT_FOUND"
}
 

Example response (404, Training day not found):


{
    "message": "Training day not found",
    "code": "TRAININGS:MARK_DONE:TRAINING_DAY_NOT_FOUND"
}
 

Example response (404, Training task not found):


{
    "message": "Training task not found",
    "code": "TRAININGS:MARK_DONE:TRAINING_TASK_NOT_FOUND"
}
 

Request   

POST api/trainings/{trainingId}/day/{trainingDayId}/task/{trainingTaskId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trainingId   integer   

Training ID. Example: 1

trainingDayId   integer   

Training Day ID. Example: 2

trainingTaskId   integer   

Training Task ID. Example: 3

Response

Response Fields

id   integer   

User training ID.

user_id   integer   

Associated user ID.

training_id   integer   

Associated training ID.

notifications_enabled   boolean   

Whether notifications are enabled for this training.

streak   integer   

Current training streak (days).

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

training   object   

Training details.

Save training exercises attempts

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/trainings/1/day/2/task/3/attempts" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "exercises[][date_start]=1988-08-01 04:24:38"\
    --form "exercises[][date_end]=1998-06-21 03:58:46"\
    --form "exercises[][end_reason]=fail"\
    --form "exercises[][config][common][fingerStrength][]=1"\
    --form "exercises[][config][common][gripPositions][_]=0"\
    --form "exercises[][config][common][gripPositions][0][initial][]=12"\
    --form "exercises[][config][common][gripPositions][0][limit][]=42"\
    --form "exercises[][config][common][gripPositions][1][initial][]=39"\
    --form "exercises[][config][common][gripPositions][1][limit][]=66"\
    --form "exercises[][config][common][gripPositions][2][initial][]=53"\
    --form "exercises[][config][common][gripPositions][2][limit][]=88"\
    --form "exercises[][config][common][gripPositions][3][initial][]=65"\
    --form "exercises[][config][common][gripPositions][3][limit][]=71"\
    --form "exercises[][config][common][gripPositions][4][initial][]=11"\
    --form "exercises[][config][common][gripPositions][4][limit][]=91"\
    --form "exercises[][config][common][gripPositions][5][initial][]=29"\
    --form "exercises[][config][common][gripPositions][5][limit][]=56"\
    --form "exercises[][config][common][gripPositions][6][initial][]=70"\
    --form "exercises[][config][common][gripPositions][6][limit][]=79"\
    --form "exercises[][config][common][gripPositions][7][initial][]=50"\
    --form "exercises[][config][common][gripPositions][7][limit][]=91"\
    --form "exercises[][config][common][gripPositions][8][initial][]=27"\
    --form "exercises[][config][common][gripPositions][8][limit][]=53"\
    --form "exercises[][config][common][gripPositions][9][initial][]=14"\
    --form "exercises[][config][common][gripPositions][9][limit][]=74"\
    --form "exercises[][config][common][gripPositions][10][initial][]=1"\
    --form "exercises[][config][common][gripPositions][10][limit][]=10"\
    --form "exercises[][config][common][gripPositions][11][initial][]=50"\
    --form "exercises[][config][common][gripPositions][11][limit][]=90"\
    --form "exercises[][config][common][gripPositions][12][initial][]=73"\
    --form "exercises[][config][common][gripPositions][12][limit][]=82"\
    --form "exercises[][config][common][gripPositions][13][initial][]=15"\
    --form "exercises[][config][common][gripPositions][13][limit][]=54"\
    --form "exercises[][config][common][inputSite][]=1"\
    --form "exercises[][config][modes][][id]=83"\
    --form "exercises[][config][modes][][name]=Non voluptas vel labore quis odio sapiente veniam."\
    --form "exercises[][config][modes][][slot]=0"\
    --form "exercises[][config][modes][][config][autoGrasp][]=0"\
    --form "exercises[][config][modes][][config][coContractionTimings][]=100"\
    --form "exercises[][config][modes][][config][controlMode][]=0"\
    --form "exercises[][config][modes][][config][emgGains][]=100"\
    --form "exercises[][config][modes][][config][emgSpike][]=0"\
    --form "exercises[][config][modes][][config][emgThresholds][]=70"\
    --form "exercises[][config][modes][][config][gripPairsConfig][]=5"\
    --form "exercises[][config][modes][][config][gripSequentialConfig][]=6"\
    --form "exercises[][config][modes][][config][gripSwitchingMode][]=1"\
    --form "exercises[][config][modes][][config][holdOpen][]=2000"\
    --form "exercises[][config][modes][][config][pulseTimings][]=660"\
    --form "exercises[][config][modes][][config][softGrip][]=1"\
    --form "exercises[][config][modes][][config][speedControlStrategy][]=0"\
    --form "exercises[][firmware_id]=842369134"\
    --form "exercises[][app_version]=8.60.31"\
    --form "exercises[][attempts][][date_start]=1986-02-22 12:22:07"\
    --form "exercises[][attempts][][date_end]=2023-04-09 22:42:03"\
    --form "exercises[][attempts][][result]=success"\
    --form "exercises[][emg_file]=@/tmp/phpUVe416" 
const url = new URL(
    "http://localhost:8000/api/trainings/1/day/2/task/3/attempts"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('exercises[][date_start]', '1988-08-01 04:24:38');
body.append('exercises[][date_end]', '1998-06-21 03:58:46');
body.append('exercises[][end_reason]', 'fail');
body.append('exercises[][config][common][fingerStrength][]', '1');
body.append('exercises[][config][common][gripPositions][_]', '0');
body.append('exercises[][config][common][gripPositions][0][initial][]', '12');
body.append('exercises[][config][common][gripPositions][0][limit][]', '42');
body.append('exercises[][config][common][gripPositions][1][initial][]', '39');
body.append('exercises[][config][common][gripPositions][1][limit][]', '66');
body.append('exercises[][config][common][gripPositions][2][initial][]', '53');
body.append('exercises[][config][common][gripPositions][2][limit][]', '88');
body.append('exercises[][config][common][gripPositions][3][initial][]', '65');
body.append('exercises[][config][common][gripPositions][3][limit][]', '71');
body.append('exercises[][config][common][gripPositions][4][initial][]', '11');
body.append('exercises[][config][common][gripPositions][4][limit][]', '91');
body.append('exercises[][config][common][gripPositions][5][initial][]', '29');
body.append('exercises[][config][common][gripPositions][5][limit][]', '56');
body.append('exercises[][config][common][gripPositions][6][initial][]', '70');
body.append('exercises[][config][common][gripPositions][6][limit][]', '79');
body.append('exercises[][config][common][gripPositions][7][initial][]', '50');
body.append('exercises[][config][common][gripPositions][7][limit][]', '91');
body.append('exercises[][config][common][gripPositions][8][initial][]', '27');
body.append('exercises[][config][common][gripPositions][8][limit][]', '53');
body.append('exercises[][config][common][gripPositions][9][initial][]', '14');
body.append('exercises[][config][common][gripPositions][9][limit][]', '74');
body.append('exercises[][config][common][gripPositions][10][initial][]', '1');
body.append('exercises[][config][common][gripPositions][10][limit][]', '10');
body.append('exercises[][config][common][gripPositions][11][initial][]', '50');
body.append('exercises[][config][common][gripPositions][11][limit][]', '90');
body.append('exercises[][config][common][gripPositions][12][initial][]', '73');
body.append('exercises[][config][common][gripPositions][12][limit][]', '82');
body.append('exercises[][config][common][gripPositions][13][initial][]', '15');
body.append('exercises[][config][common][gripPositions][13][limit][]', '54');
body.append('exercises[][config][common][inputSite][]', '1');
body.append('exercises[][config][modes][][id]', '83');
body.append('exercises[][config][modes][][name]', 'Non voluptas vel labore quis odio sapiente veniam.');
body.append('exercises[][config][modes][][slot]', '0');
body.append('exercises[][config][modes][][config][autoGrasp][]', '0');
body.append('exercises[][config][modes][][config][coContractionTimings][]', '100');
body.append('exercises[][config][modes][][config][controlMode][]', '0');
body.append('exercises[][config][modes][][config][emgGains][]', '100');
body.append('exercises[][config][modes][][config][emgSpike][]', '0');
body.append('exercises[][config][modes][][config][emgThresholds][]', '70');
body.append('exercises[][config][modes][][config][gripPairsConfig][]', '5');
body.append('exercises[][config][modes][][config][gripSequentialConfig][]', '6');
body.append('exercises[][config][modes][][config][gripSwitchingMode][]', '1');
body.append('exercises[][config][modes][][config][holdOpen][]', '2000');
body.append('exercises[][config][modes][][config][pulseTimings][]', '660');
body.append('exercises[][config][modes][][config][softGrip][]', '1');
body.append('exercises[][config][modes][][config][speedControlStrategy][]', '0');
body.append('exercises[][firmware_id]', '842369134');
body.append('exercises[][app_version]', '8.60.31');
body.append('exercises[][attempts][][date_start]', '1986-02-22 12:22:07');
body.append('exercises[][attempts][][date_end]', '2023-04-09 22:42:03');
body.append('exercises[][attempts][][result]', 'success');
body.append('exercises[][emg_file]', document.querySelector('input[name="exercises[][emg_file]"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "user_id": 324,
        "training_task_id": 1,
        "date_start": "1974-08-18 19:53:37",
        "date_end": "2019-10-27 14:42:00",
        "end_reason": "success",
        "config": "{\"common\":{\"fingerStrength\":[1,100],\"gripPositions\":{\"_\":0,\"0\":{\"initial\":[21,45,43,63,16],\"limit\":[85,51,46,91,41]},\"1\":{\"initial\":[61,64,53,28,30],\"limit\":[62,80,59,35,65]},\"2\":{\"initial\":[25,2,1,5,13],\"limit\":[39,14,77,55,38]},\"3\":{\"initial\":[51,10,34,66,30],\"limit\":[76,17,81,70,73]},\"4\":{\"initial\":[21,22,26,53,46],\"limit\":[60,61,32,56,65]},\"5\":{\"initial\":[58,7,34,33,30],\"limit\":[94,66,87,38,44]},\"6\":{\"initial\":[39,9,3,80,9],\"limit\":[70,49,71,83,39]},\"7\":{\"initial\":[23,53,8,5,44],\"limit\":[42,66,70,37,68]},\"8\":{\"initial\":[7,48,38,11,6],\"limit\":[8,84,90,62,70]},\"9\":{\"initial\":[2,50,83,78,62],\"limit\":[63,77,90,83,87]},\"10\":{\"initial\":[31,72,55,30,2],\"limit\":[47,95,77,80,18]},\"11\":{\"initial\":[31,50,49,42,60],\"limit\":[61,89,79,95,92]},\"12\":{\"initial\":[35,5,37,13,24],\"limit\":[87,60,45,40,59]},\"13\":{\"initial\":[65,12,49,18,47],\"limit\":[82,83,85,84,57]}},\"inputSite\":[1]},\"modes\":[{\"id\":86,\"name\":\"Velit inventore sint libero.\",\"slot\":0,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[100,100],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[0,80,70,70,10,30,50,70,90,20],\"gripPairsConfig\":[13,7,11,6,10,3,4,12],\"gripSequentialConfig\":[255,9,11,4,255,12,255,255,255,3,1,8],\"gripSwitchingMode\":[1],\"holdOpen\":[2500,2500],\"pulseTimings\":[500,30,440,770],\"softGrip\":[1],\"speedControlStrategy\":[1]}},{\"id\":87,\"name\":\"Consequatur quia quibusdam temporibus aperiam.\",\"slot\":1,\"config\":{\"autoGrasp\":[1,0],\"coContractionTimings\":[200,200],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[20,60,90,60,20,40,40,70,30,80],\"gripPairsConfig\":[13,3,1,5,11,8,6,10],\"gripSequentialConfig\":[9,5,4,1,8,11,2,12,3,6,255,13],\"gripSwitchingMode\":[3],\"holdOpen\":[1500,2000],\"pulseTimings\":[480,580,420,340],\"softGrip\":[0],\"speedControlStrategy\":[1]}},{\"id\":88,\"name\":\"Est animi ut debitis et.\",\"slot\":2,\"config\":{\"autoGrasp\":[1,0],\"coContractionTimings\":[500,100],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[0,60,40,0,90,80,100,20,50,100],\"gripPairsConfig\":[4,2,1,12,10,7,9,8],\"gripSequentialConfig\":[9,255,255,255,6,3,11,255,2,5,7,255],\"gripSwitchingMode\":[3],\"holdOpen\":[1500,2500],\"pulseTimings\":[520,870,420,210],\"softGrip\":[0],\"speedControlStrategy\":[1]}}]}",
        "firmware_id": 24,
        "app_version": "1.74.54",
        "emg_file": "/tmp/fakerUkpInt",
        "created_at": "2026-08-28T14:46:45.000000Z",
        "updated_at": "2026-08-28T14:46:45.000000Z",
        "attempts": [
            {
                "id": 1,
                "training_log_id": 1,
                "date_start": "2022-06-29 00:50:21",
                "date_end": "2008-11-23 01:39:57",
                "result": "success",
                "created_at": "2026-08-28T14:46:45.000000Z",
                "updated_at": "2026-08-28T14:46:45.000000Z"
            }
        ]
    },
    {
        "id": 3,
        "user_id": 326,
        "training_task_id": 3,
        "date_start": "1976-01-21 00:34:51",
        "date_end": "2008-05-01 05:04:13",
        "end_reason": "fail",
        "config": "{\"common\":{\"fingerStrength\":[1,100],\"gripPositions\":{\"_\":0,\"0\":{\"initial\":[10,45,34,11,80],\"limit\":[68,53,62,65,86]},\"1\":{\"initial\":[1,5,1,1,9],\"limit\":[56,12,86,59,44]},\"2\":{\"initial\":[15,15,9,7,59],\"limit\":[39,95,58,90,88]},\"3\":{\"initial\":[56,53,17,3,19],\"limit\":[77,78,39,63,88]},\"4\":{\"initial\":[26,48,21,17,31],\"limit\":[58,52,89,44,77]},\"5\":{\"initial\":[29,43,14,23,37],\"limit\":[44,76,61,23,66]},\"6\":{\"initial\":[60,60,5,8,34],\"limit\":[61,72,34,67,37]},\"7\":{\"initial\":[21,27,46,55,66],\"limit\":[42,50,81,76,78]},\"8\":{\"initial\":[33,19,15,51,25],\"limit\":[87,83,31,55,64]},\"9\":{\"initial\":[2,18,39,61,32],\"limit\":[20,38,84,90,80]},\"10\":{\"initial\":[1,73,58,15,58],\"limit\":[57,82,83,85,82]},\"11\":{\"initial\":[56,31,1,13,34],\"limit\":[79,54,74,67,60]},\"12\":{\"initial\":[76,24,3,75,69],\"limit\":[93,86,33,93,71]},\"13\":{\"initial\":[36,21,6,42,53],\"limit\":[65,29,34,82,64]}},\"inputSite\":[0]},\"modes\":[{\"id\":92,\"name\":\"Amet pariatur voluptatem eum dolor recusandae dignissimos reiciendis.\",\"slot\":0,\"config\":{\"autoGrasp\":[1,0],\"coContractionTimings\":[200,200],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[80,40,40,90,60,80,80,100,40,60],\"gripPairsConfig\":[3,10,1,4,9,11,12,13],\"gripSequentialConfig\":[12,255,3,13,255,10,8,1,11,9,4,255],\"gripSwitchingMode\":[3],\"holdOpen\":[2000,2500],\"pulseTimings\":[840,600,790,350],\"softGrip\":[1],\"speedControlStrategy\":[0]}},{\"id\":93,\"name\":\"Molestiae quos et delectus voluptatem fugit et fugit.\",\"slot\":1,\"config\":{\"autoGrasp\":[0,0],\"coContractionTimings\":[500,300],\"controlMode\":[0],\"emgGains\":[100,100],\"emgSpike\":[1,300],\"emgThresholds\":[50,0,40,50,10,20,0,40,70,0],\"gripPairsConfig\":[9,1,12,6,3,13,4,11],\"gripSequentialConfig\":[255,8,9,4,7,1,10,255,255,255,11,255],\"gripSwitchingMode\":[2],\"holdOpen\":[1500,2500],\"pulseTimings\":[140,160,820,130],\"softGrip\":[0],\"speedControlStrategy\":[1]}},{\"id\":94,\"name\":\"Quo sed velit fugit ex quibusdam eius necessitatibus.\",\"slot\":2,\"config\":{\"autoGrasp\":[0,100],\"coContractionTimings\":[300,200],\"controlMode\":[1],\"emgGains\":[100,100],\"emgSpike\":[0,300],\"emgThresholds\":[40,50,70,20,10,10,10,10,20,20],\"gripPairsConfig\":[8,12,2,11,10,3,4,9],\"gripSequentialConfig\":[13,9,6,255,255,7,11,10,5,255,3,1],\"gripSwitchingMode\":[2],\"holdOpen\":[2500,2500],\"pulseTimings\":[670,110,810,860],\"softGrip\":[0],\"speedControlStrategy\":[0]}}]}",
        "firmware_id": 26,
        "app_version": "3.55.95",
        "emg_file": "/tmp/fakervL6BVn",
        "created_at": "2026-08-28T14:46:46.000000Z",
        "updated_at": "2026-08-28T14:46:46.000000Z",
        "attempts": [
            {
                "id": 2,
                "training_log_id": 3,
                "date_start": "1977-08-28 00:27:10",
                "date_end": "1982-07-11 12:51:38",
                "result": "failure",
                "created_at": "2026-08-28T14:46:46.000000Z",
                "updated_at": "2026-08-28T14:46:46.000000Z"
            }
        ]
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:SAVE_ATTEMPTS:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User has no training started):


{
    "message": "User has no training started",
    "code": "TRAININGS:SAVE_ATTEMPTS:NO_USER_TRAINING"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:SAVE_ATTEMPTS:TRAINING_NOT_FOUND"
}
 

Example response (404, Training day not found):


{
    "message": "Training day not found",
    "code": "TRAININGS:SAVE_ATTEMPTS:TRAINING_DAY_NOT_FOUND"
}
 

Example response (404, Training task not found):


{
    "message": "Training task not found",
    "code": "TRAININGS:SAVE_ATTEMPTS:TRAINING_TASK_NOT_FOUND"
}
 

Request   

POST api/trainings/{trainingId}/day/{trainingDayId}/task/{trainingTaskId}/attempts

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

trainingId   integer   

Training ID. Example: 1

trainingDayId   integer   

Training Day ID. Example: 2

trainingTaskId   integer   

Training Task ID. Example: 3

Body Parameters

exercises   object[]  optional  
date_start   string   

Exercise start date. MUST_BE_DATE. Example: 1988-08-01 04:24:38

date_end   string  optional  

Exercise end date. MUST_BE_DATE. Example: 1998-06-21 03:58:46

end_reason   string  optional  

Exercise end reason. Example: fail

Must be one of:
  • success
  • back
  • ticketCreated
  • fail
  • null
config   string   

Device config during exercise.

firmware_id   integer   

Device Firmware Version ID during exercise. The id of an existing record in the App\Models\FirmwareVersion table. Example: 842369134

app_version   string   

Mobile app version during exercise. Example: 8.60.31

emg_file   file  optional  

EMG file created during exercise. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpUVe416

attempts   object[]  optional  
date_start   string   

Exercise attempt start date. MUST_BE_DATE. Example: 1986-02-22 12:22:07

date_end   string   

Exercise attempt end date. MUST_BE_DATE. Example: 2023-04-09 22:42:03

result   string   

Exercise attempt result. Example: success

Must be one of:
  • success
  • failure

Response

Response Fields

id   integer   

Training log entry ID.

user_id   integer   

Associated user ID.

training_task_id   integer   

Associated training task ID.

date_start   string   

Session start datetime.

date_end   string   

Session end datetime.

end_reason   string   

Reason the session ended.

config   string   

Device config snapshot at time of session.

firmware_id   integer   

Firmware version ID used during session.

app_version   string   

App version used during session.

emg_file   string   

EMG data file URL.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

attempts   object[]   

Training log attempts.

Get reward status

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/trainings/1/reward" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/trainings/1/reward"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, Reward status):


{
    "status": true
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:REWARD_STATUS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:REWARD_STATUS:TRAINING_NOT_FOUND"
}
 

Request   

GET api/trainings/{trainingId}/reward

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trainingId   integer   

Training ID. Example: 1

Save reward details

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/trainings/1/reward" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"digital\",
    \"country\": \"IE\",
    \"delivery\": \"ua_nova_poshta_branch_pickup\",
    \"email\": \"elliott05@olson.com\",
    \"phone\": \"386-689-0527\",
    \"full_name\": \"Dr. Sonny Barrows\",
    \"address1\": \"7202 Benedict Burg\",
    \"address2\": \"Suite 610\",
    \"city\": \"Lake Cliftonstad\",
    \"postal_code\": \"08874-5746\",
    \"state\": \"CONSEQUATUR\",
    \"parcel_locker_code\": \"HB3MCRPH\",
    \"pin_code\": \"436519\"
}"
const url = new URL(
    "http://localhost:8000/api/trainings/1/reward"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "digital",
    "country": "IE",
    "delivery": "ua_nova_poshta_branch_pickup",
    "email": "elliott05@olson.com",
    "phone": "386-689-0527",
    "full_name": "Dr. Sonny Barrows",
    "address1": "7202 Benedict Burg",
    "address2": "Suite 610",
    "city": "Lake Cliftonstad",
    "postal_code": "08874-5746",
    "state": "CONSEQUATUR",
    "parcel_locker_code": "HB3MCRPH",
    "pin_code": "436519"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "user_id": 328,
    "training_id": 21,
    "type": "digital",
    "country": "CY",
    "delivery": "pl_inpost_parcel_locker",
    "email": "nbradtke@gmail.com",
    "phone": "831-391-5199",
    "full_name": "Dr. Xzavier Ankunding I",
    "address1": "9637 Rebecca Mall Suite 977",
    "address2": "151 Turcotte Unions Apt. 095\nNew Gwen, CO 23012-6165",
    "city": "South Sherman",
    "postal_code": "57397",
    "state": "ARCHITECTO",
    "parcel_locker_code": "T3434PM4",
    "pin_code": "906747",
    "created_at": "2026-08-28T14:46:47.000000Z",
    "updated_at": "2026-08-28T14:46:47.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user trainings",
    "code": "TRAININGS:REWARD_SAVE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Reward details already exists):


{
    "message": "Reward details already exists",
    "code": "TRAININGS:REWARD_SAVE:ALREADY_EXISTS"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:REWARD_SAVE:TRAINING_NOT_FOUND"
}
 

Request   

POST api/trainings/{trainingId}/reward

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trainingId   integer   

Training ID. Example: 1

Body Parameters

type   string   

Reward type. Example: digital

Must be one of:
  • digital
  • physical
country   string   

Country code. SIZE:STRING_LENGTH:2. Example: IE

Must be one of:
  • AF
  • AX
  • AL
  • DZ
  • AS
  • AD
  • AO
  • AI
  • AQ
  • AG
  • AR
  • AM
  • AW
  • AU
  • AT
  • AZ
  • BS
  • BH
  • BD
  • BB
  • BY
  • BE
  • BZ
  • BJ
  • BM
  • BT
  • BO
  • BQ
  • BA
  • BW
  • BV
  • BR
  • IO
  • BN
  • BG
  • BF
  • BI
  • CV
  • KH
  • CM
  • CA
  • KY
  • CF
  • TD
  • CL
  • CN
  • CX
  • CC
  • CO
  • KM
  • CD
  • CG
  • CK
  • CR
  • CI
  • HR
  • CU
  • CW
  • CY
  • CZ
  • DK
  • DJ
  • DM
  • DO
  • EC
  • EG
  • SV
  • GQ
  • ER
  • EE
  • SZ
  • ET
  • FK
  • FO
  • FJ
  • FI
  • FR
  • GF
  • PF
  • TF
  • GA
  • GM
  • GE
  • DE
  • GH
  • GI
  • GR
  • GL
  • GD
  • GP
  • GU
  • GT
  • GG
  • GN
  • GW
  • GY
  • HT
  • HM
  • VA
  • HN
  • HK
  • HU
  • IS
  • IN
  • ID
  • IR
  • IQ
  • IE
  • IM
  • IL
  • IT
  • JM
  • JP
  • JE
  • JO
  • KZ
  • KE
  • KI
  • KP
  • KR
  • KW
  • KG
  • LA
  • LV
  • LB
  • LS
  • LR
  • LY
  • LI
  • LT
  • LU
  • MO
  • MG
  • MW
  • MY
  • MV
  • ML
  • MT
  • MH
  • MQ
  • MR
  • MU
  • YT
  • MX
  • FM
  • MD
  • MC
  • MN
  • ME
  • MS
  • MA
  • MZ
  • MM
  • NA
  • NR
  • NP
  • NL
  • NC
  • NZ
  • NI
  • NE
  • NG
  • NU
  • NF
  • MK
  • MP
  • NO
  • OM
  • PK
  • PW
  • PS
  • PA
  • PG
  • PY
  • PE
  • PH
  • PN
  • PL
  • PT
  • PR
  • QA
  • RE
  • RO
  • RU
  • RW
  • BL
  • SH
  • KN
  • LC
  • MF
  • PM
  • VC
  • WS
  • SM
  • ST
  • SA
  • SN
  • RS
  • SC
  • SL
  • SG
  • SX
  • SK
  • SI
  • SB
  • SO
  • ZA
  • GS
  • SS
  • ES
  • LK
  • SD
  • SR
  • SJ
  • SE
  • CH
  • SY
  • TW
  • TJ
  • TZ
  • TH
  • TL
  • TG
  • TK
  • TO
  • TT
  • TN
  • TR
  • TM
  • TC
  • TV
  • UG
  • UA
  • AE
  • GB
  • UM
  • US
  • UY
  • UZ
  • VU
  • VE
  • VN
  • VG
  • VI
  • WF
  • EH
  • YE
  • ZM
  • ZW
delivery   string  optional  

Delivery method. Default: home_delivery. Example: ua_nova_poshta_branch_pickup

Must be one of:
  • home_delivery
  • pl_inpost_parcel_locker
  • ua_nova_poshta_branch_pickup
  • ua_nova_poshta_parcel_locker
email   string   

Contact email. MUST_BE_EMAIL. Example: elliott05@olson.com

phone   string   

Contact phone. Example: 386-689-0527

full_name   string   

Full name. Example: Dr. Sonny Barrows

address1   string  optional  

Address line 1. Example: 7202 Benedict Burg

address2   string  optional  

Address line 2. Example: Suite 610

city   string  optional  

City. Example: Lake Cliftonstad

postal_code   string  optional  

Postal code/ZIP code/Postcode. Example: 08874-5746

state   string  optional  

State/Province. Example: CONSEQUATUR

parcel_locker_code   string  optional  

Parcel locker code/Branch pickup number (for: InPost parcel locker, Nova Poshta branch pickup, Nova Poshta parcel locker). Example: HB3MCRPH

pin_code   string  optional  

PIN code (India delivery). Example: 436519

Response

Response Fields

id   integer   

User reward ID.

user_id   integer   

Associated user ID.

training_id   integer   

Associated training ID.

type   string   

Reward type.

Must be one of:
  • digital
  • physical
country   string   

Delivery country code.

delivery   string   

Delivery method.

Must be one of:
  • home_delivery
  • parcel_locker
email   string   

Recipient email.

phone   string   

Recipient phone.

full_name   string   

Recipient full name.

address1   string   

Delivery address line 1.

address2   string   

Delivery address line 2.

city   string   

Delivery city.

postal_code   string   

Delivery postal code.

state   string   

Delivery state.

parcel_locker_code   string   

Parcel locker code.

pin_code   string   

PIN code for delivery.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Get user progress (clinician view)

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/trainings/progress/quibusdam/user/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/trainings/progress/quibusdam/user/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


[
    {
        "number": 1,
        "key": "openClose",
        "status": "completed",
        "status_updated_at": "2026-02-04 11:00:00"
    },
    {
        "number": 2,
        "key": "holdOpen",
        "status": "in_progress",
        "status_updated_at": "2026-02-05 09:00:00"
    },
    {
        "number": 3,
        "key": "changeSignal",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 4,
        "key": "thumbPositioning",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 5,
        "key": "sequentialAndPairingMode",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 6,
        "key": "fingerSpeedTraining",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 7,
        "key": "freezeMode",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 8,
        "key": "coreSkillsTest",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 9,
        "key": "powerSoftGrip",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 10,
        "key": "precisionGrip",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 11,
        "key": "tripodGrip",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 12,
        "key": "keyGrip",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 13,
        "key": "gripSelection",
        "status": "not_started",
        "status_updated_at": null
    },
    {
        "number": 14,
        "key": "finalGripAndControlTest",
        "status": "not_started",
        "status_updated_at": null
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access patient training",
    "code": "TRAININGS:PROGRESS_CLINICIAN:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Training not found):


{
    "message": "Training not found",
    "code": "TRAININGS:PROGRESS_CLINICIAN:TRAINING_NOT_FOUND"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "TRAININGS:PROGRESS_CLINICIAN:USER_NOT_FOUND"
}
 

Request   

GET api/trainings/progress/{trainingId}/user/{userId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trainingId   string   

Example: quibusdam

userId   integer   

User ID. Example: 1

User preferences

API endpoints for user preferences

List user preferences

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/preferences" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/preferences"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


{
    "preference1": "value1",
    "preference2": null,
    "preference3": 1
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user preferences",
    "code": "USERS_PREFERENCES:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/preferences

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get user preference

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/preferences/sidebar_enabled" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/preferences/sidebar_enabled"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 1,
    "user_id": 329,
    "name": "SkyBlue",
    "value": "0",
    "created_at": "2026-08-28T14:46:48.000000Z",
    "updated_at": "2026-08-28T14:46:48.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user preferences",
    "code": "USERS_PREFERENCES:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User preference not found):


{
    "message": "User preference not found",
    "code": "USERS_PREFERENCES:GET:NOT_FOUND"
}
 

Request   

GET api/preferences/{name}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   string   

Preference name. Example: sidebar_enabled

Set user preference

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/preferences" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"sidebar_enabled\",
    \"value\": \"1\"
}"
const url = new URL(
    "http://localhost:8000/api/preferences"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "sidebar_enabled",
    "value": "1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 2,
    "user_id": 330,
    "name": "Sienna",
    "value": "1",
    "created_at": "2026-08-28T14:46:48.000000Z",
    "updated_at": "2026-08-28T14:46:48.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to manage user preferences",
    "code": "USERS_PREFERENCES:SET:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/preferences

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Preference name. Example: sidebar_enabled

value   string   

Preference value. Example: 1

Users

API endpoints for user management

Get users list

requires authentication

Possible extend options:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/users?search=Tom&active=-1&clinician[]=6&roles=Clinician%2CAmputee&has_devices=1&user_toggles=goals%2Ctrainings" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/users"
);

const params = {
    "search": "Tom",
    "active": "-1",
    "clinician[0]": "6",
    "roles": "Clinician,Amputee",
    "has_devices": "1",
    "user_toggles": "goals,trainings",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 7,
            "mrn": "3CUAS5KP1787928262",
            "name": "Petra Toy",
            "email": "1787928262kuhlman.glennie@example.net",
            "language": "en",
            "phone": "(228) 985-6455",
            "phone_country": "CO",
            "phone_verified_at": null,
            "address1": "7613 Bogan Station Apt. 010",
            "address2": "Lake Howell, IN 81056-2263",
            "postal_code": "83590",
            "city": "Torphy Ltd",
            "country": "CZ",
            "clinic_name": "Christiansenport",
            "clinic_location": "49228 Johnston Parkways Suite 180\nAliviaport, ID 75130-4222",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:44:22.000000Z",
            "updated_at": "2026-08-28T14:44:22.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": null,
            "clinicians": [
                {
                    "id": 8,
                    "mrn": "98A9VHJ31787928262",
                    "name": "Hyman Price",
                    "email": "1787928262jazlyn05@example.org",
                    "language": "en",
                    "phone": "+16308255274",
                    "phone_country": "SZ",
                    "phone_verified_at": null,
                    "address1": "37697 Gislason Forest",
                    "address2": "Wandaport, AR 41173-1203",
                    "postal_code": "77973-2078",
                    "city": "Daniel, Schroeder and Brekke",
                    "country": "US",
                    "clinic_name": "East Magnuschester",
                    "clinic_location": "5348 Ramona Stravenue Apt. 261\nParkerland, DE 49219",
                    "image": null,
                    "public_image": null,
                    "mfa_enabled": 0,
                    "mfa_method": null,
                    "mfa_verified_to": null,
                    "location_id": null,
                    "created_by": null,
                    "active": 1,
                    "is_internal": 0,
                    "is_ambassador": 0,
                    "notifications_timezone": null,
                    "notifications_at": null,
                    "created_at": "2026-08-28T14:44:23.000000Z",
                    "updated_at": "2026-08-28T14:44:23.000000Z",
                    "invitation_status": null,
                    "acadle_invitation_status": null,
                    "pivot": {
                        "user_id": 7,
                        "assigned_user_id": 8
                    },
                    "roles": []
                }
            ],
            "devices": [
                {
                    "id": 1,
                    "serial": "612ff1b6-6d6c-3a2f-84c6-eacacdcffe7a",
                    "bluetooth_id": "422b430b-f698-33f6-9466-4b74d7e1167b",
                    "company_id": null,
                    "model_id": null,
                    "amputee_id": 7,
                    "clinician_id": null,
                    "firmware_version_id": null,
                    "pcb_version_id": null,
                    "reverse_magnets": 0,
                    "is_electrode": 0,
                    "active": 1,
                    "last_activity_at": "0000-00-00 00:00:00",
                    "first_connected_at": null,
                    "measurements": null,
                    "created_at": "2026-08-28T14:44:23.000000Z",
                    "updated_at": "2026-08-28T14:44:23.000000Z",
                    "first_config_change_at": null
                }
            ],
            "roles": [
                {
                    "id": 1,
                    "name": "SuperAdmin"
                }
            ]
        },
        {
            "id": 9,
            "mrn": "EYSAXAF61787928263",
            "name": "Boyd Murazik",
            "email": "1787928263estelle97@example.org",
            "language": "en",
            "phone": "+1-973-486-2551",
            "phone_country": "PE",
            "phone_verified_at": null,
            "address1": "94127 Prohaska Trafficway",
            "address2": "Lake Roberto, WY 31087",
            "postal_code": "50586-0750",
            "city": "Schultz, McGlynn and Reinger",
            "country": "NO",
            "clinic_name": "Chesterhaven",
            "clinic_location": "3927 Wisozk Point\nNew Narcisochester, LA 56553",
            "image": null,
            "public_image": null,
            "mfa_enabled": 0,
            "mfa_method": null,
            "mfa_verified_to": null,
            "location_id": null,
            "created_by": null,
            "active": 1,
            "is_internal": 0,
            "is_ambassador": 0,
            "notifications_timezone": null,
            "notifications_at": null,
            "created_at": "2026-08-28T14:44:23.000000Z",
            "updated_at": "2026-08-28T14:44:23.000000Z",
            "invitation_status": null,
            "acadle_invitation_status": "accepted",
            "clinicians": [
                {
                    "id": 10,
                    "mrn": "GMJS265Y1787928263",
                    "name": "Mrs. Jayne Hermiston PhD",
                    "email": "1787928263wehner.rupert@example.net",
                    "language": "en",
                    "phone": "+1 (817) 370-2664",
                    "phone_country": "TT",
                    "phone_verified_at": null,
                    "address1": "1026 Rosalia Course Suite 888",
                    "address2": "Port Derick, WI 09032",
                    "postal_code": "22734-9397",
                    "city": "Leannon PLC",
                    "country": "FI",
                    "clinic_name": "Lake Corene",
                    "clinic_location": "7229 McGlynn Springs\nSouth Lizzie, FL 69555-1636",
                    "image": null,
                    "public_image": null,
                    "mfa_enabled": 0,
                    "mfa_method": null,
                    "mfa_verified_to": null,
                    "location_id": null,
                    "created_by": null,
                    "active": 1,
                    "is_internal": 0,
                    "is_ambassador": 0,
                    "notifications_timezone": null,
                    "notifications_at": null,
                    "created_at": "2026-08-28T14:44:23.000000Z",
                    "updated_at": "2026-08-28T14:44:23.000000Z",
                    "invitation_status": null,
                    "acadle_invitation_status": null,
                    "pivot": {
                        "user_id": 9,
                        "assigned_user_id": 10
                    },
                    "roles": []
                }
            ],
            "devices": [
                {
                    "id": 2,
                    "serial": "43df81c0-9d36-37c9-9658-e23322877611",
                    "bluetooth_id": "3d42956e-fcc2-32bd-ac2a-3b97d1ba72a5",
                    "company_id": null,
                    "model_id": null,
                    "amputee_id": 9,
                    "clinician_id": null,
                    "firmware_version_id": null,
                    "pcb_version_id": null,
                    "reverse_magnets": 0,
                    "is_electrode": 0,
                    "active": 1,
                    "last_activity_at": "0000-00-00 00:00:00",
                    "first_connected_at": null,
                    "measurements": null,
                    "created_at": "2026-08-28T14:44:24.000000Z",
                    "updated_at": "2026-08-28T14:44:24.000000Z",
                    "first_config_change_at": null
                }
            ],
            "roles": [
                {
                    "id": 7,
                    "name": "AcadleUser"
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view user list",
    "code": "USERS:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/users

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Filter users by name. For SuperAdmin role it filters by UUID. Example: Tom

active   integer  optional  

Filter users by active status (available: 0 - only inactive, 1 - only active, -1 - all users). Default: 1. Example: -1

clinician   integer[]  optional  

Filter users by clinician. Provide single ID (clinician=1), array of IDs (clinician[]=1&clinician[]=2) or comma-separated list of IDs (clinician=1,2).

roles   string  optional  

Filter users by roles (comma-separated). Example: Clinician,Amputee

has_devices   integer  optional  

Filter users who has at least one device assigned. Example: 1

user_toggles   string  optional  

Filter users by their user-specific product toggles (comma-separated). Example: goals,trainings

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: clinicians, patients, devices, devices.model, devicesAsClinician, devicesAsClinician.model, roles, permissions, userToggles).

sortby   string  optional  

Sort by field (available: user_mrn, user_name, role_name, date). Default: date, desc.

sortdir   string  optional  

Sort direction (available: asc, desc).

Response

Response Fields

items   object   
id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Get current user data

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/me" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/me"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 11,
    "mrn": "K85G4M5S1787928264",
    "name": "Prof. Woodrow Beatty III",
    "email": "1787928264eloise.fritsch@example.net",
    "language": "en",
    "phone": "(878) 435-4954",
    "phone_country": "PA",
    "phone_verified_at": null,
    "address1": "7813 Gutmann Plains",
    "address2": "Lake Frederick, NM 26889-7765",
    "postal_code": "65678-3373",
    "city": "Erdman, Bode and Wisozk",
    "country": "HR",
    "clinic_name": "East Darylside",
    "clinic_location": "19051 Lenna Harbor\nClotildeland, MA 91869-9815",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:24.000000Z",
    "updated_at": "2026-08-28T14:44:24.000000Z",
    "invitation_status": null,
    "acadle_invitation_status": null,
    "roles": [
        {
            "id": 2,
            "name": "CommunityAdmin"
        }
    ]
}
 

Request   

GET api/me

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: clinicians, patients, devices, devicesAsClinician, roles, permissions).

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Get other user data

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/user/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "id": 12,
    "mrn": "24M3HBUP1787928264",
    "name": "Prof. Skylar Kerluke",
    "email": "1787928264marcelino04@example.net",
    "language": "en",
    "phone": "(732) 956-5457",
    "phone_country": "SX",
    "phone_verified_at": null,
    "address1": "5260 Windler Viaduct",
    "address2": "Lake Carlo, AZ 28972-5484",
    "postal_code": "28153-0565",
    "city": "Tremblay, Jaskolski and Lindgren",
    "country": "ES",
    "clinic_name": "Reynoldsview",
    "clinic_location": "4686 Gutmann Forks\nSouth Alyciachester, MN 17425",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:24.000000Z",
    "updated_at": "2026-08-28T14:44:24.000000Z",
    "invitation_status": null,
    "acadle_invitation_status": null,
    "roles": [
        {
            "id": 2,
            "name": "CommunityAdmin"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view user data",
    "code": "USERS:GET:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:GET:USER_NOT_FOUND"
}
 

Request   

GET api/user/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: clinicians, patients, devices, devicesAsClinician, roles, permissions).

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Create new user account

requires authentication

Predefined permissions:

Example request:
curl --request POST \
    "http://localhost:8000/api/user" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "mrn=MRN12345678"\
    --form "name=Tom Smith"\
    --form "email=test@example.com"\
    --form "language=en"\
    --form "address1=68708 Welch Stream"\
    --form "address2=North Pink, LA 14138-4556"\
    --form "postal_code=30682"\
    --form "city=West Constantinmouth"\
    --form "country=CZ"\
    --form "clinic_name=Aether"\
    --form "clinic_location=68708 Welch Stream"\
    --form "mfa_enabled=1"\
    --form "mfa_method=email"\
    --form "is_internal="\
    --form "is_ambassador="\
    --form "clinicians[]=2"\
    --form "notifications_timezone=Europe/Warsaw"\
    --form "notifications_at=8:00"\
    --form "role=Amputee"\
    --form "image=@/tmp/php9i26np" \
    --form "public_image=@/tmp/phpN14JJh" 
const url = new URL(
    "http://localhost:8000/api/user"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('mrn', 'MRN12345678');
body.append('name', 'Tom Smith');
body.append('email', 'test@example.com');
body.append('language', 'en');
body.append('address1', '68708 Welch Stream');
body.append('address2', 'North Pink, LA 14138-4556');
body.append('postal_code', '30682');
body.append('city', 'West Constantinmouth');
body.append('country', 'CZ');
body.append('clinic_name', 'Aether');
body.append('clinic_location', '68708 Welch Stream');
body.append('mfa_enabled', '1');
body.append('mfa_method', 'email');
body.append('is_internal', '');
body.append('is_ambassador', '');
body.append('clinicians[]', '2');
body.append('notifications_timezone', 'Europe/Warsaw');
body.append('notifications_at', '8:00');
body.append('role', 'Amputee');
body.append('image', document.querySelector('input[name="image"]').files[0]);
body.append('public_image', document.querySelector('input[name="public_image"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "id": 13,
    "mrn": "UUHR8NMG1787928265",
    "name": "Prof. Dario Hauck",
    "email": "1787928265matilda64@example.com",
    "language": "en",
    "phone": "+1 (620) 565-3394",
    "phone_country": "GE",
    "phone_verified_at": null,
    "address1": "120 Kunde Road",
    "address2": "Judeside, MO 57255",
    "postal_code": "98011",
    "city": "Stehr Ltd",
    "country": "PL",
    "clinic_name": "Veumburgh",
    "clinic_location": "12470 VonRueden Plains\nShannonland, WI 76878-0686",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:25.000000Z",
    "updated_at": "2026-08-28T14:44:25.000000Z",
    "invitation_status": null,
    "acadle_invitation_status": null,
    "roles": [
        {
            "id": 2,
            "name": "CommunityAdmin"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create user with given role",
    "code": "USERS:CREATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, E-mail in use (in another region)):


{
    "message": "E-mail address already in use (in another region)",
    "code": "USERS:CREATE:EMAIL_IN_USE"
}
 

Request   

POST api/user

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

mrn   string  optional  

Medical Record Number. Example: MRN12345678

name   string  optional  

User full name. Example: Tom Smith

email   string   

User email. MUST_BE_EMAIL. Example: test@example.com

language   string  optional  

User language. Example: en

address1   string  optional  

Address line 1. MAXIMUM:STRING_LENGTH:100. Example: 68708 Welch Stream

address2   string  optional  

Address line 2. MAXIMUM:STRING_LENGTH:100. Example: North Pink, LA 14138-4556

postal_code   string  optional  

Postal code. MAXIMUM:STRING_LENGTH:100. Example: 30682

city   string  optional  

City. MAXIMUM:STRING_LENGTH:100. Example: West Constantinmouth

country   string  optional  

Country. MAXIMUM:STRING_LENGTH:2. Example: CZ

clinic_name   string  optional  

Clinic name. MAXIMUM:STRING_LENGTH:100. Example: Aether

clinic_location   string  optional  

Clinic location. MAXIMUM:STRING_LENGTH:100. Example: 68708 Welch Stream

image   file  optional  

Attached user image. MUST_BE_IMAGE MAXIMUM:FILE_KB:5120. Example: /tmp/php9i26np

public_image   file  optional  

MUST_BE_IMAGE MAXIMUM:FILE_KB:5120. Example: /tmp/phpN14JJh

mfa_enabled   boolean  optional  

Super Admin only: MFA enabled. Example: true

mfa_method   string  optional  

Super Admin only: MFA method. Example: email

Must be one of:
  • email
  • sms
is_internal   boolean  optional  

Mark user as internal (QA/ADP team). Example: false

is_ambassador   boolean  optional  

Mark user as a Community ambassador. Example: false

clinicians   string[]  optional  

Clinician ID. The id of an existing record in the App\Models\User table.

notifications_timezone   string  optional  

User notifications timezone. Example: Europe/Warsaw

notifications_at   string  optional  

Time when notifications and reminders should be sent. Format: HH:MM. Set null to notify at default time. Must be a valid date in the format H:i. Example: 8:00

role   string   

Role name. One of: SuperAdmin, CommunityAdmin, ClinicAdmin, Clinician, ClinicianSupport, Amputee. Example: Amputee

Must be one of:
  • Amputee
  • ClinicianSupport
  • Clinician
  • ClinicAdmin
  • CommunityAdmin
  • SuperAdmin
  • AcadleUser
permissions   object  optional  

List of permissions given to this user. For now, it is used for ClinicianSupport role to give access to specific actions (for example user.update means that user can update users). You can assign both predefined permissions (already checked by some endpoints) and custom permissions (check them on your own). You can also use wildcards like user.* to give access to all actions for given scope.

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Update user account

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/user/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "mrn=MRN12345678"\
    --form "name=Tom Smith"\
    --form "email=test@example.com"\
    --form "language=en"\
    --form "address1=263 Santino Groves Suite 443"\
    --form "address2=North Deanfurt, MA 46395-7115"\
    --form "postal_code=34182-0433"\
    --form "city=Marciaborough"\
    --form "country=LU"\
    --form "clinic_name=Aether"\
    --form "clinic_location=263 Santino Groves Suite 443"\
    --form "image_delete=1"\
    --form "mfa_enabled=1"\
    --form "mfa_method=email"\
    --form "active=1"\
    --form "is_internal="\
    --form "is_ambassador="\
    --form "clinicians[]=2"\
    --form "notifications_timezone=Europe/Warsaw"\
    --form "notifications_at=8:00"\
    --form "role=Amputee"\
    --form "image=@/tmp/phpwsDeC2" \
    --form "public_image=@/tmp/phpnOkSMt" 
const url = new URL(
    "http://localhost:8000/api/user/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('mrn', 'MRN12345678');
body.append('name', 'Tom Smith');
body.append('email', 'test@example.com');
body.append('language', 'en');
body.append('address1', '263 Santino Groves Suite 443');
body.append('address2', 'North Deanfurt, MA 46395-7115');
body.append('postal_code', '34182-0433');
body.append('city', 'Marciaborough');
body.append('country', 'LU');
body.append('clinic_name', 'Aether');
body.append('clinic_location', '263 Santino Groves Suite 443');
body.append('image_delete', '1');
body.append('mfa_enabled', '1');
body.append('mfa_method', 'email');
body.append('active', '1');
body.append('is_internal', '');
body.append('is_ambassador', '');
body.append('clinicians[]', '2');
body.append('notifications_timezone', 'Europe/Warsaw');
body.append('notifications_at', '8:00');
body.append('role', 'Amputee');
body.append('image', document.querySelector('input[name="image"]').files[0]);
body.append('public_image', document.querySelector('input[name="public_image"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());

Example response (202):


{
    "id": 14,
    "mrn": "9BBJH4CL1787928265",
    "name": "Mrs. Mattie Ritchie",
    "email": "1787928265vjenkins@example.org",
    "language": "en",
    "phone": "325-831-7134",
    "phone_country": "BE",
    "phone_verified_at": null,
    "address1": "78675 Hilpert Ports",
    "address2": "North Lela, MD 01017-6253",
    "postal_code": "42875",
    "city": "Marvin-Leannon",
    "country": "IE",
    "clinic_name": "Bradtkehaven",
    "clinic_location": "107 Jaylan Hill\nWest Jose, DE 93175",
    "image": null,
    "public_image": null,
    "mfa_enabled": 0,
    "mfa_method": null,
    "mfa_verified_to": null,
    "location_id": null,
    "created_by": null,
    "active": 1,
    "is_internal": 0,
    "is_ambassador": 0,
    "notifications_timezone": null,
    "notifications_at": null,
    "created_at": "2026-08-28T14:44:25.000000Z",
    "updated_at": "2026-08-28T14:44:25.000000Z",
    "invitation_status": "accepted",
    "acadle_invitation_status": null,
    "roles": [
        {
            "id": 4,
            "name": "Clinician"
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update user data",
    "code": "USERS:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Insufficient permission to assign role):


{
    "message": "Insufficient permission to assign this role as ClinicAdmin",
    "code": "USERS:UPDATE:INSUFFICIENT_PERMISSION_ASSIGN_ROLE"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:UPDATE:USER_NOT_FOUND"
}
 

Request   

PUT api/user/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Body Parameters

mrn   string  optional  

Medical Record Number. Example: MRN12345678

name   string  optional  

User full name. Example: Tom Smith

email   string  optional  

User email. MUST_BE_EMAIL. Example: test@example.com

language   string  optional  

User language. Example: en

address1   string  optional  

Address line 1. MAXIMUM:STRING_LENGTH:100. Example: 263 Santino Groves Suite 443

address2   string  optional  

Address line 2. MAXIMUM:STRING_LENGTH:100. Example: North Deanfurt, MA 46395-7115

postal_code   string  optional  

Postal code. MAXIMUM:STRING_LENGTH:100. Example: 34182-0433

city   string  optional  

City. MAXIMUM:STRING_LENGTH:100. Example: Marciaborough

country   string  optional  

Country. MAXIMUM:STRING_LENGTH:2. Example: LU

clinic_name   string  optional  

Clinic name. MAXIMUM:STRING_LENGTH:100. Example: Aether

clinic_location   string  optional  

Clinic location. MAXIMUM:STRING_LENGTH:100. Example: 263 Santino Groves Suite 443

image   file  optional  

Attached user image. MUST_BE_IMAGE MAXIMUM:FILE_KB:5120. Example: /tmp/phpwsDeC2

image_delete   boolean  optional  

Send this parameter instead of image to remove previously added image. Example: true

public_image   file  optional  

MUST_BE_IMAGE MAXIMUM:FILE_KB:5120. Example: /tmp/phpnOkSMt

mfa_enabled   boolean  optional  

Super Admin only: MFA enabled. Example: true

mfa_method   string  optional  

Super Admin only: MFA method. Example: email

Must be one of:
  • email
  • sms
active   boolean  optional  

User active status (0 - inactive, 1 - active). Example: true

is_internal   boolean  optional  

Mark user as internal (QA/ADP team). Example: false

is_ambassador   boolean  optional  

Mark user as a Community ambassador. Example: false

clinicians   string[]  optional  

Clinician ID. The id of an existing record in the App\Models\User table.

notifications_timezone   string  optional  

User notifications timezone. Example: Europe/Warsaw

notifications_at   string  optional  

Time when notifications and reminders should be sent. Format: HH:MM. Set null to notify at default time. Must be a valid date in the format H:i. Example: 8:00

role   string  optional  

Role name. One of: SuperAdmin, CommunityAdmin, ClinicAdmin, Clinician, ClinicianSupport, Amputee. Example: Amputee

Must be one of:
  • Amputee
  • ClinicianSupport
  • Clinician
  • ClinicAdmin
  • CommunityAdmin
  • SuperAdmin
  • AcadleUser
permissions   object  optional  

List of permissions given to this user. For now, it is used for ClinicianSupport role to give access to specific actions (for example user.update means that user can update users). You can assign both predefined permissions (already checked by some endpoints) and custom permissions (check them on your own). You can also use wildcards like user.* to give access to all actions for given scope.

Response

Response Fields

id   integer   

User ID.

mrn   string   

Medical Record Number.

name   string   

User full name.

email   string   

User email address.

language   string   

User preferred language.

phone   string   

User phone number.

phone_country   string   

Phone country code.

phone_verified_at   string   

Phone verification date.

address1   string   

Address line 1.

address2   string   

Address line 2.

postal_code   string   

Postal code.

city   string   

City.

country   string   

Country code (ISO 3166 Alpha-2).

clinic_name   string   

Clinic name.

clinic_location   string   

Clinic location.

image   string   

User profile image URL.

mfa_enabled   boolean   

Whether MFA is enabled.

mfa_method   string   

Preferred MFA method.

mfa_verified_to   string   

MFA session verified until.

location_id   integer   

Location ID.

created_by   integer   

ID of the user who created this account.

active   boolean   

Whether the user account is active.

is_internal   boolean   

Whether the user is an internal user.

notifications_timezone   string   

Timezone for notifications.

notifications_at   string   

Preferred notification time.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

invitation_status   string   

User invitation status.

acadle_invitation_status   string   

Acadle invitation status.

roles   object[]   

User roles.

id   integer   

Role ID.

name   string   

Role name.

permissions   object[]   

User permissions.

clinicians   object[]   

Assigned clinicians.

devices   object[]   

Assigned devices.

patients   object[]   

Assigned patients.

invitations   object[]   

User invitations.

Update user phone number

requires authentication

Phone number has to be verified after update. Call /api/mfa/phone/verify with user-filled code after performing this operation. If value is "0" phone number will be removed without any verification.

Example request:
curl --request POST \
    "http://localhost:8000/api/user/1/phone" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"phone\": \"+1 (208) 892-0242\",
    \"phone_country\": \"US\"
}"
const url = new URL(
    "http://localhost:8000/api/user/1/phone"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "phone": "+1 (208) 892-0242",
    "phone_country": "US"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Phone number removed):


{
    "message": "Phone number removed",
    "code": "USERS:SET_PHONE:REMOVED"
}
 

Example response (200, Phone number updated):


{
    "message": "Verification code sent. Call /api/mfa/phone/verify to verify phone number.",
    "code": "USERS:SET_PHONE:UPDATED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update user data",
    "code": "USERS:SET_PHONE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:SET_PHONE:USER_NOT_FOUND"
}
 

Example response (500, Code send failed):


{
    "message": "Verification code sending failed",
    "code": "USERS:SET_PHONE:SEND_FAILED"
}
 

Request   

POST api/user/{id}/phone

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Body Parameters

phone   string  optional  

User phone number. Pass "0" to remove current one. Example: +1 (208) 892-0242

phone_country   string  optional  

Phone number's country (2 characters). SIZE:STRING_LENGTH:2. Example: US

Delete user account

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/user/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "User deleted",
    "code": "USERS:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete user",
    "code": "USERS:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, User has existing patients or chat rooms):


{
    "message": "Cannot delete: user has existing patients or chat rooms (patients: 1, chat rooms: 0)",
    "code": "USERS:DELETE:HAS_PATIENTS"
}
 

Example response (403, User has existing devices):


{
    "message": "Cannot delete: user has existing devices (as patient: 1, as clinician: 0)",
    "code": "USERS:DELETE:HAS_DEVICES"
}
 

Example response (403, User has open P2P sessions):


{
    "message": "Cannot delete: user has open P2P sessions (as patient: 0, as clinician: 1)",
    "code": "USERS:DELETE:HAS_P2P_SESSIONS"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:DELETE:USER_NOT_FOUND"
}
 

Example response (500, Server error):


{
    "message": "Server error: user not deleted",
    "code": "USERS:DELETE:SERVER_ERROR"
}
 

Request   

DELETE api/user/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Delete own user account

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/user" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"password\"
}"
const url = new URL(
    "http://localhost:8000/api/user"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "password": "password"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202, OK):


{
    "message": "User deleted",
    "code": "USERS:SELF_DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete user",
    "code": "USERS:SELF_DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (422, Invalid password):


{
    "message": "Invalid password",
    "code": "USERS:SELF_DELETE:INVALID_PASSWORD"
}
 

Example response (500, Server error):


{
    "message": "Server error: user not deleted",
    "code": "USERS:SELF_DELETE:SERVER_ERROR"
}
 

Request   

DELETE api/user

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

password   string   

User account password. Example: password

Change other user password

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/user/1/password" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"omnis\"
}"
const url = new URL(
    "http://localhost:8000/api/user/1/password"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "password": "omnis"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202, OK):


{
    "message": "User password changed",
    "code": "USERS:PASSWORD_CHANGE:CHANGED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to change user password",
    "code": "USERS:PASSWORD_CHANGE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:PASSWORD_CHANGE:USER_NOT_FOUND"
}
 

Request   

POST api/user/{id}/password

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Body Parameters

password   string   

Example: omnis

Get user devices list

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/user/1/devices" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/devices"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 3,
            "serial": "1c46a8e1-e69f-3306-bb4e-f75630e37b1b",
            "bluetooth_id": "b29c6f6a-d7a5-3cee-97d7-b3860c86d680",
            "company_id": null,
            "model_id": 1,
            "amputee_id": null,
            "clinician_id": null,
            "firmware_version_id": null,
            "pcb_version_id": null,
            "reverse_magnets": 0,
            "is_electrode": 0,
            "active": 1,
            "last_activity_at": "0000-00-00 00:00:00",
            "first_connected_at": null,
            "measurements": null,
            "created_at": "2026-08-28T14:44:26.000000Z",
            "updated_at": "2026-08-28T14:44:26.000000Z",
            "first_config_change_at": null,
            "model": {
                "id": 1,
                "name": "Zeus hand v1",
                "type": "leg",
                "orientation": "left",
                "active": 1,
                "created_at": "2026-08-28T14:44:26.000000Z",
                "updated_at": "2026-08-28T14:44:26.000000Z"
            }
        },
        {
            "id": 4,
            "serial": "d8eb237a-98de-3394-ae5b-cd498f27fd27",
            "bluetooth_id": "a271fccc-a36c-3d7a-9050-7092343b0a0c",
            "company_id": null,
            "model_id": 2,
            "amputee_id": null,
            "clinician_id": null,
            "firmware_version_id": null,
            "pcb_version_id": null,
            "reverse_magnets": 0,
            "is_electrode": 0,
            "active": 1,
            "last_activity_at": "0000-00-00 00:00:00",
            "first_connected_at": null,
            "measurements": null,
            "created_at": "2026-08-28T14:44:26.000000Z",
            "updated_at": "2026-08-28T14:44:26.000000Z",
            "first_config_change_at": null,
            "model": {
                "id": 2,
                "name": "Zeus hand v1",
                "type": "leg",
                "orientation": "right",
                "active": 1,
                "created_at": "2026-08-28T14:44:26.000000Z",
                "updated_at": "2026-08-28T14:44:26.000000Z"
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to view user devices",
    "code": "USERS:DEVICES:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:DEVICES:USER_NOT_FOUND"
}
 

Request   

GET api/user/{id}/devices

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Query Parameters

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: model, firmwareVersion, pcbVersion, joinedDevices, joinedElectrodes).

Response

Response Fields

items   object   
id   integer   

Device ID.

serial   string   

Device serial number.

bluetooth_id   string   

Bluetooth identifier.

model_id   integer   

Device model ID.

amputee_id   integer   

Assigned patient (amputee) user ID.

firmware_version_id   integer   

Firmware version ID.

pcb_version_id   integer   

PCB version ID.

company_id   integer   

Company ID.

reverse_magnets   boolean   

Whether magnets are reversed.

is_electrode   boolean   

Whether this device is an electrode.

active   boolean   

Whether the device is active.

last_activity_at   string   

Last activity timestamp.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

model   object   

Device model details.

id   integer   

Device model ID.

name   string   

Model name.

type   string   

Model type.

orientation   string   

Model orientation.

active   boolean   

Whether the model is active.

amputee   object   

Assigned patient (amputee) user.

id   integer   

User ID.

name   string   

User full name.

email   string   

User email address.

clinicians   object[]   

Clinicians assigned to this device.

firmwareVersion   object   

Firmware version details.

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

pcbVersion   object   

PCB version details.

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

joinedDevices   object[]   

Joined hand devices.

joinedElectrodes   object[]   

Joined electrode devices.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Attach patient to clinician

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/user/attach" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"name@domain.com\"
}"
const url = new URL(
    "http://localhost:8000/api/user/attach"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "name@domain.com"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Patient attached",
    "code": "USERS:ATTACH:ATTACHED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to attach patients",
    "code": "USERS:ATTACH:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Patient is already assigned to another clinician):


{
    "message": "Patient is already assigned to another clinician",
    "code": "USERS:ATTACH:ALREADY_ASSIGNED"
}
 

Example response (403, User reached the temporary limit of attached devices):


{
    "message": "Reached the limit of assigned devices",
    "code": "USERS:ATTACH:LIMIT_REACHED"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:ATTACH:USER_NOT_FOUND"
}
 

Request   

POST api/user/attach

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

User e-mail address. MUST_BE_EMAIL. Example: name@domain.com

Detach patient from clinician

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/user/1/detach" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/detach"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Patient detached",
    "code": "USERS:DETACH:DETACHED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to detach patient",
    "code": "USERS:DETACH:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Cannot detach last clinician):


{
    "message": "Cannot detach patient's last clinician",
    "code": "USERS:DETACH:CANNOT_DETACH_LAST_CLINICIAN"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:DETACH:USER_NOT_FOUND"
}
 

Request   

POST api/user/{id}/detach

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Admin access to MFA codes

requires authentication

Requires admin.mfa_access permission.

Example request:
curl --request GET \
    --get "http://localhost:8000/api/user/1/mfa-codes" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/user/1/mfa-codes"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, OK):


[
    {
        "id": 1,
        "user_id": 1,
        "code": "123456",
        "channel": "email",
        "expires": "2025-05-09 12:00:00"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access MFA codes",
    "code": "USERS:ADMIN_MFA_ACCESS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:ADMIN_MFA_ACCESS:USER_NOT_FOUND"
}
 

Request   

GET api/user/{id}/mfa-codes

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Export clinician devices

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/clinician-devices/csv" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/clinician-devices/csv"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200, CSV file):


{
    "file": "https://staging-us-east-2-aether-biomedical-s3-us-bucket.s3.us-east-2.amazonaws.com/clinicians/clinicians-devices-1759228216.csv",
    "expires": "2026-07-02 10:40:00"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to export clinician devices",
    "code": "USERS:EXPORT_CLINICIAN_DEVICES:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/clinician-devices/csv

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Get user mobile consents

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/consents" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/consents"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "user_id": 34,
        "name": "asperiores",
        "value": "provident",
        "created_at": "2000-09-20T15:30:12.000000Z",
        "updated_at": "1974-03-03T20:50:00.000000Z"
    },
    {
        "id": 2,
        "user_id": 35,
        "name": "recusandae",
        "value": "hic",
        "created_at": "1997-10-16T03:47:08.000000Z",
        "updated_at": "1976-04-23T04:45:18.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to use mobile consents",
    "code": "USERS:GET_MOBILE_CONSENTS:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/consents

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

id   integer   

Consent record ID.

user_id   integer   

Associated user ID.

name   string   

Consent name/key.

value   string   

Consent value.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Set user mobile consent

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/consents" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Push notifications\",
    \"value\": 1
}"
const url = new URL(
    "http://localhost:8000/api/consents"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Push notifications",
    "value": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


[
    {
        "id": 3,
        "user_id": 36,
        "name": "id",
        "value": "omnis",
        "created_at": "1978-08-07T15:55:09.000000Z",
        "updated_at": "2004-06-07T10:50:10.000000Z"
    },
    {
        "id": 4,
        "user_id": 37,
        "name": "est",
        "value": "rerum",
        "created_at": "2026-08-27T06:36:49.000000Z",
        "updated_at": "2008-05-01T20:07:53.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to use mobile consents",
    "code": "USERS:SET_MOBILE_CONSENTS:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/consents

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Consent name. Example: Push notifications

value   string   

Consent value. Example: 1

Response

Response Fields

id   integer   

Consent record ID.

user_id   integer   

Associated user ID.

name   string   

Consent name/key.

value   string   

Consent value.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Clear user notifications

requires authentication

Clearing notifications allow to receive another notification on same day. This endpoint deletes notifications of type:

    This endpoint is intended for testing use only.
Example request:
curl --request DELETE \
    "http://localhost:8000/api/notifications/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/notifications/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "messages": "1 notifications deleted",
    "code": "USERS:CLEAR_NOTIFICATIONS:CLEARED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update user data",
    "code": "USERS:CLEAR_NOTIFICATIONS:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "USERS:CLEAR_NOTIFICATIONS:USER_NOT_FOUND"
}
 

Request   

DELETE api/notifications/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Versions

API endpoints for versions management

Get software versions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/versions/software" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/software"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "name": "7.15.90",
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    },
    {
        "id": 2,
        "name": "0.85.13",
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list versions",
    "code": "SOFTWARE_VERSION:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/versions/software

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Response

Response Fields

id   integer   

Software version ID.

name   string   

Version name.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Create software version

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/versions/software" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"1.0\"
}"
const url = new URL(
    "http://localhost:8000/api/versions/software"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "1.0"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "name": "5.79.43",
    "created_at": "2026-08-28T14:46:13.000000Z",
    "updated_at": "2026-08-28T14:46:13.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create versions",
    "code": "SOFTWARE_VERSION:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/versions/software

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Name of version. Example: 1.0

Response

Response Fields

id   integer   

Software version ID.

name   string   

Version name.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete software version

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/versions/software/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/software/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Version deleted",
    "code": "SOFTWARE_VERSION:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete versions",
    "code": "SOFTWARE_VERSION:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Version in use (compatibility)):


{
    "message": "Cannot delete: version is used in compatibility entries (1)",
    "code": "SOFTWARE_VERSION:DELETE:VERSION_IN_USE_COMPATIBILITY"
}
 

Example response (404, Version not found):


{
    "message": "Version not found",
    "code": "SOFTWARE_VERSION:DELETE:VERSION_NOT_FOUND"
}
 

Request   

DELETE api/versions/software/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Software Version ID. Example: 1

Get firmware versions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/versions/firmware" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/firmware"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 2,
        "name": "0.57.67",
        "file_firmware": "/tmp/fakerPXdPkU",
        "file_firmware_v2": "/tmp/fakerbYs5nb",
        "file_firmware_v3": "/tmp/fakersYFnr4",
        "file_firmware_v4": "/tmp/fakerwl2PPz",
        "file_firmware_v5": "/tmp/fakeras2uzh",
        "file_firmware_new_pcb": "/tmp/fakeri1dpJF",
        "file_bootloader": "/tmp/faker0V4EMO",
        "file_bootloader_v2": "/tmp/fakerxavVnG",
        "file_bootloader_v3": "/tmp/faker7983iz",
        "file_bootloader_v4": "/tmp/fakerTmf3a8",
        "changelog": "Ipsum vel reiciendis libero. Autem neque ut nihil quia voluptate distinctio vel iure. Quae porro accusantium ipsa tenetur.",
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    },
    {
        "id": 3,
        "name": "5.99.29",
        "file_firmware": "/tmp/fakerpqBLQQ",
        "file_firmware_v2": "/tmp/fakerDTlmfl",
        "file_firmware_v3": "/tmp/fakernuKiGb",
        "file_firmware_v4": "/tmp/fakerc8M8L4",
        "file_firmware_v5": "/tmp/fakerh8HgDT",
        "file_firmware_new_pcb": "/tmp/faker8V7ox9",
        "file_bootloader": "/tmp/faker7NuPfp",
        "file_bootloader_v2": "/tmp/fakerUdAO5y",
        "file_bootloader_v3": "/tmp/fakerKfGuHv",
        "file_bootloader_v4": "/tmp/fakerJtqHZ8",
        "changelog": "Id voluptates qui ad qui aut sit. Aut voluptas atque eos aspernatur unde. Fuga maiores corporis sed itaque quis vel incidunt accusantium. Animi animi quas explicabo tempora aut.",
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list versions",
    "code": "FIRMWARE_VERSION:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/versions/firmware

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: models).

Response

Response Fields

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Create firmware version

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/versions/firmware" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=1.0"\
    --form "models[]=1"\
    --form "changelog[][language]=en"\
    --form "changelog[][changelog]=Fixed bug with the connection"\
    --form "file_firmware=@/tmp/phpKQEmyD" \
    --form "file_firmware_v2=@/tmp/phpgzrBHv" \
    --form "file_firmware_v3=@/tmp/phph749rL" \
    --form "file_firmware_v4=@/tmp/phpHbb4Qh" \
    --form "file_firmware_v5=@/tmp/phpVNCK5D" \
    --form "file_firmware_new_pcb=@/tmp/phpHl146N" \
    --form "file_bootloader=@/tmp/php3ktjm7" \
    --form "file_bootloader_v2=@/tmp/phpjksKId" \
    --form "file_bootloader_v3=@/tmp/phpjzKqx5" \
    --form "file_bootloader_v4=@/tmp/phpPROYcJ" 
const url = new URL(
    "http://localhost:8000/api/versions/firmware"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', '1.0');
body.append('models[]', '1');
body.append('changelog[][language]', 'en');
body.append('changelog[][changelog]', 'Fixed bug with the connection');
body.append('file_firmware', document.querySelector('input[name="file_firmware"]').files[0]);
body.append('file_firmware_v2', document.querySelector('input[name="file_firmware_v2"]').files[0]);
body.append('file_firmware_v3', document.querySelector('input[name="file_firmware_v3"]').files[0]);
body.append('file_firmware_v4', document.querySelector('input[name="file_firmware_v4"]').files[0]);
body.append('file_firmware_v5', document.querySelector('input[name="file_firmware_v5"]').files[0]);
body.append('file_firmware_new_pcb', document.querySelector('input[name="file_firmware_new_pcb"]').files[0]);
body.append('file_bootloader', document.querySelector('input[name="file_bootloader"]').files[0]);
body.append('file_bootloader_v2', document.querySelector('input[name="file_bootloader_v2"]').files[0]);
body.append('file_bootloader_v3', document.querySelector('input[name="file_bootloader_v3"]').files[0]);
body.append('file_bootloader_v4', document.querySelector('input[name="file_bootloader_v4"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "name": "1.59.35",
    "file_firmware": "/tmp/faker8aJOUB",
    "file_firmware_v2": "/tmp/fakerya7nQd",
    "file_firmware_v3": "/tmp/faker3e4O7Z",
    "file_firmware_v4": "/tmp/faker0lH5d2",
    "file_firmware_v5": "/tmp/fakerfQRrV6",
    "file_firmware_new_pcb": "/tmp/fakerwKvs5r",
    "file_bootloader": "/tmp/fakerqX32xo",
    "file_bootloader_v2": "/tmp/fakerKN8CED",
    "file_bootloader_v3": "/tmp/fakerBBSCIR",
    "file_bootloader_v4": "/tmp/faker8IA471",
    "changelog": "Et excepturi sit quasi similique. Aspernatur fugit officia ut voluptates dolorum. Accusantium non doloremque magnam et vero placeat quia error. Perspiciatis tenetur facilis fuga.",
    "created_at": "2026-08-28T14:46:13.000000Z",
    "updated_at": "2026-08-28T14:46:13.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create versions",
    "code": "FIRMWARE_VERSION:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/versions/firmware

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

name   string   

Name of version. Example: 1.0

models   integer[]  optional  

Device Model ID. The id of an existing record in the App\Models\DeviceModel table.

file_firmware   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpKQEmyD

file_firmware_v2   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpgzrBHv

file_firmware_v3   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phph749rL

file_firmware_v4   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpHbb4Qh

file_firmware_v5   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpVNCK5D

file_firmware_new_pcb   file  optional  

Attached firmware for new PCB file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpHl146N

file_bootloader   file  optional  

Attached bootloader file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/php3ktjm7

file_bootloader_v2   file  optional  

Attached bootloader file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpjksKId

file_bootloader_v3   file  optional  

Attached bootloader file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpjzKqx5

file_bootloader_v4   file  optional  

Attached bootloader file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpPROYcJ

changelog   object[]  optional  

List of changelog translations.

language   string  optional  

Changelog language (2 characters code). Example: en

changelog   string  optional  

Changelog for the version. Example: Fixed bug with the connection

Response

Response Fields

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update firmware version

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/versions/firmware/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=1.0"\
    --form "models[]=1"\
    --form "file_firmware_delete=1"\
    --form "file_firmware_v2_delete=1"\
    --form "file_firmware_v3_delete=1"\
    --form "file_firmware_v4_delete=1"\
    --form "file_firmware_v5_delete=1"\
    --form "file_firmware_new_pcb_delete=1"\
    --form "file_bootloader_delete=1"\
    --form "file_bootloader_v2_delete=1"\
    --form "file_bootloader_v3_delete=1"\
    --form "file_bootloader_v4_delete=1"\
    --form "changelog[][language]=en"\
    --form "changelog[][changelog]=Fixed bug with the connection"\
    --form "file_firmware=@/tmp/phpjR4LFN" \
    --form "file_firmware_v2=@/tmp/phpnUf27x" \
    --form "file_firmware_v3=@/tmp/phpc9QFGd" \
    --form "file_firmware_v4=@/tmp/phpsAoC3Y" \
    --form "file_firmware_v5=@/tmp/phpeujItq" \
    --form "file_firmware_new_pcb=@/tmp/phpF4lmI0" \
    --form "file_bootloader=@/tmp/phpqVNByk" \
    --form "file_bootloader_v2=@/tmp/phpabZqIC" \
    --form "file_bootloader_v3=@/tmp/phpCWhmvM" \
    --form "file_bootloader_v4=@/tmp/phpRCRz6B" 
const url = new URL(
    "http://localhost:8000/api/versions/firmware/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', '1.0');
body.append('models[]', '1');
body.append('file_firmware_delete', '1');
body.append('file_firmware_v2_delete', '1');
body.append('file_firmware_v3_delete', '1');
body.append('file_firmware_v4_delete', '1');
body.append('file_firmware_v5_delete', '1');
body.append('file_firmware_new_pcb_delete', '1');
body.append('file_bootloader_delete', '1');
body.append('file_bootloader_v2_delete', '1');
body.append('file_bootloader_v3_delete', '1');
body.append('file_bootloader_v4_delete', '1');
body.append('changelog[][language]', 'en');
body.append('changelog[][changelog]', 'Fixed bug with the connection');
body.append('file_firmware', document.querySelector('input[name="file_firmware"]').files[0]);
body.append('file_firmware_v2', document.querySelector('input[name="file_firmware_v2"]').files[0]);
body.append('file_firmware_v3', document.querySelector('input[name="file_firmware_v3"]').files[0]);
body.append('file_firmware_v4', document.querySelector('input[name="file_firmware_v4"]').files[0]);
body.append('file_firmware_v5', document.querySelector('input[name="file_firmware_v5"]').files[0]);
body.append('file_firmware_new_pcb', document.querySelector('input[name="file_firmware_new_pcb"]').files[0]);
body.append('file_bootloader', document.querySelector('input[name="file_bootloader"]').files[0]);
body.append('file_bootloader_v2', document.querySelector('input[name="file_bootloader_v2"]').files[0]);
body.append('file_bootloader_v3', document.querySelector('input[name="file_bootloader_v3"]').files[0]);
body.append('file_bootloader_v4', document.querySelector('input[name="file_bootloader_v4"]').files[0]);

fetch(url, {
    method: "PUT",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "id": 5,
    "name": "5.19.81",
    "file_firmware": "/tmp/faker8v3TcU",
    "file_firmware_v2": "/tmp/fakerCQz0jM",
    "file_firmware_v3": "/tmp/fakerOdGRjf",
    "file_firmware_v4": "/tmp/faker189vCx",
    "file_firmware_v5": "/tmp/fakerpY585H",
    "file_firmware_new_pcb": "/tmp/fakerUEOunr",
    "file_bootloader": "/tmp/fakereCksuI",
    "file_bootloader_v2": "/tmp/fakerXI5oKz",
    "file_bootloader_v3": "/tmp/fakersMyPAv",
    "file_bootloader_v4": "/tmp/faker6hEUvy",
    "changelog": "Beatae eos facere ex illo ab et sequi et. Aut voluptas optio asperiores porro id. Rem est est officiis cumque ex amet magnam. Veniam quae fugit ratione ipsum laborum temporibus consequatur vel.",
    "created_at": "2026-08-28T14:46:13.000000Z",
    "updated_at": "2026-08-28T14:46:13.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update versions",
    "code": "FIRMWARE_VERSION:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Version not found):


{
    "message": "Version not found",
    "code": "FIRMWARE_VERSION:UPDATE:VERSION_NOT_FOUND"
}
 

Request   

PUT api/versions/firmware/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

URL Parameters

id   integer   

Firmware Version ID. Example: 1

Body Parameters

name   string  optional  

Name of version. Example: 1.0

models   integer[]  optional  

Device Model ID. The id of an existing record in the App\Models\DeviceModel table.

file_firmware   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpjR4LFN

file_firmware_v2   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpnUf27x

file_firmware_v3   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpc9QFGd

file_firmware_v4   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpsAoC3Y

file_firmware_v5   file  optional  

Attached firmware file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpeujItq

file_firmware_new_pcb   file  optional  

Attached firmware for new PCB file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpF4lmI0

file_bootloader   file  optional  

Attached bootloader file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpqVNByk

file_bootloader_v2   file  optional  

Attached bootloader file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpabZqIC

file_bootloader_v3   file  optional  

Attached bootloader file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpCWhmvM

file_bootloader_v4   file  optional  

Attached bootloader file. Must be a file. MAXIMUM:FILE_KB:102400. Example: /tmp/phpRCRz6B

changelog   object[]  optional  

List of changelog translations.

language   string  optional  

Changelog language (2 characters code). Example: en

changelog   string  optional  

Changelog for the version. Pass "NULL" string to remove the entry for given language. Example: Fixed bug with the connection

file_firmware_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_firmware. Example: 1

file_firmware_v2_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_firmware_v2. Example: 1

file_firmware_v3_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_firmware_v3. Example: 1

file_firmware_v4_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_firmware_v4. Example: 1

file_firmware_v5_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_firmware_v5. Example: 1

file_firmware_new_pcb_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_firmware_new_pcb. Example: 1

file_bootloader_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_bootloader. Example: 1

file_bootloader_v2_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_bootloader_v2. Example: 1

file_bootloader_v3_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_bootloader_v3. Example: 1

file_bootloader_v4_delete   string  optional  

Send this parameter with value 1 to remove existing file for file_bootloader_v4. Example: 1

Response

Response Fields

id   integer   

Firmware version ID.

name   string   

Version name.

file_firmware   string   

Firmware file URL.

file_firmware_v2   string   

Firmware v2 file URL.

file_firmware_v3   string   

Firmware v3 file URL.

file_firmware_v4   string   

Firmware v4 file URL.

file_firmware_v5   string   

Firmware v5 file URL.

file_firmware_new_pcb   string   

New PCB firmware file URL.

file_bootloader   string   

Bootloader file URL.

file_bootloader_v2   string   

Bootloader v2 file URL.

file_bootloader_v3   string   

Bootloader v3 file URL.

file_bootloader_v4   string   

Bootloader v4 file URL.

changelog   string   

Changelog file URL.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete firmware version

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/versions/firmware/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/firmware/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Version deleted",
    "code": "FIRMWARE_VERSION:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete versions",
    "code": "FIRMWARE_VERSION:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Version in use (compatibility)):


{
    "message": "Cannot delete: version is used in compatibility entries (1)",
    "code": "FIRMWARE_VERSION:DELETE:VERSION_IN_USE_COMPATIBILITY"
}
 

Example response (403, Version in use (device)):


{
    "message": "Cannot delete: version is assigned to devices (1)",
    "code": "FIRMWARE_VERSION:DELETE:VERSION_IN_USE_DEVICE"
}
 

Example response (404, Version not found):


{
    "message": "Version not found",
    "code": "FIRMWARE_VERSION:DELETE:VERSION_NOT_FOUND"
}
 

Request   

DELETE api/versions/firmware/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Firmware Version ID. Example: 1

Get PCB versions

requires authentication

Example request:
curl --request GET \
    --get "http://localhost:8000/api/versions/pcb" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/pcb"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 2,
        "name": "9.60.49",
        "hardware_id": "",
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    },
    {
        "id": 3,
        "name": "2.60.22",
        "hardware_id": "",
        "created_at": "2026-08-28T14:46:13.000000Z",
        "updated_at": "2026-08-28T14:46:13.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list versions",
    "code": "PCB_VERSION:LIST:INSUFFICIENT_PERMISSION"
}
 

Request   

GET api/versions/pcb

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

extend   string  optional  

Comma-separated list of relation extensions (available: models).

Response

Response Fields

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Create PCB version

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/versions/pcb" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"1.0\",
    \"models\": [
        1
    ],
    \"hardware_id\": \"1\"
}"
const url = new URL(
    "http://localhost:8000/api/versions/pcb"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "1.0",
    "models": [
        1
    ],
    "hardware_id": "1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 4,
    "name": "4.30.4",
    "hardware_id": "",
    "created_at": "2026-08-28T14:46:13.000000Z",
    "updated_at": "2026-08-28T14:46:13.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to create versions",
    "code": "PCB_VERSION:CREATE:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/versions/pcb

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Name of version. Example: 1.0

models   integer[]  optional  

Device Model ID. The id of an existing record in the App\Models\DeviceModel table.

hardware_id   string   

Hardware ID name. Example: 1

Response

Response Fields

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Update PCB version

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/versions/pcb/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"1.0\",
    \"models\": [
        1
    ],
    \"hardware_id\": \"1\"
}"
const url = new URL(
    "http://localhost:8000/api/versions/pcb/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "1.0",
    "models": [
        1
    ],
    "hardware_id": "1"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 5,
    "name": "2.66.76",
    "hardware_id": "",
    "created_at": "2026-08-28T14:46:13.000000Z",
    "updated_at": "2026-08-28T14:46:13.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update versions",
    "code": "PCB_VERSION:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Version not found):


{
    "message": "Version not found",
    "code": "PCB_VERSION:UPDATE:VERSION_NOT_FOUND"
}
 

Request   

PUT api/versions/pcb/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

PCB Version ID. Example: 1

Body Parameters

name   string  optional  

Name of version. Example: 1.0

models   integer[]  optional  

Device Model ID. The id of an existing record in the App\Models\DeviceModel table.

hardware_id   string  optional  

Hardware ID name. Example: 1

Response

Response Fields

id   integer   

PCB version ID.

name   string   

Version name.

hardware_id   string   

Hardware identifier.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

Delete PCB version

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/versions/pcb/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/pcb/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Version deleted",
    "code": "PCB_VERSION:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete versions",
    "code": "PCB_VERSION:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (403, Version in use (compatibility)):


{
    "message": "Cannot delete: version is used in compatibility entries (1)",
    "code": "PCB_VERSION:DELETE:VERSION_IN_USE_COMPATIBILITY"
}
 

Example response (403, Version in use (device)):


{
    "message": "Cannot delete: version is assigned to devices (1)",
    "code": "PCB_VERSION:DELETE:VERSION_IN_USE_DEVICE"
}
 

Example response (404, Version not found):


{
    "message": "Version not found",
    "code": "PCB_VERSION:DELETE:VERSION_NOT_FOUND"
}
 

Request   

DELETE api/versions/pcb/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

PCB Version ID. Example: 1

List compatibilities

requires authentication

Most typical scenarios to use compatibility matrix:

Example request:
curl --request GET \
    --get "http://localhost:8000/api/versions/compatibility?model=1&software=1.2&firmware=1.5&pcb=1.0&summary=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/compatibility"
);

const params = {
    "model": "1",
    "software": "1.2",
    "firmware": "1.5",
    "pcb": "1.0",
    "summary": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "paginator": {
        "total": 2,
        "count": 2,
        "perpage": 20,
        "current_page": 1,
        "last_page": 1
    },
    "items": [
        {
            "id": 1,
            "device_model_id": 10,
            "software_version_id": 4,
            "firmware_version_id": 14,
            "pcb_version_id": 6,
            "is_fully_compatible": 0,
            "created_at": "2026-08-28T14:46:14.000000Z",
            "updated_at": "2026-08-28T14:46:14.000000Z",
            "features": [
                {
                    "id": 1,
                    "compatibility_id": 1,
                    "feature_id": 5,
                    "is_compatible": 0,
                    "reason": "Aliquam accusamus maxime voluptatum rerum ad et. Aliquid aut a error dolores. Omnis fugiat consequuntur ex maiores. Molestias et voluptatibus iusto.",
                    "created_at": "2026-08-28T14:46:14.000000Z",
                    "updated_at": "2026-08-28T14:46:14.000000Z",
                    "feature": {
                        "id": 5,
                        "name": "silver",
                        "slug": "qui-fugit-atque-maiores-blanditiis-ullam-odio-quo",
                        "created_at": "2026-08-28T14:46:14.000000Z",
                        "updated_at": "2026-08-28T14:46:14.000000Z"
                    }
                },
                {
                    "id": 2,
                    "compatibility_id": 1,
                    "feature_id": 7,
                    "is_compatible": 1,
                    "reason": "Ut aspernatur voluptas dignissimos ut esse sint aut. Inventore ut quia dolorem ut deleniti. Est molestiae cumque et officia. Blanditiis cupiditate quia consequatur ut iure placeat facere.",
                    "created_at": "2026-08-28T14:46:14.000000Z",
                    "updated_at": "2026-08-28T14:46:14.000000Z",
                    "feature": {
                        "id": 7,
                        "name": "teal",
                        "slug": "beatae-sint-nemo-consequatur-soluta-molestias-nesciunt",
                        "created_at": "2026-08-28T14:46:14.000000Z",
                        "updated_at": "2026-08-28T14:46:14.000000Z"
                    }
                },
                {
                    "id": 3,
                    "compatibility_id": 1,
                    "feature_id": 9,
                    "is_compatible": 1,
                    "reason": "Ut maiores consectetur dolores. Consequuntur vel eligendi non sint. Iste aut sit adipisci porro quaerat.",
                    "created_at": "2026-08-28T14:46:14.000000Z",
                    "updated_at": "2026-08-28T14:46:14.000000Z",
                    "feature": {
                        "id": 9,
                        "name": "aqua",
                        "slug": "quos-dolores-aut-ex-qui",
                        "created_at": "2026-08-28T14:46:14.000000Z",
                        "updated_at": "2026-08-28T14:46:14.000000Z"
                    }
                }
            ]
        },
        {
            "id": 5,
            "device_model_id": 14,
            "software_version_id": 8,
            "firmware_version_id": 18,
            "pcb_version_id": 10,
            "is_fully_compatible": 1,
            "created_at": "2026-08-28T14:46:14.000000Z",
            "updated_at": "2026-08-28T14:46:14.000000Z",
            "features": [
                {
                    "id": 4,
                    "compatibility_id": 5,
                    "feature_id": 10,
                    "is_compatible": 0,
                    "reason": "Tenetur explicabo blanditiis quis. Aspernatur iste sed dignissimos est cumque ea vitae. Est quis molestiae blanditiis dolor impedit.",
                    "created_at": "2026-08-28T14:46:14.000000Z",
                    "updated_at": "2026-08-28T14:46:14.000000Z",
                    "feature": {
                        "id": 10,
                        "name": "navy",
                        "slug": "et-vero-qui-facere",
                        "created_at": "2026-08-28T14:46:14.000000Z",
                        "updated_at": "2026-08-28T14:46:14.000000Z"
                    }
                },
                {
                    "id": 5,
                    "compatibility_id": 5,
                    "feature_id": 12,
                    "is_compatible": 0,
                    "reason": "Omnis ut velit vel molestias quia. Aperiam quas dolores dolorem distinctio atque. Sequi a sit corporis expedita. Et eos autem sit reprehenderit corporis occaecati sequi.",
                    "created_at": "2026-08-28T14:46:14.000000Z",
                    "updated_at": "2026-08-28T14:46:14.000000Z",
                    "feature": {
                        "id": 12,
                        "name": "maroon",
                        "slug": "corporis-tempora-repellat-quasi-consequuntur-quisquam-in-natus",
                        "created_at": "2026-08-28T14:46:14.000000Z",
                        "updated_at": "2026-08-28T14:46:14.000000Z"
                    }
                },
                {
                    "id": 6,
                    "compatibility_id": 5,
                    "feature_id": 14,
                    "is_compatible": 1,
                    "reason": "Quis quo doloribus provident delectus. Sed eum non impedit. A aut illo sit ex. Pariatur consequatur veniam repellat neque.",
                    "created_at": "2026-08-28T14:46:14.000000Z",
                    "updated_at": "2026-08-28T14:46:14.000000Z",
                    "feature": {
                        "id": 14,
                        "name": "silver",
                        "slug": "aut-sit-nulla-earum-in-nulla-expedita-et",
                        "created_at": "2026-08-28T14:46:14.000000Z",
                        "updated_at": "2026-08-28T14:46:14.000000Z"
                    }
                }
            ]
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to list versions compatibilities",
    "code": "COMPATIBILITY:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device model not found):


{
    "message": "Device model not found",
    "code": "COMPATIBILITY:LIST:DEVICE_MODEL_NOT_FOUND"
}
 

Example response (404, Software version not found):


{
    "message": "Software version not found",
    "code": "COMPATIBILITY:LIST:SOFTWARE_VERSION_NOT_FOUND"
}
 

Example response (404, Firmware version not found):


{
    "message": "Firmware version not found",
    "code": "COMPATIBILITY:LIST:FIRMWARE_VERSION_NOT_FOUND"
}
 

Example response (404, PCB version not found):


{
    "message": "PCB version not found",
    "code": "COMPATIBILITY:LIST:PCB_VERSION_NOT_FOUND"
}
 

Request   

GET api/versions/compatibility

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

model   integer  optional  

Filter compatibility matrix by device model ID. Example: 1

software   string  optional  

Filter compatibility matrix by software version name (not ID!). Example: 1.2

firmware   string  optional  

Filter compatibility matrix by firmware version name (not ID!). Example: 1.5

pcb   string  optional  

Filter compatibility matrix by PCB version name (not ID!). Example: 1.0

summary   boolean  optional  

Add to response the device model, software, firmware and PCB entries used to filter the list. Example: false

perpage   integer  optional  

Elements per page (Default: 20).

page   integer  optional  

Page number (Default: 1).

extend   string  optional  

Comma-separated list of relation extensions (available: features, features.feature, deviceModel, softwareVersion, firmwareVersion, pcbVersion).

Response

Response Fields

items   object   
id   integer   

Compatibility entry ID.

device_model_id   integer   

Associated device model ID.

software_version_id   integer   

Associated software version ID.

firmware_version_id   integer   

Associated firmware version ID.

pcb_version_id   integer   

Associated PCB version ID.

is_fully_compatible   boolean   

Whether all versions are fully compatible.

note   string   

Compatibility note.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

features   object[]   

Associated compatibility features.

paginator   object   
total   integer   

Total number of items.

count   integer   

Number of items on current page.

perpage   integer   

Items per page.

current_page   integer   

Current page number.

last_page   integer   

Last page number.

Add compatibility

requires authentication

Adds or updates compatibility matrix with assigned features. You can specify many versions for each list.

Example request:
curl --request POST \
    "http://localhost:8000/api/versions/compatibility" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"device_models\": [
        1
    ],
    \"software_versions\": [
        1
    ],
    \"firmware_versions\": [
        1
    ],
    \"pcb_versions\": [
        1
    ],
    \"is_fully_compatible\": true,
    \"features\": [
        {
            \"feature_id\": 1,
            \"compatible\": true,
            \"reason\": \"Firmware does not support...\"
        }
    ]
}"
const url = new URL(
    "http://localhost:8000/api/versions/compatibility"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "device_models": [
        1
    ],
    "software_versions": [
        1
    ],
    "firmware_versions": [
        1
    ],
    "pcb_versions": [
        1
    ],
    "is_fully_compatible": true,
    "features": [
        {
            "feature_id": 1,
            "compatible": true,
            "reason": "Firmware does not support..."
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202, OK):


{
    "added": 1,
    "updated": 0,
    "not_changed": 0
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to add versions compatibility",
    "code": "COMPATIBILITY:ADD:INSUFFICIENT_PERMISSION"
}
 

Request   

POST api/versions/compatibility

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

device_models   integer[]  optional  

Array of Device Model IDs. The id of an existing record in the App\Models\DeviceModel table.

software_versions   integer[]  optional  

Array of Software Version IDs. The id of an existing record in the App\Models\SoftwareVersion table.

firmware_versions   integer[]  optional  

Array of Firmware Version IDs. The id of an existing record in the App\Models\FirmwareVersion table.

pcb_versions   integer[]  optional  

Array of PCB Version IDs. The id of an existing record in the App\Models\PCBVersion table.

is_fully_compatible   boolean  optional  

Is this set of versions fully compatible?. Example: true

features   object[]  optional  

Array of features to be assigned to this set of versions.

feature_id   string  optional  

Product feature ID. The id of an existing record in the App\Models\ProductFeature table. Example: 1

compatible   boolean  optional  

Is this feature compatible?. Example: true

reason   string  optional  

Reason of incompatibility. Example: Firmware does not support...

Update compatibility

requires authentication

Example request:
curl --request PUT \
    "http://localhost:8000/api/versions/compatibility/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"device_model_id\": 11,
    \"software_version_id\": 1,
    \"firmware_version_id\": 3,
    \"pcb_version_id\": 5,
    \"is_fully_compatible\": true,
    \"features\": [
        {
            \"id\": 1,
            \"feature_id\": 1,
            \"compatible\": true,
            \"reason\": \"Firmware does not support...\",
            \"delete\": true
        }
    ]
}"
const url = new URL(
    "http://localhost:8000/api/versions/compatibility/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "device_model_id": 11,
    "software_version_id": 1,
    "firmware_version_id": 3,
    "pcb_version_id": 5,
    "is_fully_compatible": true,
    "features": [
        {
            "id": 1,
            "feature_id": 1,
            "compatible": true,
            "reason": "Firmware does not support...",
            "delete": true
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (202):


{
    "id": 9,
    "device_model_id": 18,
    "software_version_id": 12,
    "firmware_version_id": 22,
    "pcb_version_id": 14,
    "is_fully_compatible": 1,
    "created_at": "2026-08-28T14:46:14.000000Z",
    "updated_at": "2026-08-28T14:46:14.000000Z",
    "features": [
        {
            "id": 7,
            "compatibility_id": 9,
            "feature_id": 15,
            "is_compatible": 0,
            "reason": "Eveniet sequi veniam mollitia asperiores non aut nihil. Officiis soluta facere qui. Mollitia dolorum libero error praesentium eos est. Rerum laudantium laboriosam beatae perferendis voluptatem.",
            "created_at": "2026-08-28T14:46:14.000000Z",
            "updated_at": "2026-08-28T14:46:14.000000Z",
            "feature": {
                "id": 15,
                "name": "yellow",
                "slug": "voluptatem-error-veritatis-quod-ut-non-impedit-distinctio",
                "created_at": "2026-08-28T14:46:14.000000Z",
                "updated_at": "2026-08-28T14:46:14.000000Z"
            }
        }
    ]
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update versions compatibility",
    "code": "COMPATIBILITY:UPDATE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Versions Compatibility not found):


{
    "message": "Versions compatibility not found",
    "code": "COMPATIBILITY:UPDATE:COMPATIBILITY_NOT_FOUND"
}
 

Request   

PUT api/versions/compatibility/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Versions Compatibility ID. Example: 1

Body Parameters

device_model_id   integer  optional  

Device Model ID. The id of an existing record in the App\Models\DeviceModel table. Example: 11

software_version_id   integer  optional  

Software Version ID. The id of an existing record in the App\Models\SoftwareVersion table. Example: 1

firmware_version_id   integer  optional  

Firmware Version ID. The id of an existing record in the App\Models\FirmwareVersion table. Example: 3

pcb_version_id   integer  optional  

PCB Version ID. The id of an existing record in the App\Models\PCBVersion table. Example: 5

is_fully_compatible   boolean  optional  

Is this set of versions fully compatible?. Example: true

features   object[]  optional  

Array of features to be assigned to this set of versions.

id   string  optional  

Versions compatibility feature ID. Use with delete parameter to delete specific entry. Do not confuse with feature_id, this field refers to ID of relation between versions compatibility and product feature. The id of an existing record in the App\Models\VersionsCompatibilityFeature table. Example: 1

feature_id   string  optional  

Product feature ID. The id of an existing record in the App\Models\ProductFeature table. Example: 1

compatible   boolean  optional  

Is this feature compatible?. Example: true

reason   string  optional  

Reason of incompatibility. Example: Firmware does not support...

delete   boolean  optional  

Pass 1 to detach feature from this set of versions, skip otherwise. Example: true

Response

Response Fields

id   integer   

Compatibility entry ID.

device_model_id   integer   

Associated device model ID.

software_version_id   integer   

Associated software version ID.

firmware_version_id   integer   

Associated firmware version ID.

pcb_version_id   integer   

Associated PCB version ID.

is_fully_compatible   boolean   

Whether all versions are fully compatible.

note   string   

Compatibility note.

created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

features   object[]   

Associated compatibility features.

Delete compatibility

requires authentication

Example request:
curl --request DELETE \
    "http://localhost:8000/api/versions/compatibility/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/versions/compatibility/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Versions compatibility deleted",
    "code": "COMPATIBILITY:DELETE:DELETED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to delete versions compatibility",
    "code": "COMPATIBILITY:DELETE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Versions compatibility not found):


{
    "message": "Versions compatibility not found",
    "code": "COMPATIBILITY:DELETE:COMPATIBILITY_NOT_FOUND"
}
 

Request   

DELETE api/versions/compatibility/{id}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Versions Compatibility ID. Example: 1

Video sessions

API endpoints for managing video sessions

List video sessions

requires authentication

Returns list of open video sessions. For most cases there should be exactly one entry (open/active session) or exactly zero entries (empty array, no open sessions).

Example request:
curl --request GET \
    --get "http://localhost:8000/api/sessions/video/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/sessions/video/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


[
    {
        "id": 1,
        "moderator_id": 127,
        "guest_id": 128,
        "jwt_moderator": "9d00fae582c656aa275464e75f6121ac5b54d918eb9268c5ac07a0478586cceb",
        "jwt_guest": "8405ae6de3ebde2abffb2531d437a163a31dc42a109c7369b66b93258c7e1d67",
        "room_name": "room_02bab1abef4444ca6310623b57b92f81",
        "expires": 1787929217,
        "status": "open",
        "created_at": "2026-08-28T14:45:18.000000Z",
        "updated_at": "2026-08-28T14:45:18.000000Z"
    },
    {
        "id": 2,
        "moderator_id": 131,
        "guest_id": 132,
        "jwt_moderator": "ef337e157cd1867499743e33bed2ef788a61f8bde49fa932681e77332173c6a6",
        "jwt_guest": "5f53b0a2be22e28dc4b056f663910c046a33f9b2d779eaf997ea771fe1881a13",
        "room_name": "room_630b96919b7cad23f9105ef890116e4f",
        "expires": 1787929219,
        "status": "open",
        "created_at": "2026-08-28T14:45:19.000000Z",
        "updated_at": "2026-08-28T14:45:19.000000Z"
    }
]
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to access video session",
    "code": "VIDEO_SESSIONS:LIST:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "VIDEO_SESSIONS:LIST:USER_NOT_FOUND"
}
 

Request   

GET api/sessions/video/{guestId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

guestId   integer   

User ID (guest of the meeting). Example: 1

Response

Response Fields

id   integer   

Video session ID.

moderator_id   integer   

Moderator user ID.

guest_id   integer   

Guest user ID.

jwt_moderator   string   

JWT token for the moderator.

jwt_guest   string   

JWT token for the guest.

room_name   string   

Video room name.

expires   integer   

Session expiry as Unix timestamp.

status   string   

Session status.

Must be one of:
  • open
  • expired
  • closed
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

moderator   object   

Moderator user.

guest   object   

Guest user.

Initialize video session

requires authentication

Creates JWT (JSON Web Token) and room name for Jitsi session. Logged-in user is a moderator of the session. JWT lifetime is 15 minutes.

Example request:
curl --request POST \
    "http://localhost:8000/api/sessions/video/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/sessions/video/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "id": 3,
    "moderator_id": 135,
    "guest_id": 136,
    "jwt_moderator": "9637db1eb093b3adfa5a9d995e6684ee735d78d31a1d555c8e9841b7065959af",
    "jwt_guest": "1d5c6afda225c52105017ed432ca7f6e30b9bd8e67c439fbf1117eff03d09c99",
    "room_name": "room_42864bd707e226a7f8f5432abd764423",
    "expires": 1787929220,
    "status": "open",
    "created_at": "2026-08-28T14:45:21.000000Z",
    "updated_at": "2026-08-28T14:45:21.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to initialize video session",
    "code": "VIDEO_SESSIONS:INIT:INSUFFICIENT_PERMISSION"
}
 

Example response (404, User not found):


{
    "message": "User not found",
    "code": "VIDEO_SESSIONS:INIT:USER_NOT_FOUND"
}
 

Example response (500, Server error):


{
    "message": "Server error",
    "code": "VIDEO_SESSIONS:INIT:SERVER_ERROR"
}
 

Request   

POST api/sessions/video/{guestId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

guestId   integer   

User ID (guest of the meeting). Example: 1

Response

Response Fields

id   integer   

Video session ID.

moderator_id   integer   

Moderator user ID.

guest_id   integer   

Guest user ID.

jwt_moderator   string   

JWT token for the moderator.

jwt_guest   string   

JWT token for the guest.

room_name   string   

Video room name.

expires   integer   

Session expiry as Unix timestamp.

status   string   

Session status.

Must be one of:
  • open
  • expired
  • closed
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

moderator   object   

Moderator user.

guest   object   

Guest user.

Refresh video session

requires authentication

Refreshes video session JWT tokens to extend session lifetime.

Example request:
curl --request POST \
    "http://localhost:8000/api/sessions/video/1/refresh" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/sessions/video/1/refresh"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (202):


{
    "id": 4,
    "moderator_id": 139,
    "guest_id": 140,
    "jwt_moderator": "fe7a34c814a0f602c6180927dfc4c193bc7f163f1aeecc8f0c7a721bca9499de",
    "jwt_guest": "a56145270ce6b3bebd1dd012b73948677dd618d496488bc608a3cb43ce3547dd",
    "room_name": "room_8ac11263765380e549406f06f69fff31",
    "expires": 1787929222,
    "status": "open",
    "created_at": "2026-08-28T14:45:23.000000Z",
    "updated_at": "2026-08-28T14:45:23.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to refresh video session",
    "code": "VIDEO_SESSIONS:REFRESH:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Session not found):


{
    "message": "Video session not found",
    "code": "VIDEO_SESSIONS:REFRESH:SESSION_NOT_FOUND"
}
 

Request   

POST api/sessions/video/{sessionId}/refresh

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

sessionId   integer   

Video Session ID. Example: 1

Response

Response Fields

id   integer   

Video session ID.

moderator_id   integer   

Moderator user ID.

guest_id   integer   

Guest user ID.

jwt_moderator   string   

JWT token for the moderator.

jwt_guest   string   

JWT token for the guest.

room_name   string   

Video room name.

expires   integer   

Session expiry as Unix timestamp.

status   string   

Session status.

Must be one of:
  • open
  • expired
  • closed
created_at   string   

Creation timestamp.

updated_at   string   

Last update timestamp.

moderator   object   

Moderator user.

guest   object   

Guest user.

Close video session

requires authentication

Marks video session (database entry) as closed. Does not close session on Jitsi side.

Example request:
curl --request DELETE \
    "http://localhost:8000/api/sessions/video/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost:8000/api/sessions/video/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (202, OK):


{
    "message": "Video session closed",
    "code": "VIDEO_SESSIONS:CLOSE:CLOSED"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to close video session",
    "code": "VIDEO_SESSIONS:CLOSE:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Session not found):


{
    "message": "Video session not found",
    "code": "VIDEO_SESSIONS:CLOSE:SESSION_NOT_FOUND"
}
 

Request   

DELETE api/sessions/video/{sessionId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

sessionId   integer   

Video Session ID. Example: 1

Invite technical support

requires authentication

Sends notification to Slack channel. Link to meeting is valid for 10 minutes.

Example request:
curl --request POST \
    "http://localhost:8000/api/sessions/video/invite-support/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"room\": \"room_1081c785cf1464e4d6ebc3976561d490\",
    \"description\": \"Grip switching is not working, please join.\"
}"
const url = new URL(
    "http://localhost:8000/api/sessions/video/invite-support/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "room": "room_1081c785cf1464e4d6ebc3976561d490",
    "description": "Grip switching is not working, please join."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, OK):


{
    "response": "success",
    "code": "VIDEO_SESSIONS:INVITE_TECH_SUPPORT:SUCCESS"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to invite tech support",
    "code": "VIDEO_SESSIONS:INVITE_TECH_SUPPORT:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "VIDEO_SESSIONS:INVITE_TECH_SUPPORT:DEVICE_NOT_FOUND"
}
 

Example response (500, Request failed):


{
    "response": "invalid_payload",
    "code": "VIDEO_SESSIONS:INVITE_TECH_SUPPORT:FAILED"
}
 

Request   

POST api/sessions/video/invite-support/{deviceId}

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID (current device of the session). Example: 1

Body Parameters

room   string   

Name of Jitsi room to connect. Example: room_1081c785cf1464e4d6ebc3976561d490

description   string  optional  

Description of problem provided by clinician. Example: Grip switching is not working, please join.

Wizard

Endpoints related to the device setup wizard prompt (Guide vs Configurator choice)

Save wizard prompt choice

requires authentication

Example request:
curl --request POST \
    "http://localhost:8000/api/device/1/wizard-prompt" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"choice\": \"guide\",
    \"dont_ask_again\": false
}"
const url = new URL(
    "http://localhost:8000/api/device/1/wizard-prompt"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "choice": "guide",
    "dont_ask_again": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (201):


{
    "id": 1,
    "user_id": 79,
    "device_id": 61,
    "choice": "configurator",
    "dont_ask_again": 0,
    "created_at": "2026-08-28T14:44:56.000000Z",
    "updated_at": "2026-08-28T14:44:56.000000Z"
}
 

Example response (403, Insufficient permission):


{
    "message": "Insufficient permission to update device config",
    "code": "WIZARD:SAVE_PROMPT:INSUFFICIENT_PERMISSION"
}
 

Example response (404, Device not found):


{
    "message": "Device not found",
    "code": "WIZARD:SAVE_PROMPT:DEVICE_NOT_FOUND"
}
 

Request   

POST api/device/{deviceId}/wizard-prompt

Headers

Authorization      

Example: Bearer {ACCESS_TOKEN}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deviceId   integer   

Device ID. Example: 1

Body Parameters

choice   string   

What the clinician chose in the wizard prompt. Example: guide

Must be one of:
  • guide
  • configurator
  • dismissed
dont_ask_again   boolean  optional  

Whether user checked the "don't ask again" checkbox. Example: false