---
title: "Get contract"
method: GET
path: "/contracts/{id}"
tags: ["contracts"]
---

# Get contract

`GET /contracts/{id}`

## Request

- Base URL: `https://api.hoorayhr.io`
- URL: `https://api.hoorayhr.io/contracts/{id}`
- Auth: API key in header `authorization`

Retrieves a single resource with the given id from the service.

## Path parameters

- `id` integer, required

## Response `200`

success

- Contracts
  - `id` integer: ID of the contract
  - `userId` integer: Unique id of the user.
  - `userIdApproved` integer, nullable: Unique id of the user that added the contract
  - `contractStartDate` string, date: Start date of the contract in ISO Date format
  - `contractEndDate` string, date, nullable: End date of the contract in ISO Date format
  - `probationEndDate` string, date, nullable: End date of the probation period of the contract
  - `signedContract` integer, nullable: Tiny-int indicating if the contract has been signed.
  - `notes` string, long-text, nullable: Optional text field for remarks about the contract
  - `labelIds` integer[]: List of id's belonging to labels
  - `labels` Labels[]: **DEPRECATION NOTICE**: The object variant (containing the translated name per locale) for labels is deprecated and will be removed in the future. Use the simple string variant instead. Switching to the new string variant can be done by providing `useTranslatedLabels=true` as query parameter.
    - `id` integer: ID of the label
    - `documentCategoryId` integer, nullable: ID of the parent document category
    - `workflowCategoryId` integer, nullable: ID of the parent workflow category
    - `name` union, required: Either an object containing the translated name per locale or a simple string with name of the label. **DEPRECATION NOTICE**: The object variant (containing the translated name per locale) for labels is deprecated and will be removed in the future. Use the simple string variant instead. Switching to the new string variant can be done by providing `useTranslatedLabels=true` as query parameter.
      - string: Only for requests providing `useTranslatedLabels=true` as query parameter
      - object: Only for requests that do not provide `useTranslatedLabels=true` as query parameter
    - `type` 'ASSETS' | 'CONTRACTS' | 'DOCUMENTS' | 'EXPENSE_CLAIMS' | 'HOURS' | 'LEAVE' | 'SICK_LEAVE_PHASE' | 'TIME_TRACKING' | 'TRAVEL_EXPENSES' | 'WORKFLOWS', required: Enum of the service the label is assigned to
    - `systemCategoryType` 'car' | 'computer' | 'key' | 'tablet' | 'cell phone' | 'license' | 'fixed-term' | 'internship' | 'permanent' | 'parking costs' | 'food and drinks' | 'promotional gift' | 'office supplies' | 'cost of studies' | 'travel expenses' | 'commuting' | 'customer visit' | 'conference', nullable: System pre-defined labels get type
    - `archivedAt` string, date-time, nullable: Timestamp of label being archived
    - `createdAt` string, date-time: Creation date of the label
    - `updatedAt` string, date-time: Last updated date of the label
    - `deletedAt` string, date-time, nullable: Deleted date of the label
  - `status` 'ACTIVE' | 'FUTURE' | 'INACTIVE': Status of the contract
  - `type` integer: The type of contract. 1 = fixed-term, 2 = permanent, 3 = internship
  - `createdAt` string, date-time: Creation date of the contract
  - `updatedAt` string, date-time: Last updated date of the contract

## Other responses

- `401`: not authenticated
- `404`: not found
- `500`: general error

---

[API](https://skmtc.dev/hoorayhr/apis/hoorayhr-api-documentation.md) · [All operations](https://skmtc.dev/hoorayhr/apis/hoorayhr-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/hoorayhr/apis/hoorayhr-api-documentation/revisions/3adcd47cd827?raw)
