Get worker turnover historical report for a specific employer
POST/v1/reporting/:employer/reports/worker_turnover/historical
Retrieves historical turnover metrics by period: total/voluntary/involuntary turnover, headcount, rehires, and turnover rate. Period range is computed from to_date and period_granularity (e.g. 12 weeks, 12 months, 12 quarters, 12 years).
Request
Path Parameters
Use me, or the numeric employer id bound to this client id. me means that employer. Any other id is rejected. The OAuth application does not choose the employer.
Query Parameters
End date (YYYY-MM-DD). The 12 calendar periods work backwards from this date and period_granularity. Bookings in each period use the booking start date. Turnover events use the date the worker left. This is not an invoice or billing date.
Period granularity. Must be one of: WEEK, MONTH, QUARTER, YEAR
Responses
- 200
- 400
- 403
- 404
- 429
- 500
- 503
- 504
Successfully retrieved historical turnover report
Response Headers
RateLimit-Limit
integer
Requests allowed each minute.
RateLimit-Remaining
integer
Requests left in the current minute.
RateLimit-Reset
integer
Seconds until the limit resets.
- */*
- Schema
- Example (from schema)
Schema
Array [
]
metadata
object
periods
object[]
{ "metadata": { "employer_id": 0, "to_date": "string", "period_from": "string", "period_granularity": "string", "generated_at": "2026-12-02T12:03:41.289Z" }, "periods": [ { "date": "string", "granularity": "string", "total_turnover": 0, "voluntary_turnover": 0, "involuntary_turnover": 0, "headcount": 0, "rehires": 0, "turnover_rate": 0, "turnover_percentage": 0 } ]}Invalid request parameters. The response body follows the ErrorResponse schema.
- application/json
- Schema
- Example (from schema)
Schema
Human-readable error message.
Machine-readable error classification (e.g. VALIDATION_ERROR, TIMEOUT_ERROR, CIRCUIT_BREAKER_OPEN).
Whether the request can be safely retried.
When the error occurred.
{ "error": "string", "errorType": "string", "retryable": true, "timestamp": "2026-12-02T12:03:41.290Z"}The Bearer token is missing, expired, or invalid, the employer id in the path is not the employer bound to this client id, or this client may not call this report. me means that employer. The RateLimit-* headers are present only on a refusal after the token was accepted.
Response Headers
RateLimit-Limit
integer
Requests allowed each minute.
RateLimit-Remaining
integer
Requests left in the current minute.
RateLimit-Reset
integer
Seconds until the limit resets.
- application/json
- Schema
- Example (from schema)
Schema
When the request was refused.
The HTTP status code.
The status name.
The path the request asked for.
{ "timestamp": "2026-12-02T12:03:41.290Z", "status": 0, "error": "string", "path": "string"}The path is not a reporting endpoint.
Rate limit exceeded. Retry after the interval indicated by the Retry-After response header. The response body is plain text rather than the ErrorResponse schema.
Response Headers
Retry-After
integer
Seconds to wait before retrying.
RateLimit-Limit
integer
Requests allowed each minute.
RateLimit-Remaining
integer
Requests left in the current minute.
RateLimit-Reset
integer
Seconds until the limit resets.
- text/plain
- Schema
- Example
Schema
string
Too Many RequestsInternal server error. The response body follows the ErrorResponse schema.
- application/json
- Schema
- Example (from schema)
Schema
Human-readable error message.
Machine-readable error classification (e.g. VALIDATION_ERROR, TIMEOUT_ERROR, CIRCUIT_BREAKER_OPEN).
Whether the request can be safely retried.
When the error occurred.
{ "error": "string", "errorType": "string", "retryable": true, "timestamp": "2026-12-02T12:03:41.290Z"}The reporting database is temporarily unavailable. The response body follows the ErrorResponse schema. Retry the request.
- application/json
- Schema
- Example (from schema)
Schema
Human-readable error message.
Machine-readable error classification (e.g. VALIDATION_ERROR, TIMEOUT_ERROR, CIRCUIT_BREAKER_OPEN).
Whether the request can be safely retried.
When the error occurred.
{ "error": "string", "errorType": "string", "retryable": true, "timestamp": "2026-12-02T12:03:41.290Z"}Upstream timeout. The reporting backend did not respond in time. The response body follows the ErrorResponse schema.
- application/json
- Schema
- Example (from schema)
Schema
Human-readable error message.
Machine-readable error classification (e.g. VALIDATION_ERROR, TIMEOUT_ERROR, CIRCUIT_BREAKER_OPEN).
Whether the request can be safely retried.
When the error occurred.
{ "error": "string", "errorType": "string", "retryable": true, "timestamp": "2026-12-02T12:03:41.290Z"}