GET
/
directory
/
api
/
4.0
/
work-contracts
curl --request GET \
  --url https://{host}/directory/api/4.0/work-contracts \
  --header 'Authorization: <authorization>'
{
  "items": [
    {
      "id": 514,
      "ownerId": 416,
      "startsOn": "2021-01-01",
      "endsOn": null,
      "isApplicable": true,
      "establishmentId": 13,
      "spcId": 1,
      "typeId": 1,
      "hiringTypeId": 3,
      "terminationReasonId": null,
      "trialPeriodDays": 120,
      "renewedTrialPeriodDays": null,
      "trialPeriodEndDate": "2021-05-01",
      "trialPeriodEndDate2": null,
      "authorId": 45,
      "lastModifierId": 45,
      "createdAt": "2021-11-08T17:48:18.12",
      "lastModifiedAt": "2024-01-10T12:27:02.22"
    }
  ],
  "count": 1
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Query Parameters

page
integer

Index of the page to retrieve. Starts at 1.

Required range: x >= 1
limit
integer

Page size (i.e. number of items per page).

Required range: 0 <= x <= 1000
fields.root
string

Retrieve the total number of items across all pages.

Allowed value: "count"
ownerId
integer[]

Only return work-contracts whose employees' ID match one of the given.

isApplicable
boolean

Only return work-contracts that are considered applicable (true) or not (false). When omitted, both are returned.

isArchived
boolean

Only return archived (true) work-contracts or active (false) ones.

typeId
integer[]

Only return work-contracts which reference one of the given work-contract types IDs.

establishmentId
integer[]

Only return work-contracts which belong to one of the given establishments IDs.

Response

200
application/json

OK

The response is of type object.