Skip to content

Analytics API endpoint missing user field despite sending it in requests #88

@ldriss

Description

@ldriss

Hi Team

Problem:

We send user parameter in all OpenRouter requests
User tracking shows up in OpenRouter dashboard UI

But /api/v1/activity endpoint doesn't return user field in the response
Can't programmatically track which users made which requests

Current Analytics Response:

{ "date": "2025-10-23", "model": "anthropic/claude-sonnet-4.5", "requests": 187, "usage": 36.708345, // NO "user" field here}

Expected Response:

{ "date": "2025-10-23", "model": "anthropic/claude-sonnet-4.5", "user": "user_123", // Should include this "requests": 187, "usage": 36.708345}

User tracking : https://openrouter.ai/docs/use-cases/user-tracking
Get User Analytics : https://openrouter.ai/docs/sdks/typescript/analytics

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions