Skip to main content
GET
List enrollments

Authorizations

Authorization
string
header
default:Bearer sandbox_any_token_works
required

A brand's server, one OAuth client per brand and environment. Get a token with the client_credentials grant and send it as Authorization: Bearer <token>. Tokens last 1 hour. A brand server reads status and ids only; it never reads clinical content. A platform partner holds one client for all its brands and gets one token per brand, naming it with tenant_id.

Query Parameters

external_patient_id
string

Your own identifier, printable ASCII without spaces.

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]+$
Example:

"brand-pt-48213"

status
enum<string>
Available options:
pending_screening,
ineligible,
active,
paused,
cancelled,
completed
Example:

"active"

risk_level
enum<string>

Raised by clinical flags. Only a prescriber's resolve lowers it.

Available options:
normal,
elevated,
high
Example:

"normal"

plan_code
enum<string>
  • ai_only: the AI Coach only. Escalations go to the brand's prescriber as clinical flags.
  • ai_health_fitness: the AI Coach plus a health coach (nutrition) and a fitness coach.
Available options:
ai_only,
ai_health_fitness
Example:

"ai_health_fitness"

limit
integer
default:25

Page size.

Required range: 1 <= x <= 100
cursor
string

The next_cursor from the previous page. Omit it for the first page.

Maximum string length: 512

Response

A page of enrollments.

data
object[]
required
next_cursor
string | null
required

Pass it back as cursor for the next page. null on the last page.

Example:

"eyJpZCI6IjAxOTBmNWMyIn0"