curl --request POST \
--url https://mcp.arlohealth.ai/api/consultations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"contextMessage": "I've had a sore throat for 3 days. It started with a scratchy\nfeeling and now it hurts to swallow. I don't have a fever but\nI've been feeling tired. I had strep throat last year with\nsimilar symptoms.\n",
"region": "US-CA"
}
EOFimport requests
url = "https://mcp.arlohealth.ai/api/consultations"
payload = {
"contextMessage": "I've had a sore throat for 3 days. It started with a scratchy
feeling and now it hurts to swallow. I don't have a fever but
I've been feeling tired. I had strep throat last year with
similar symptoms.
",
"region": "US-CA"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contextMessage: 'I\'ve had a sore throat for 3 days. It started with a scratchy\nfeeling and now it hurts to swallow. I don\'t have a fever but\nI\'ve been feeling tired. I had strep throat last year with\nsimilar symptoms.\n',
region: 'US-CA'
})
};
fetch('https://mcp.arlohealth.ai/api/consultations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mcp.arlohealth.ai/api/consultations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contextMessage' => 'I\'ve had a sore throat for 3 days. It started with a scratchy
feeling and now it hurts to swallow. I don\'t have a fever but
I\'ve been feeling tired. I had strep throat last year with
similar symptoms.
',
'region' => 'US-CA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mcp.arlohealth.ai/api/consultations"
payload := strings.NewReader("{\n \"contextMessage\": \"I've had a sore throat for 3 days. It started with a scratchy\\nfeeling and now it hurts to swallow. I don't have a fever but\\nI've been feeling tired. I had strep throat last year with\\nsimilar symptoms.\\n\",\n \"region\": \"US-CA\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mcp.arlohealth.ai/api/consultations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contextMessage\": \"I've had a sore throat for 3 days. It started with a scratchy\\nfeeling and now it hurts to swallow. I don't have a fever but\\nI've been feeling tired. I had strep throat last year with\\nsimilar symptoms.\\n\",\n \"region\": \"US-CA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.arlohealth.ai/api/consultations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contextMessage\": \"I've had a sore throat for 3 days. It started with a scratchy\\nfeeling and now it hurts to swallow. I don't have a fever but\\nI've been feeling tired. I had strep throat last year with\\nsimilar symptoms.\\n\",\n \"region\": \"US-CA\"\n}"
response = http.request(request)
puts response.read_body{
"conversationId": "<string>",
"status": "IDLE"
}{
"error": "<string>",
"reason": "<string>",
"code": "<string>"
}{
"error": "<string>",
"needsAuth": true
}Start Conversation
Creates a new healthcare consultation and begins AI triage.
The contextMessage should be a first-person narrative describing symptoms, duration, severity, and relevant medical history.
curl --request POST \
--url https://mcp.arlohealth.ai/api/consultations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"contextMessage": "I've had a sore throat for 3 days. It started with a scratchy\nfeeling and now it hurts to swallow. I don't have a fever but\nI've been feeling tired. I had strep throat last year with\nsimilar symptoms.\n",
"region": "US-CA"
}
EOFimport requests
url = "https://mcp.arlohealth.ai/api/consultations"
payload = {
"contextMessage": "I've had a sore throat for 3 days. It started with a scratchy
feeling and now it hurts to swallow. I don't have a fever but
I've been feeling tired. I had strep throat last year with
similar symptoms.
",
"region": "US-CA"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contextMessage: 'I\'ve had a sore throat for 3 days. It started with a scratchy\nfeeling and now it hurts to swallow. I don\'t have a fever but\nI\'ve been feeling tired. I had strep throat last year with\nsimilar symptoms.\n',
region: 'US-CA'
})
};
fetch('https://mcp.arlohealth.ai/api/consultations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mcp.arlohealth.ai/api/consultations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contextMessage' => 'I\'ve had a sore throat for 3 days. It started with a scratchy
feeling and now it hurts to swallow. I don\'t have a fever but
I\'ve been feeling tired. I had strep throat last year with
similar symptoms.
',
'region' => 'US-CA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mcp.arlohealth.ai/api/consultations"
payload := strings.NewReader("{\n \"contextMessage\": \"I've had a sore throat for 3 days. It started with a scratchy\\nfeeling and now it hurts to swallow. I don't have a fever but\\nI've been feeling tired. I had strep throat last year with\\nsimilar symptoms.\\n\",\n \"region\": \"US-CA\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mcp.arlohealth.ai/api/consultations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contextMessage\": \"I've had a sore throat for 3 days. It started with a scratchy\\nfeeling and now it hurts to swallow. I don't have a fever but\\nI've been feeling tired. I had strep throat last year with\\nsimilar symptoms.\\n\",\n \"region\": \"US-CA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mcp.arlohealth.ai/api/consultations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contextMessage\": \"I've had a sore throat for 3 days. It started with a scratchy\\nfeeling and now it hurts to swallow. I don't have a fever but\\nI've been feeling tired. I had strep throat last year with\\nsimilar symptoms.\\n\",\n \"region\": \"US-CA\"\n}"
response = http.request(request)
puts response.read_body{
"conversationId": "<string>",
"status": "IDLE"
}{
"error": "<string>",
"reason": "<string>",
"code": "<string>"
}{
"error": "<string>",
"needsAuth": true
}Authorizations
OAuth 2.1 with PKCE
Body
Input for starting a conversation.
Important: Format contextMessage as a first-person narrative, not a clinical summary. Include symptom, duration, severity, associated symptoms, and history.
First-person narrative of health concern
"I've had a sore throat for 3 days. It started with a scratchy\nfeeling and now it hurts to swallow. I don't have a fever but\nI've been feeling tired. I had strep throat last year with\nsimilar symptoms.\n"
ISO 3166-2 code for where the patient is physically located right now (care is licensed by current location, not home address). An unsupported region is refused with REGION_NOT_SUPPORTED.
"US-CA"
Response
Consultation started
Response after starting a new conversation. The request returns as soon as the conversation is created (fast-ack) — it does NOT block for the first triage reply. Poll GET /api/consultations/{id} (or configure a webhook) to receive the AI's response.
The conversation ID
A conversation is a continuous thread — it never "closes." There is no terminal CLOSED/CANCELED status: a finished or canceled request simply leaves the conversation IDLE with its visit history intact.
- IDLE: AI-only, nothing in progress. Re-engageable — sending a message re-runs triage
- TRIAGING: AI is gathering symptom information on a live request
- PAYMENT_REQUIRED: Triage complete, awaiting payment confirmation (or dismissal)
- MATCHING: Being matched with a healthcare provider
- WITH_PROVIDER: A provider is connected (messaging is asynchronous)
- EMERGENCY: Urgent care advised — user should call 911 (not re-engageable)
IDLE, TRIAGING, PAYMENT_REQUIRED, MATCHING, WITH_PROVIDER, EMERGENCY Was this page helpful?