api-docs v5.116.0
API Docs
Table of contents
Account_Invitation
Organization Membership - Delete
Delete specific organization membership account invitation
DELETE /account-invitations/:id
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/account-invitations/<account-invitation-id>" \
  -X DELETE \
  -H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| id | string | 
|
| createdAt | number | 
timestamp  | 
| createdBy | string | 
account uid  | 
string | 
||
| expiresAt | number | 
timestamp  | 
| acceptedAt | number | 
timestamp  | 
| reward | object[] | 
|
| type | string | 
Allowed values: org-membership | 
| member | object | 
organizationMember object  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
  "id": "account-invitation-id",
  "createdAt": 1564661697125,
  "createdBy": "some-uid",
  "type": "org-membership"
}
Organization Membership - Find
Get list of organization membership account invitations
GET /account-invitations
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/account-invitations?type=org-membership" \
  -X GET \
  -H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| accountInvitations | object[] | 
array of account invitation  | 
| accountInvitations.id | string | 
|
| accountInvitations.createdAt | number | 
timestamp  | 
| accountInvitations.createdBy | string | 
account uid  | 
| accountInvitations.email | string | 
|
| accountInvitations.expiresAt | number | 
timestamp  | 
| accountInvitations.acceptedAt | number | 
timestamp  | 
| accountInvitations.reward | object[] | 
|
| accountInvitations.type | string | 
Allowed values: org-membership | 
| accountInvitations.member | object | 
organizationMember object  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
[
  {
    "id": "account-invitation-1",
    "createdAt": 1564661697125,
    "createdBy": "some-uid",
    "type": "org-membership"
  },
  {
    "id": "account-invitation-2",
    "createdAt": 1564661697125,
    "createdBy": "some-uid",
    "type": "org-membership"
  }
]
Organization Membership - Get
Get specific organization membership account invitation
GET /account-invitations/:id
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/account-invitations/<account-invitation-id>" \
  -X GET \
  -H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| id | string | 
|
| createdAt | number | 
timestamp  | 
| createdBy | string | 
account uid  | 
string | 
||
| expiresAt | number | 
timestamp  | 
| acceptedAt | number | 
timestamp  | 
| reward | object[] | 
|
| type | string | 
Allowed values: org-membership | 
| member | object | 
organizationMember object  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
  "id": "account-invitation-id",
  "createdAt": 1564661697125,
  "createdBy": "some-uid",
  "type": "org-membership"
}
Organization Membership - Patch
Update an organization membership account invitation
PATCH /account-invitations/:id
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
| Name | Type | Description | 
|---|---|---|
| accept | boolean | 
optional  directive: accept an invitation  | 
| resend | boolean | 
optional  directive: for resending email  | 
Examples
Example usage:
curl "https://yourdomain.com/account-invitations/<account-invitation-id>" \
  -X PATCH \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <your-api-token>" \
  -d '{
    "accept": true
  }'
Parameters examples
json - Request-Example
{
  "accept": true
}
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| id | string | 
|
| createdAt | number | 
timestamp  | 
| createdBy | string | 
account uid  | 
string | 
||
| expiresAt | number | 
timestamp  | 
| acceptedAt | number | 
timestamp  | 
| reward | object[] | 
|
| type | string | 
Allowed values: org-membership | 
| member | object | 
organizationMember object  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
  "id": "account-invitation-id",
  "createdAt": 1564661697125,
  "createdBy": "some-uid",
  "type": "org-membership"
}
Organization Membership - Post
Create an account invitation for an organization member
POST /account-invitations
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
| Name | Type | Description | 
|---|---|---|
string | 
||
| expiresAt | number | 
optional | 
| rewards | object[] | 
optional | 
| type | string | 
Allowed values: org-membership | 
| member | object | 
organizationMember object  | 
Examples
Example usage:
curl "https://yourdomain.com/account-invitations" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <your-api-token>" \
  -d '{
    "type": "org-membership",
    "email": "someemail@email.com",
    "member": {
      "externalId": "external-1"
    }
  }'
Parameters examples
json - Request-Example
{
  "type": "org-membership",
  "email": "someemail@email.com",
  "member": {
    "externalId": "external-1"
  }
}
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| id | string | 
|
| createdAt | number | 
timestamp  | 
| createdBy | string | 
account uid  | 
string | 
||
| expiresAt | number | 
timestamp  | 
| acceptedAt | number | 
timestamp  | 
| reward | object[] | 
|
| type | string | 
Allowed values: org-membership | 
| member | object | 
organizationMember object  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
  "id": "account-invitation-id",
  "createdAt": 1564661697125,
  "createdBy": "some-uid",
  "type": "org-membership"
}
Patient Membership - Delete
Delete specific patient membership account invitation
DELETE /account-invitations/:id
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/account-invitations/<account-invitation-id>" \
  -X DELETE \
  -H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| id | string | 
