umami icon indicating copy to clipboard operation
umami copied to clipboard

The metrics endpoint does not accept the url metric type

Open tomer-dfinity opened this issue 2 months ago • 1 comments

Describe the Bug

The /api/websites/:websiteId/metrics does not allow the type=url parameter as documented. In the self deployed instance it works, in the cloud instance it seems like it was renamed to type=path. When doing it on the cloud umami you get the error

{"error":{"message":"Bad request","code":"bad-request","status":400}}

Database

PostgreSQL

Relevant log output


Which Umami version are you using? (if relevant)

No response

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

tomer-dfinity avatar Oct 08 '25 08:10 tomer-dfinity

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Dec 08 '25 02:12 github-actions[bot]

From the API Documentation page for metrics the type=path is the only one listed. I was using type=url as well and found there was backwards compatibility for url to route to path but in v3.0.0 seems like this broke again. In my case, I could switch to type=path and my process for using the API continued working again.

cjerrington avatar Dec 10 '25 22:12 cjerrington