Skip to main content
GET
/
company
/
leaves-types
Get Leave Types
curl --request GET \
  --url https://api.projectcor.com/v1/company/leaves-types \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 111,
    "name": "Custom license",
    "type_code": "CODE",
    "company_id": 111,
    "created_at": "2024-12-06T13:02:53.000Z",
    "updated_at": "2024-12-06T13:02:53.000Z",
    "deleted_at": null,
    "icon_name": "icon name"
  },
  {
    "id": 12,
    "name": "flexday",
    "type_code": "UL12",
    "company_id": null,
    "created_at": "2022-09-14T12:09:10.000Z",
    "updated_at": "2024-07-15T17:16:56.000Z",
    "deleted_at": null,
    "icon_name": "Loveseat"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

List of leave types including default and custom types

id
integer
name
string
type_code
string
company_id
integer | null
created_at
string<date-time>
updated_at
string<date-time>
deleted_at
string<date-time> | null
icon_name
string