cURL
curl --request GET \ --url https://production.api.onvy.health/users/{user_id}/chat/completions \ --header 'X-API-Key: <api-key>'
{ "messages": [ { "id": "<string>", "object": "<string>", "created": 123, "model": "<string>", "choices": [ { "index": 123, "message": { "role": "<string>", "content": "<string>" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 123, "completion_tokens": 123, "total_tokens": 123 } } ], "pagination": { "limit": 500, "total": 1, "page": "<string>", "next_page": "<string>" } }
Get paginated list of chat messages
API key for authentication
User ID (e.g., google_104940819145861640201)
Page Key for pagination
Number of items per page
1 <= x <= 1000
List of chat completions
Show child attributes
Was this page helpful?