cURL
curl --request GET \ --url https://production.api.onvy.health/users/{user_id}/chat/completions/{completion_id} \ --header 'X-API-Key: <api-key>'
{ "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 } }
Get a specific chat completion message
API key for authentication
User ID (e.g., google_104940819145861640201)
Chat completion ID
Chat completion details
Unique identifier for the completion
Unix timestamp
Model used for the completion
Show child attributes
Was this page helpful?