Help › For partners
Health data API for partners
How collars, trackers, vet clinics and labs send a dog's health data into Trot.
Collars and trackers (Fi, Halo, Tractive and others), vet clinics and labs can send a dog's health data into Trot. The owner sees it on the dog's Health screen next to Trot's own walks, each number labelled with where it came from. This page is for the companies and clinics building that connection. Owners: see The health notebook.
Base address: https://app.gotrot.ai/api/v1. JSON in and out. Limit: 120 calls a minute per partner.
1. Get a partner key
Contact support to join the partner program. Say which product or clinic you are and what data you want to send. The Trot team sends you a key that starts
trot_pk_. It is shown once. Keep it on your server; never ship it in an app. Trot can revoke it, which cuts
every dog you reach.
2. Connect a dog
Access is per dog, and the owner gives it.
- In Trot, the owner opens Health → Connected sources → Connect a source. Trot shows an 8-character code
such as
K7QX-M2PA. It works once and lasts 15 minutes. - The owner types the code into your app, or reads it to your clinic.
- You trade it for a connection token:
POST /api/v1/connections
Authorization: Bearer trot_pk_...
{ "code": "K7QX-M2PA" }
201 { "connectionId": "...", "token": "trot_ct_...", "scopes": ["metrics:write","records:write","profile:read"], "dog": { "name": "Biscuit" } }
Store the token with your record of that dog. It reaches that one dog only. A second code for the same dog replaces your earlier token. The owner can turn the connection off at any time; your calls then get 401.
Scopes: metrics:write (daily numbers), records:write (health records), profile:read (name, breed,
birthday, sex, size, weight). A call outside the scopes gets 403.
3. Send daily numbers
One value per dog, day and metric. Sending a day again replaces your earlier value, so resending is safe. Up to 90 days a call, no older than 400 days.
PUT /api/v1/metrics
Authorization: Bearer trot_ct_...
{ "days": [ { "date": "2026-11-30", "steps": 8200, "activeMinutes": 64, "sleepMinutes": 690, "restingHeartRate": 72 } ] }
200 { "ok": true, "saved": 4 }
| Metric | Unit | Range |
|---|---|---|
steps |
whole number | 0 to 300000 |
activeMinutes, restMinutes, sleepMinutes |
minutes | 0 to 1440 |
distanceKm |
km | 0 to 300 |
calories |
kcal | 0 to 20000 |
restingHeartRate |
beats a minute | 20 to 300 |
respiratoryRate |
breaths a minute | 4 to 150 |
temperatureC |
°C | 30 to 45 |
barks |
whole number | 0 to 100000 |
scratchingMinutes, lickingMinutes, eatingMinutes, drinkingMinutes |
minutes | 0 to 1440 |
date is the dog's local calendar day. An unknown metric or a value out of range fails the whole call with
400 and a message naming the field; nothing is saved.
4. Send health records
Each record carries your own externalId. Sending the same externalId again updates the record, so there
are no duplicates. Up to 100 records a call. One bad record fails the call and nothing is saved.
PUT /api/v1/records
Authorization: Bearer trot_ct_...
{ "records": [
{ "externalId": "vax-881", "kind": "vaccine", "title": "Rabies", "occurredOn": "2026-10-31", "dueOn": "2027-10-31" },
{ "externalId": "lab-204", "kind": "lab_result", "title": "ALT", "value": 52, "unit": "U/L", "referenceRange": "10-100", "occurredOn": "2026-10-31" }
] }
200 { "ok": true, "created": 2, "updated": 0, "results": [ { "externalId": "vax-881", "id": "...", "status": "created" }, ... ] }
kind |
Fields |
|---|---|
weight |
value, unit (lb or kg), occurredOn |
vaccine |
title, occurredOn, dueOn, notes |
medication |
title, detail (dose), schedule, occurredOn (start), dueOn (end), notes |
vet_visit |
title (reason), occurredOn, detail (clinic), notes |
condition |
title, notes |
allergy |
title, notes (shown under Conditions and allergies) |
lab_result |
title (test), value, unit, referenceRange, occurredOn, notes (shown under Notes) |
note |
title, notes |
Dates are YYYY-MM-DD. Remove a record with DELETE /api/v1/records/<externalId>.
5. Other calls
GET /api/v1/dogreturns{ dog: { name, breed, birthday, sex, size, weight } }(needsprofile:read).DELETE /api/v1/connectiondisconnects you from the dog.
What owners see and control
- Health → All sources, last 7 days: each number with its source name.
- Records you send appear in their sections marked "From <your name>". Owners can delete them, not edit them.
- Health → Connected sources lists you, what you send and when you last sent. Owners can disconnect you there.
- Deleting a dog or an account removes its connections and the daily numbers you sent.
Errors
| Status | Meaning |
|---|---|
| 400 | Something in the body is wrong. The message names the field. |
| 401 | Missing, wrong or revoked key or token. |
| 403 | The owner did not allow that scope. |
| 404 | Link code not valid, used or expired; or no such record. |
| 429 | Too many calls. Wait for Retry-After seconds. |
Not built yet
- Trot does not read data back out to partners beyond the dog profile.
- No webhooks from Trot to partners.
- Records cannot carry file attachments (PDF lab reports).
- No FHIR or other clinical format; fields are the plain ones above.
Did this not answer it? Ask in the box at the top of the page, or contact support.