List worker types
const url = 'https://api2.recruso.co.uk/v1/reference/worker-types';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/reference/worker-types \ --header 'Authorization: <Authorization>'Returns every worker type the platform publishes. The basis an agency engages a worker on. The values are Temporary, Permanent, Commercial Permanent, Limited, PSC-In Scope, PSC-Out of Scope and Swedish Derogation.
These values are platform-wide: every agency sees the same list and the same ids, and your agency cannot add to them or change them. Use the id wherever a request asks for a worker type — workerTypeId on CreateWorker.
The list is not paged, and no order is guaranteed — sort client-side if you need one. The values change very rarely, so cache them rather than fetching them before every call.
Access. Requires an authenticated token. No further policy is applied.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Every worker type the platform publishes.
object
The worker types. Never null.
One worker type in a list.
object
The worker type’s identifier. Stable and platform-wide — the same id means the same thing for every agency.
The worker type name, as it appears in Recruso. Up to 50 characters. Unique across all worker types.
Example
{ "workerTypes": [ { "id": 1, "name": "Permanent" } ]}Unauthorized
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
