---
updatedAt: 2026-07-22T14:25:27.000Z
agentTools:
  projectIndex: https://developer.personio.de/v1.0/llms.txt
---

# Get Time-Off by ID

Gets an absence period for absences with **time unit** set to **days**.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0",
    "title": "Personnel Data",
    "description": "API for reading and writing personnel data including data about attendances, absences, documents, etc"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "ruby",
      "java",
      "php",
      "node"
    ]
  },
  "paths": {
    "/company/time-offs/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/XPersonioPartnerID"
        },
        {
          "$ref": "#/components/parameters/XPersonioAppID"
        }
      ],
      "get": {
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "Absences"
        ],
        "description": "Gets an absence period for absences with **time unit** set to **days**.",
        "summary": "Get Time-Off by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Numeric `id` of the absence period",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbsencePeriodResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "data": {
                        "type": "TimeOffPeriod",
                        "attributes": {
                          "id": 12345,
                          "status": "approved",
                          "start_date": "2017-12-27T00:00:00+0100",
                          "end_date": "2017-12-29T00:00:00+0100",
                          "days_count": 3,
                          "half_day_start": false,
                          "half_day_end": false,
                          "time_off_type": {
                            "type": "TimeOffType",
                            "attributes": {
                              "id": 45678,
                              "name": "Vacation",
                              "category": "offsite_work"
                            }
                          },
                          "employee": {
                            "type": "Employee",
                            "attributes": {
                              "id": {
                                "label": "id",
                                "value": 2367,
                                "type": "integer",
                                "universal_id": "id"
                              },
                              "first_name": {
                                "label": "First name",
                                "value": "Michael",
                                "type": "standard",
                                "universal_id": "first_name"
                              },
                              "last_name": {
                                "label": "Last name",
                                "value": "Miller",
                                "type": "standard",
                                "universal_id": "last_name"
                              },
                              "email": {
                                "label": "Email",
                                "value": "michael.miller@demo.com",
                                "type": "standard",
                                "universal_id": "email"
                              }
                            }
                          },
                          "certificate": {
                            "status": "not-required"
                          },
                          "created_at": "2017-01-17T10:32:18+0100",
                          "updated_at": "2017-01-17T10:32:18+0100"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorAbsenceResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "success": false,
                      "error": {
                        "code": 404,
                        "message": "The absence period was not found."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.personio.de/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "parameters": {
      "XPersonioPartnerID": {
        "name": "X-Personio-Partner-ID",
        "in": "header",
        "required": false,
        "description": "The partner identifier",
        "schema": {
          "type": "string"
        }
      },
      "XPersonioAppID": {
        "name": "X-Personio-App-ID",
        "in": "header",
        "required": false,
        "description": "The application identifier",
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "Response": {
        "title": "Default response object",
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "object"
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "ErrorAbsenceResponse": {
        "title": "404 absence error",
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": false
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "integer",
                "example": 404
              },
              "message": {
                "example": "The absence period was not found."
              }
            }
          }
        }
      },
      "AbsencePeriodResponse": {
        "title": "Absence Periods response",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/Response"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "type",
                  "attributes"
                ],
                "properties": {
                  "type": {
                    "example": "TimeOffPeriod"
                  },
                  "attributes": {
                    "$ref": "#/components/schemas/Absence"
                  }
                }
              }
            }
          }
        ]
      },
      "Absence": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 1
          },
          "status": {
            "type": "string",
            "example": "approved"
          },
          "start_date": {
            "type": "string",
            "example": "2017-12-27T00:00:00+0100"
          },
          "end_date": {
            "type": "string",
            "example": "2017-12-79T00:00:00+0100"
          },
          "days_count": {
            "type": "number",
            "example": 3
          },
          "half_day_start": {
            "type": "boolean",
            "example": false
          },
          "half_day_end": {
            "type": "boolean",
            "example": false
          },
          "time_off_type": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "example": "TimeOffType"
              },
              "attributes": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "example": 1
                  },
                  "name": {
                    "type": "string",
                    "example": "Vacation"
                  },
                  "category": {
                    "type": "string",
                    "example": "offsite_work"
                  }
                }
              }
            }
          },
          "employee": {
            "$ref": "#/components/schemas/ShortEmployee"
          },
          "certificate": {
            "type": "object",
            "properties": {
              "status": {
                "example": "not-required",
                "type": "string"
              }
            }
          },
          "created_at": {
            "type": "string",
            "example": "2017-01-17T10:32:18+0100"
          },
          "created_by": {
            "type": "string",
            "example": "API",
            "description": "API if the origin is api, otherwise returns an admin employee's name who's account is used to create the absence"
          },
          "updated_at": {
            "type": "string",
            "example": "2017-01-17T10:32:18+0100"
          }
        }
      },
      "ShortEmployee": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "Employee"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "id": {
                "type": "object",
                "properties": {
                  "label": {
                    "example": 1
                  },
                  "value": {
                    "example": "id"
                  },
                  "type": {
                    "$ref": "#/components/schemas/TypeEnum"
                  },
                  "universal_id": {
                    "example": "id"
                  }
                }
              },
              "first_name": {
                "type": "object",
                "properties": {
                  "label": {
                    "example": "First Name"
                  },
                  "value": {
                    "example": "Michael"
                  },
                  "type": {
                    "$ref": "#/components/schemas/TypeEnum"
                  },
                  "universal_id": {
                    "example": "first_name"
                  }
                }
              },
              "last_name": {
                "type": "object",
                "properties": {
                  "label": {
                    "example": "Last Name"
                  },
                  "value": {
                    "example": "Dou"
                  },
                  "type": {
                    "$ref": "#/components/schemas/TypeEnum"
                  },
                  "universal_id": {
                    "example": "last_name"
                  }
                }
              },
              "email": {
                "type": "object",
                "properties": {
                  "label": {
                    "example": "Email"
                  },
                  "value": {
                    "example": "michael.dou@personio.de"
                  },
                  "type": {
                    "$ref": "#/components/schemas/TypeEnum"
                  },
                  "universal_id": {
                    "example": "email"
                  }
                }
              }
            }
          }
        }
      },
      "TypeEnum": {
        "type": "string",
        "example": "standard",
        "enum": [
          "standard",
          "date",
          "integer",
          "decimal",
          "list",
          "link",
          "tags",
          "multiline"
        ]
      }
    }
  }
}
```

# Sibling pages

* [List Time-Off Types](https://developer.personio.de/v1.0/reference/get_company-time-off-types.md)
* [List Time-Offs](https://developer.personio.de/v1.0/reference/get_company-time-offs.md)
* [Create a Time-Off](https://developer.personio.de/v1.0/reference/post_company-time-offs.md)
* [Delete Time-Off by ID](https://developer.personio.de/v1.0/reference/delete_company-time-offs-id.md)
* [List Absence Periods](https://developer.personio.de/v1.0/reference/get_company-absence-periods.md)
* [Create an Absence Period](https://developer.personio.de/v1.0/reference/post_company-absence-periods.md)
* [Delete Absence Period by ID](https://developer.personio.de/v1.0/reference/delete_company-absence-periods-id.md)