StaffAdd leave

Add leave

Needs: Staff, Read-write

Adds leave for a staff member, like Add leave on their Leave tab. It starts as Pending. Suppliers and archived staff are refused.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/leave" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "staff_id": 31,
  "from": "2026-03-02",
  "to": "2026-03-06",
  "type": "annual",
  "reason": "Family holiday"
}'
{
  "created": 8,
  "leave": {
    "id": 8,
    "staff_id": 31,
    "staff": "Example Worker",
    "from": "2026-03-02",
    "to": "2026-03-06",
    "days": 5,
    "type": "annual",
    "status": "Pending",
    "reason": "Family holiday"
  }
}
POST
/leave
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Content-Typestring
Required

The media type of the request body

Options: application/json
staff_idinteger
Required

The staff member's user id.

fromstring
Required

First day of leave, YYYY-MM-DD, today or later.

tostring
Required

Last day of leave, YYYY-MM-DD, on or after from.

typestring
Required

annual, sick or personal.

reasonstring
Required

Up to 500 characters.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Body

application/json
staff_idinteger
Required

The staff member's user id.

fromstring
Required

First day of leave, YYYY-MM-DD, today or later.

tostring
Required

Last day of leave, YYYY-MM-DD, on or after from.

typestring
Required

annual, sick or personal.

reasonstring
Required

Up to 500 characters.

Responses