Create chat completion
chat
Create chat completion
OpenAI-compatible chat completion endpoint with user context
POST
Create chat completion
Authorizations
OAuth bearer token for Health API authentication
Path Parameters
User ID (e.g., google_104940819145861640201)
Body
application/json
Chat completion request
Model to use for completion
Required range:
0 <= x <= 2Required range:
x >= 1Whether to stream the response
Required range:
0 <= x <= 1Required range:
-2 <= x <= 2Required range:
-2 <= x <= 2Context sections to omit from automatic enrichment:
- all: skip all enrichment (system prompt + knowledge); keep messages unchanged
- knowledge: skip retrieval of knowledge base context and links
- scores: omit recent score summaries from the system prompt
- workouts: omit recent workout/activity summaries
- baselines: omit baseline medians/ranges from the system prompt
- facts: omit long-term personal facts/profile information
- notes: omit helper notes explaining metrics and data columns
- language: omit user language; fall back to default
Available options:
all, knowledge, scores, workouts, baselines, facts, notes, language