Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Get upcoming approved vacations

Retrieves all approved vacations that have not yet ended (end date is today or in the future).

What is returned: Each vacation includes:

  • id: Unique vacation identifier
  • dateFrom: Start date of the vacation period (ISO 8601 date string)
  • dateTo: End date of the vacation period (ISO 8601 date string)
  • status: Current status (always “Approved” for this endpoint)
  • userId: ID of the employee taking the vacation
  • capacity: Optional capacity utilization percentage for the vacation period

How it works:

  • Only vacations with status “Approved” and end date >= today are returned
  • This includes both current vacations (in progress) and future approved vacations
  • Managers with “manageAll” permission see all upcoming vacations across the workspace
  • Managers with “manageTeams” permission only see vacations from employees in their teams
  • Use the optional teamId query parameter to filter vacations for a specific team
  • Results are sorted by start date (earliest first)

Use cases:

  • Displaying an overview of upcoming time off for capacity planning
  • Building a team calendar showing approved absences
  • Identifying potential scheduling conflicts
  • Showing managers which employees will be absent in the near future
GET/vacations/upcoming
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Query parameters
teamIdstring
Optional team ID (UUID) to filter upcoming vacations for a specific team. If not provided, returns vacations based on the manager permissions (all teams for manageAll, or manager teams for manageTeams). This parameter is useful for team-specific managers who want to focus on a particular team.
Responses
200Successfully retrieved upcoming approved vacations
Array of object
object
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/vacations/upcoming" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
[
  {}
]