Skip to main content
GET
/
v1
/
projects
/
{id}
/
metrics
Read a single project-scoped metric (TRU-362)
curl --request GET \
  --url https://api.trulayer.ai/v1/projects/{id}/metrics \
  --header 'Authorization: Bearer <token>'
{
  "metric": "retry_cap_hit",
  "value": 1,
  "window": "7d"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Path Parameters

id
string<uuid>
required

Query Parameters

metric
enum<string>
required
Available options:
retry_cap_hit
window
enum<string>
required
Available options:
7d,
30d

Response

Metric value

Single project-scoped metric value (TRU-362). value is always an integer count; 0 is returned (not null) when no rows match.

metric
enum<string>
required
Available options:
retry_cap_hit
value
integer<int64>
required
Required range: x >= 0
window
enum<string>
required
Available options:
7d,
30d