Project metrics
Aggregated event + webhook delivery counts for a 24h or 7d window.
GET
/api/projects/{id}/metrics
Authentication
API Key (cookie: better-auth.session_token)
Path Parameters
id
string
required
path
Example:
"abc123"Query Parameters
range
string
optional
query
Responses
200
Metrics window
application/jsonrange
string
REQUIRED
events
object
REQUIRED
total
number
REQUIRED
ready_count
number
REQUIRED
failed_count
number
REQUIRED
webhooks
object
REQUIRED
total
number
REQUIRED
delivered
number
REQUIRED
dead
number
REQUIRED
404
Not found
curl -X GET 'https://motioness.com/api/projects/abc123/metrics'
const response = await fetch('https://motioness.com/api/projects/abc123/metrics', { method: 'GET'});const data = await response.json();console.log(data);
import requestsresponse = requests.get('https://motioness.com/api/projects/abc123/metrics')print(response.json())
200
Response
{ "range": "<string>", "events": { "total": 123, "ready_count": 123, "failed_count": 123 }, "webhooks": { "total": 123, "delivered": 123, "dead": 123 }}
API Playground
Try this endpoint
GET
/api/projects/{id}/metrics