|
| createdAt | number | 
timestamp  | 
| createdBy | string | 
account uid  | 
string | 
||
| expiresAt | number | 
timestamp  | 
| acceptedAt | number | 
timestamp  | 
| reward | object[] | 
|
| type | string | 
Allowed values: patient | 
| patient | string | 
patient id  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
  "id": "account-invitation-id",
  "createdAt": 1564661697125,
  "createdBy": "some-uid",
  "type": "patient"
}
Patient Membership - Find
Get list of patient membership account invitations
GET /account-invitations
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/account-invitations?type=patient" \
  -X GET \
  -H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| accountInvitations | object[] | 
array of account invitation  | 
| accountInvitations.id | string | 
|
| accountInvitations.createdAt | number | 
timestamp  | 
| accountInvitations.createdBy | string | 
account uid  | 
| accountInvitations.email | string | 
|
| accountInvitations.expiresAt | number | 
timestamp  | 
| accountInvitations.acceptedAt | number | 
timestamp  | 
| accountInvitations.reward | object[] | 
|
| accountInvitations.type | string | 
Allowed values: patient | 
| accountInvitations.patient | string | 
patient id  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
[
  {
    "id": "account-invitation-1",
    "createdAt": 1564661697125,
    "createdBy": "some-uid",
    "type": "patient"
  },
  {
    "id": "account-invitation-2",
    "createdAt": 1564661697125,
    "createdBy": "some-uid",
    "type": "patient"
  }
]
Patient Membership - Get
Get specific patient membership account invitation
GET /account-invitations/:id
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/account-invitations/<account-invitation-id>" \
  -X GET \
  -H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| id | string | 
|
| createdAt | number | 
timestamp  | 
| createdBy | string | 
account uid  | 
string | 
||
| expiresAt | number | 
timestamp  | 
| acceptedAt | number | 
timestamp  | 
| reward | object[] | 
|
| type | string | 
Allowed values: patient | 
| patient | string | 
patient id  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
  "id": "account-invitation-id",
  "createdAt": 1564661697125,
  "createdBy": "some-uid",
  "type": "patient"
}
Patient Membership - Patch
Update a patient membership account invitation
PATCH /account-invitations/:id
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
| Name | Type | Description | 
|---|---|---|
| accept | boolean | 
optional  directive: accept an invitation  | 
| resend | boolean | 
optional  directive: for resending email  | 
Examples
Example usage:
curl "https://yourdomain.com/account-invitations/<account-invitation-id>" \
  -X PATCH \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <your-api-token>" \
  -d '{
    "accept": true
  }'
Parameters examples
json - Request-Example
{
  "accept": true
}
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| id | string | 
|
| createdAt | number | 
timestamp  | 
| createdBy | string | 
account uid  | 
string | 
||
| expiresAt | number | 
timestamp  | 
| acceptedAt | number | 
timestamp  | 
| reward | object[] | 
|
| type | string | 
Allowed values: patient | 
| patient | string | 
patient id  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
  "id": "account-invitation-id",
  "createdAt": 1564661697125,
  "createdBy": "some-uid",
  "type": "patient"
}
Patient Membership - Post
Create an account invitation for a patient
POST /account-invitations
Headers - Header
| Name | Type | Description | 
|---|---|---|
| Authorization | string | 
key to place the API token to using the grant 'Bearer'  | 
Header examples
Authorization-Example
{
  "Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
| Name | Type | Description | 
|---|---|---|
string | 
||
| expiresAt | number | 
optional | 
| rewards | object[] | 
optional | 
| type | string | 
Allowed values: patient | 
| patient | string | 
patient id  | 
Examples
Example usage:
curl "https://yourdomain.com/account-invitations" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <your-api-token>" \
  -d '{
    "type": "patient",
    "email": "someemail@email.com",
    "patient": "patient-id"
  }'
Parameters examples
json - Request-Example
{
  "type": "patient",
  "email": "someemail@email.com",
  "patient": "patient-id"
}
Success response
Success response - Success 200
| Name | Type | Description | 
|---|---|---|
| id | string | 
|
| createdAt | number | 
timestamp  | 
| createdBy | string | 
account uid  | 
string | 
||
| expiresAt | number | 
timestamp  | 
| acceptedAt | number | 
timestamp  | 
| reward | object[] | 
|
| type | string | 
Allowed values: patient | 
| patient | string | 
patient id  | 
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
  "id": "account-invitation-id",
  "createdAt": 1564661697125,
  "createdBy": "some-uid",
  "type": "patient"
}