Skip to main content
POST
/
rest
/
consultations
/
{id}
/
messages
curl --request POST \
  --url https://mcp.arlohealth.ai/rest/consultations/{id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "text": "No fever, but I've been feeling really tired."
}
EOF
{
  "success": true,
  "status": "TRIAGING",
  "triageResponse": "<string>",
  "messages": [
    {
      "id": "<string>",
      "type": "text",
      "content": "<string>",
      "sender": "user",
      "timestamp": "2023-11-07T05:31:56Z",
      "senderId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

OAuth 2.1 with PKCE

Path Parameters

id
string
required

Consultation ID

Body

application/json
messages
string[]

Array of messages to send

text
string

Single message to send (alternative to messages array)

Response

Message sent

success
boolean
status
enum<string>
  • TRIAGING: AI is gathering information
  • PAYMENT_REQUIRED: Triage complete, awaiting payment
  • MATCHING: Being matched with provider
  • ACTIVE: Connected with provider
  • CLOSED: Consultation completed
  • EMERGENCY: Urgent care advised
  • CANCELED: User canceled
  • NOT_STARTED: Not yet started
Available options:
TRIAGING,
PAYMENT_REQUIRED,
MATCHING,
ACTIVE,
CLOSED,
EMERGENCY,
CANCELED,
NOT_STARTED
triageResponse
string

AI's response (triage phase only)

messages
object[]