Get one of a worker's compliance documents
GET
/v1/workers/{workerId}/compliances/{id}
const url = 'https://api2.recruso.co.uk/v1/workers/1/compliances/1';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api2.recruso.co.uk/v1/workers/1/compliances/1 \ --header 'Authorization: <Authorization>'Returns a single document from a worker’s right-to-work register in your own agency.
A document that belongs to a different worker, or to another agency, returns 404 rather than 403, so its existence is never disclosed.
Access. Requires a client-credentials access token. Tokens issued through the interactive user login are rejected.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workerId
required
integer format: int32
The workerId path parameter
id
required
integer format: int32
The id path parameter
Responses
Section titled “Responses”OK
Media typeapplication/json
object
workerComplianceId
The record’s identifier.
integer format: int32
complianceId
The kind of document, as an id from your agency’s Compliance lookup.
integer format: int16
startDate
The date the document takes effect.
string format: date
endDate
The date the document expires.
string format: date
Example
{ "workerComplianceId": 7311, "complianceId": 3, "startDate": "2026-01-15", "endDate": "2031-01-14"}Unauthorized
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
