---
title: "Create time-off request"
method: POST
path: "/time_offs"
tags: ["timeOff"]
---

# Create time-off request

`POST /time_offs`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/time_offs`
- Auth: HTTP bearer

Creates a time-off request for a worker under a policy; without a status it is created as approved. Use `POST /rest/time_offs/validate` first to check the request without creating it. A request created as REQUESTED stays pending until it is reviewed with `POST /rest/time_offs/review`, or handled through the Deel approval flow when you opt into it.

 **Token scopes**: `time-off:write`, `worker:write`

## Request body

- object
  - `data` TimeOffsPostRequestBodyContentApplicationJsonSchemaData: The time off request data
    - `dates` TimeOffsPostRequestBodyContentApplicationJsonSchemaDataDatesItems[]: The dates breakdown for the time off request.
      - `date` union, required: An specific date in the time-off request
        - string, date
        - string, date-time
      - `hours` string: The amount taken in hours during this specific date. It can not exceed the maximum allowed hours for the date.
      - `amount` string: The amount of time off requested for the date. It must be in the same time unit as in the total amount for the time off request.
      - `day_type` 'HALF_DAY' | 'FULL_DAY' | 'PERCENTAGE' | 'HOURLY': The type of day for the time off request. All dates must follow the same type.
    - `reason` string, nullable: Reason for taking time off. This is complementary information for the time-off description. Useful to provide sub categories for the same policy.
    - `status` 'REQUESTED' | 'APPROVED': Status for the time off request. When set to REQUESTED, the time off should be reviewed later through POST /time_offs/review.
    - `is_paid` boolean: Whether the time off is paid or unpaid. By default it follows the policy configuration.
    - `end_date` union, required: End date of the time off request. This is the date when the time off ends. For example, if you take 2 days off, this will be the end date of the second day.
      - string, date
      - string, date-time
    - `policy_id` string, uuid: The time off policy id. Can be used in place of time_off_type_id
    - `start_date` union, required: Start date of the time off request. This is the date when the time off starts. For example, if you take 2 days off, this will be the start date of the first day.
      - string, date
      - string, date-time
    - `description` string, nullable: Description of the time off request. Some policies require that a description is provided.
    - `contract_oid` string, nullable: Contract id. This is the id of the contract associated with the time off request.
    - `event_details` TimeOffsPostRequestBodyContentApplicationJsonSchemaDataEventDetails: Details of the event associated with the time off request. Required for event based policies such as parental leave. Not accepted on a policy with request steps: send the answers of the event in `custom_field_values`.
      - `birth_date` string, date, required: The birth date of the child. This is used for parental leave requests.
      - `adoption_date` string, date: The date of adoption. This is used for parental leave requests.
      - `was_premature_birth` boolean, required: Whether the birth was premature or not. This is used for parental leave requests.
      - `had_multiple_children` boolean, required: Whether the birth was multiple or not. This is used for parental leave requests.
    - `deduction_amount` string, nullable: Deduction amount. Available for independent contractor's policies
    - `time_off_type_id` string, uuid: The time off type id. Required when policy_id is not provided
    - `time_off_event_id` string, uuid: The time off event id. This is used to link the time off request to an event. On a policy with request steps, set it to continue an existing event; leave it out to declare a new event with the answers.
    - `custom_field_values` TimeOffsPostRequestBodyContentApplicationJsonSchemaDataCustomFieldValuesItems[], nullable: Answers to the custom fields the request policy declares, addressed by custom field key (`field_key`) or, for existing clients, by custom field id (`field_id`). Each answer names a different field. On a policy with request steps, send every answer of the request in this call: the dates and the description stay in their own properties, and a document field takes the position (0, 1, 2…) of its file in `files`.
      - `value` union, required: The submitted value for the custom field. Accepts a string, number, or boolean — always stored as text. `null` means "no answer for this field" and is rejected today, since no field supports a null answer yet.
        - string
        - number, double
        - boolean
      - `field_id` string, uuid: The id of the custom field this value answers, kept for the clients that already send it. An id from an earlier version of the policy answers the current field with the same key. Send exactly one of `field_key` and `field_id` in each answer.
      - `field_key` string: The key of the custom field this value answers. The key stays the same when the policy changes, so prefer it to `field_id`. Send exactly one of `field_key` and `field_id` in each answer.
    - `time_off_percentage` number, double, nullable: This is the percentage of time off taken. This is used when the time off request is a percentage.
    - `recipient_profile_id` string, uuid, required: The hris profile id of the recipient
    - `other_type_description` string, nullable: Description of the time off type. This is used when the policy is OTHER.
    - `use_deel_approval_flow` boolean: Whether to use Deel's approval flow for this time off request. If set to true, the time off request will go through Deel's approval flow instead of being handled through the public-api review time-off endpoint.

## Response `201`

Time off creation data

- TimeOffCreateTimeOffRequestResponse201: The list of created time offs. Depending on the selected dates, a time off can be split into more than one request.
  - `time_offs` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItems[], required: The list of created time offs. Depending on the selected dates, a time off can be split into more than one request.
    - `amount` string: Amount of time off taken. This is the total amount of time off taken. For example, if you take 2 days off, this will be 2. If you take 1 day off, this will be 1.
    - `reason` string: Reason for taking time off. This is complementary information for the time-off description. Useful to provide sub categories for the same policy.
    - `status` 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'USED' | 'CANCELED' | 'DELETED': Status of the time off request. Can be REQUESTED, APPROVED, REJECTED, USED or CANCELED.
    - `is_paid` boolean, required: Whether the time off is paid or unpaid.
    - `end_date` string, date, required: End date of the time off request. This is the date when the time off ends. For example, if you take 2 days off, this will be the end date of the second day.
    - `created_at` string, date-time, required: This is the date when the time off request was created in the database.
    - `deleted_at` string, date-time, nullable: Time off deletion date. Present only when the time-off is soft-deleted and include_deleted_time_offs was requested.
    - `start_date` string, date, required: Start date of the time off request. This is the date when the time off starts. For example, if you take 2 days off, this will be the start date of the first day.
    - `updated_at` string, date-time, required: This is the date when the time off request was last updated in the database.
    - `approved_at` string, date-time, nullable: This is the date when the time off request was approved. This will be null if the time off request is not approved yet.
    - `attachments` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsAttachmentsItems[]: List of attachments associated with the time off request.
      - `id` string, uuid, required: Attachment id
      - `filename` string, required: Filename of the attachment
      - `created_at` string, date-time, required: This is the date when the attachment was created in the database.
      - `updated_at` string, date-time, required: This is the date when the attachment was last updated in the database.
    - `canceled_at` string, date-time, nullable: Time off cancellation date
    - `description` string: Description of the time off request. Some policies require that a description is provided.
    - `contract_oid` string, nullable: Contract id. This is the id of the contract associated with the time off request.
    - `requested_at` string, date, required: This is the date when the time off request was made.
    - `half_end_date` boolean, required: Whether the end date is a half day or not.
    - `time_off_type` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsTimeOffType: The type of time off taken.
      - `id` string, uuid, required: Time off type id.
      - `name` string, required: Time off type name. Basically the reason or category of time-off taken. For SICK leave, it can be doctor appointment, surgery etc.
      - `policy` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsTimeOffTypePolicy: The policy associated with the time off type.
        - `id` string, uuid, required: Policy id
        - `name` string, required: The custom name given to policy during policy creation.
        - `policy_type` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsTimeOffTypePolicyPolicyType, required
          - `id` string, uuid, required: Policy type id
          - `name` string, required: Depicts the type of policy, like VACATION, SICK etc
    - `time_off_event` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsTimeOffEvent
      - `id` string, uuid: The time off event id. This is used to link the time off request to an event.
      - `type` 'PARENTAL_LEAVE': The type of the time off event.
      - `policy_id` string, uuid: The policy id associated with the time off event. Same as the policy_id in the time off type.
      - `created_at` string, date-time: The date when the time off event was created in the database.
      - `updated_at` string, date-time: The date when the time off event was last updated in the database.
      - `event_details` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsTimeOffEventEventDetails: Details of the event associated with the time off request. Required for event based policies such as parental leave.
        - `birth_date` string, date: The birth date of the child. This is used for parental leave requests.
        - `adoption_date` string, date: The date of adoption. This is used for parental leave requests.
        - `was_premature_birth` boolean, required: Whether the birth was premature or not. This is used for parental leave requests.
        - `estimated_birth_date` string, date: The estimated birth date of the child. Birth is estimated when the birth date has not been confirmed yet.
        - `had_multiple_children` boolean, required: Whether the birth was multiple or not. This is used for parental leave requests.
        - `estimated_adoption_date` string, date: The estimated adoption date of the child. Birth is estimated when the adoption date has not been confirmed yet.
      - `hris_profile_id` string, uuid: The HRIS profile id of the worker associated with the time off event. Same as the hris_profile_id in the recipient_profile.
      - `time_off_type_id` string, uuid: The time off type id associated with the time off event. Same as the time_off_type_id in the time off request.
    - `half_start_date` boolean, required: Whether the start date is a half day or not.
    - `deduction_amount` string, nullable: Deduction amount. Available for independent contractor's policies
    - `entitlement_unit` 'HOUR' | 'BUSINESS_DAY' | 'CALENDAR_DAY' | 'WEEK' | 'MONTH' | 'YEAR', required: The unit in which the time off usage and entitlement are calculated.
    - `time_off_dailies` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsTimeOffDailiesItems[]
      - `id` string, uuid, required: Time off daily id
      - `date` string, date, required: Date of the time off daily. This is the date when the time off was taken.
      - `type` 'WORKING_DAY' | 'NON_WORKING_DAY' | 'HOLIDAY' | 'FORFAIT_HOUR_DAY', required: Type of the time off daily. Can be WORKING_DAY, NON_WORKING_DAY, HOLIDAY or FORFAIT_HOUR_DAY.
      - `amount` string, required: Amount of time off taken in this specific date.
      - `created_at` string, date-time, required: This is the date when the time off daily was created in the database.
      - `updated_at` string, date-time, required: This is the date when the time off daily was last updated in the database.
      - `description` string, nullable: Description of the time off daily. When it is a HOLIDAY this is the holiday name.
      - `time_off_id` string, uuid, required: Time off id. This is the id of the time off request associated with the time off daily.
    - `time_off_type_id` string, uuid, required: Time off type id. This is the id of the time off type associated with the time off request.
    - `recipient_profile` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsRecipientProfile: The time off profile of the recipient of the time off request. Must be a worker profile.
      - `hris_profile_id` string, uuid, required: The worker HRIS profile id in the given organization.
      - `organization_id` string, uuid, required: Id of the organization the profile belongs to.
    - `requester_profile` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsRequesterProfile: The time off profile of the requester of the time off request. Can be either a client or worker profile.
      - `hris_profile_id` string, uuid: The worker HRIS profile id in the given organization. Available when the requester is a worker.
      - `organization_id` string, uuid, required: Id of the organization the profile belongs to.
      - `client_profile_id` string, uuid: Id of the client profile. Available when the requester is a client.
    - `custom_field_values` TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItemsCustomFieldValuesItems[]: Answers to the custom fields the request policy declares. Omitted when the policy declares none.
      - `value` string, nullable, required: The submitted value for the custom field, serialized as text. When no value is provided, this will be null.
      - `field_id` string, uuid, required: The id of the custom field this value answers.
    - `time_off_percentage` string, nullable: This is the percentage of time off taken.
    - `is_end_date_estimated` boolean: Whether the end date is estimated or not. This is used on event based policies such as Parental leave.
    - `other_type_description` string, nullable: Description of the time off type. This is used when the policy is OTHER.

## Other responses

- `400`: Bad Request
- `401`: Operation failed.
- `403`: Forbidden
- `404`: Not Found
- `500`: Operation failed.

## Changes

- **2026-12-01** `b7b456c45a40`: 2 info
  - added the new optional request property `data/custom_field_values/items/field_key`
  - the request property `data/custom_field_values/items/field_id` became optional

[Operation history](https://skmtc.dev/deel/apis/hris-endpoints/changes/time_offs/post.md)

---

[API](https://skmtc.dev/deel/apis/hris-endpoints.md) - [All operations](https://skmtc.dev/deel/apis/hris-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/hris-endpoints/revisions/b7b456c45a40?raw)
