Start a medication course
Adds a medication course for a raptor (name, dosage, frequency, start and optional end date, optional daily reminder). Log each day’s dose with log_medication_dose.
bearerAuthAuthorizationBearer <token>A Clerk user API key or OAuth access token carrying the falconry:read and/or falconry:write scope.
raptorId*stringA raptor's id, from list_raptors.
length <= 64application/json- body
name*string1 <= length <= 200dosage?stringe.g. "0.1 ml". Defaults to empty.
length <= 200frequency?stringe.g. "twice daily". Defaults to empty.
length <= 200startDate*stringISO 8601 date (yyyy-mm-dd).
^\d{4}-\d{2}-\d{2}$endDate?stringOmit for an open-ended course.
^\d{4}-\d{2}-\d{2}$reminderEnabled?booleanreminderTime?string24-hour time of day, HH:MM.
^([01]\d|2[0-3]):[0-5]\d$linkedHealthRecordId?stringA health record of the same raptor this course belongs to.
length <= 64notes?stringlength <= 2000Start a medication course
application/json- response
id*stringOpaque Convex document id.
length <= 64raptorId*stringOpaque Convex document id.
length <= 64name*stringdosage*stringfrequency*stringstartDate*stringISO 8601 date (yyyy-mm-dd).
endDate*|ISO 8601 date, or null for an open-ended course.
reminderEnabled*booleanreminderTime*|Daily reminder time, HH:MM (24-hour).
linkedHealthRecordId*|nullnotes*string|nulldoseLog*array<>Logged doses, one per day, newest first (at most the last 60).
loggedByName*string|nullcurl -X POST 'https://app.falconryscale.com/api/v1/raptors/string/medications' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"startDate": "string"
}'{
"id": "string",
"raptorId": "string",
"name": "string",
"dosage": "string",
"frequency": "string",
"startDate": "string",
"endDate": "string",
"reminderEnabled": true,
"reminderTime": "string",
"linkedHealthRecordId": "string",
"notes": "string",
"doseLog": [
{
"date": "string",
"status": "taken",
"loggedAt": "string"
}
],
"loggedByName": "string"
}List a raptor’s medication courses
Returns one raptor’s medication courses (active and past), most recently started first. Capped at 200 rows by default (use `limit`).
Get one medication course
Returns one medication course by id, with its dose log. 404s if it does not exist or is not visible to the caller.