Request Tracking
Request Tracking lets you add optional identifiers to each API request, making it easier to find, filter, and analyze requests by user, session, application, or tag in Logs, Usage & Activity, and the Analytics API.
Tracking fields
Add any of these optional fields at the top level of a request body: user_id, session_id, app_id, and tag. Each value must be a string of no more than 64 characters. The fields can be used independently.
Supported APIs
Request Tracking is available across:
Text generation, including OpenAI Chat Completions, Anthropic Messages, and OpenResponses
Image, audio, and video generation
Embeddings and rerank
Search APIs
Example
curl https://llm.onerouter.pro/v1/chat/completions \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-5.5",
"messages": [
{
"role": "user",
"content": "Summarize this support ticket."
}
],
"user_id": "customer_123",
"session_id": "ticket_456",
"app_id": "support-copilot",
"tag": "ticket-summary"
}'Find and analyze requests
In Logs, filter requests by User ID, Session ID, App ID, or Tag. These fields also appear in the request table and Log Details.


In Usage & Activity, use the same fields to filter usage statistics.


In the Analytics API, use these fields as dimensions or filters.
Last updated