GET
/
interactions
/
cURL
curl --request GET \
  --url https://api.{environment}.corti.app/v2/interactions/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Tenant-Name: <tenant-name>'
{
  "interactions": [
    {
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "assignedUserId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "encounter": {
        "identifier": "<string>",
        "status": "planned",
        "type": "first_consultation",
        "period": {
          "startedAt": "2023-11-07T05:31:56Z",
          "endedAt": "2023-11-07T05:31:56Z"
        },
        "title": "<string>"
      },
      "patient": {
        "identifier": "<string>",
        "name": "<string>",
        "gender": "male",
        "birthDate": "2023-11-07T05:31:56Z",
        "pronouns": "<string>"
      },
      "endedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "websocketUrl": "<string>",
      "lastUpdated": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Input your token

Headers

Tenant-Name
string
required

Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.

Example:

"copiloteu"

Query Parameters

sort
enum<string>
default:createdAt

Field used to sort interactions. Default is createdAt.

Available options:
id,
assignedUserId,
patient,
createdAt,
endedAt,
updatedAt
direction
enum<string>

Sorting order. Allowed values: [asc, desc]. Default is desc.

Available options:
asc,
desc
Example:

"desc"

pageSize
integer

Number of interactions to return per page. Must be greater than 0. Default is 10.

index
integer

Page number to retrieve. Starts at 1. For example, index=2 with pageSize=10 will return interactions 11–20. Must be greater than 0. Default is 1.

encounterStatus
enum<string>[]

The status of the encounter. To filter on multiple statuses, pass the same parameter again.

patient
string

A unique identifier for the patient.

Response

200
application/json

The response is of type object.