Rate an AI Coach reply
curl --request PUT \
--url https://sandbox.rx.tera.health/v1/patient/ai-coach/messages/{message_id}/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rating": "down",
"note": "The swap still had fish in it"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({rating: 'down', note: 'The swap still had fish in it'})
};
fetch('https://sandbox.rx.tera.health/v1/patient/ai-coach/messages/{message_id}/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.rx.tera.health/v1/patient/ai-coach/messages/{message_id}/feedback"
payload = {
"rating": "down",
"note": "The swap still had fish in it"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"message_id": "0190f5cc-5e6f-7071-9283-9c0d1e2f3a45",
"rating": "down",
"note": "The swap still had fish in it"
}AI Coach
Rate an AI Coach reply
Thumbs up or down on one of the AI Coach’s messages, with an optional note. Rating again replaces it. Error code not_an_ai_message (422).
Plans: AI + health and fitness coaches (ai_health_fitness), AI only (ai_only).
PUT
/
v1
/
patient
/
ai-coach
/
messages
/
{message_id}
/
feedback
Rate an AI Coach reply
curl --request PUT \
--url https://sandbox.rx.tera.health/v1/patient/ai-coach/messages/{message_id}/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rating": "down",
"note": "The swap still had fish in it"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({rating: 'down', note: 'The swap still had fish in it'})
};
fetch('https://sandbox.rx.tera.health/v1/patient/ai-coach/messages/{message_id}/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.rx.tera.health/v1/patient/ai-coach/messages/{message_id}/feedback"
payload = {
"rating": "down",
"note": "The swap still had fish in it"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"message_id": "0190f5cc-5e6f-7071-9283-9c0d1e2f3a45",
"rating": "down",
"note": "The swap still had fish in it"
}Authorizations
A 15-minute token bound to one patient and one enrollment, issued by POST /v1/oauth/token with the
token-exchange grant. Treat it as opaque. When it expires, exchange a fresh assertion; there is no refresh token.
Path Parameters
Body
application/json

