1 operation. Each needs an API key with the permission shown; see API keys and permissions.
| Operation | Permission |
|---|---|
GET /api/v1/reports/{type} | reports:read |
#GET /api/v1/reports/{type}
A report for a period. hours, fills, coverage, credentials and fairness need Reports; payroll, invoice and margin need Pay and billing instead.
- Permission:
reports:read - Returns: one record:
{ data }, status 200
Path
| Name | Description |
|---|---|
type | One of hours, fills, coverage, credentials, fairness, payroll, invoice, margin. |
Query parameters (all optional)
| Name | Description |
|---|---|
from | First day, YYYY-MM-DD. Default: 30 days before to. |
to | Last day, YYYY-MM-DD. Default: today. At most 366 days after from. |
role | fairness only: one role. |
Fields in each record: type, period, …the report's own figures
curl "https://app.staffedly.com/api/v1/reports/hours?from=2027-01-01&to=2027-01-31" \
-H "Authorization: Bearer $STAFFEDLY_API_KEY"