Get employee calendar export (ICS subscription URL)
Returns the HTTPS URL for the employee’s Leadtime calendar feed (.ics). Requires a linked user account on the employee.
GET
/employees/{id}/calendar-feedAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200
urlstringrequiredHTTPS URL of the employee’s Leadtime calendar export (.ics). Subscribe in external calendar apps.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/employees/string/calendar-feed" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/employees/string/calendar-feed", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/employees/string/calendar-feed",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"url": "string"
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions