Time off

Leave types

GET
/v1/workspaces/{workspace_id}/timeoff/leave-types

The workspace’s kinds of time off, in its order.

Authorization

bearer
headerAuthorizationBearer <token>

An access token from /v1/auth/token, or a personal token: opaque, beginning s2a_.

Path Parameters

workspace_id*string

wsp_…, from GET /v1/me

Lengthlength <= 40

Response Body

Default Response

application/json
  1. response
data*array<>
curl -X GET 'https://api.sign2approve.com/v1/workspaces/string/timeoff/leave-types'
{  "data": [    {      "id": "lvt_01a16d3fd3507be78e41c4540aa20a3c",      "name": "Holiday",      "colour": "teal",      "icon": "Palmtree",      "deducts": true,      "approval": "required",      "private": false,      "half_days": true,      "open_ended": false,      "sickness": false    }  ]}