Skip to content

API reference

API: Schedule

Markdown version

MethodPathWhat it doesScope
GET/v1/work/scheduleWho's planned on what between two days, who's away, roles to fill, holidays and days things are dueschedule:read
DELETE/v1/work/schedule/calendarStop your calendar address workingschedule:write
GET/v1/work/schedule/calendarWhether you have an address for a calendar appschedule:read
POST/v1/work/schedule/calendarMake your own address for a calendar app. An old one stops working (web app only)schedule:write
GET/v1/work/schedule/holidaysDays everyone is off, and the countries whose public holidays can be addedschedule:read
POST/v1/work/schedule/holidaysAdd a day everyone is off, or a country's public holidays for a year. Nobody's time off counts on itschedule:write
DELETE/v1/work/schedule/holidays/:idMake a holiday an ordinary day againschedule:write
POST/v1/work/schedule/itemsPlan someone, or a role to fill, on a project between two days. They join its team. It can repeat every so many weeksschedule:write
DELETE/v1/work/schedule/items/:idTake a plan off the scheduleschedule:write
PATCH/v1/work/schedule/items/:idMove or change a plan, or give it to someone elseschedule:write
GET/v1/work/schedule/milestonesDays things are due on a projectschedule:read
POST/v1/work/schedule/milestonesAdd a day something is due on a project, with a part of its price if it's fixed. months makes one a monthschedule:write
DELETE/v1/work/schedule/milestones/:idRemove a day something is dueschedule:write
PATCH/v1/work/schedule/milestones/:idChange a day something is dueschedule:write
GET/v1/work/schedule/mineWhat you're planned to work on, day by day, with your hours, holidays and time offschedule:read
GET/v1/work/schedule/offTime off asked for and taken: yours, and everyone's if you approve timeschedule:read
POST/v1/work/schedule/offAsk for time off, whole days or part of each. For someone else you need to approve time, and it's approved at onceschedule:write
PATCH/v1/work/schedule/off/:idApprove, decline or cancel time off. You can cancel your own until it has startedschedule:write
GET/v1/work/schedule/off/balancesWhat's left of a year's time off: yours, or everyone's with all, in secondsschedule:read
GET/v1/work/schedule/off/changesWhat was added to or taken from someone's time off in a yearschedule:read
POST/v1/work/schedule/off/changesAdd to or take from what someone has left in a year: a start balance, or days paid outschedule:write
DELETE/v1/work/schedule/off/changes/:idTake back a change to someone's time offschedule:write
GET/v1/work/schedule/off/kindsKinds of time offschedule:read
POST/v1/work/schedule/off/kindsAdd a kind of time off, with a year's allowance or no limitschedule:write
PATCH/v1/work/schedule/off/kinds/:idChange a kind of time off, or archive itschedule:write
POST/v1/work/schedule/rolesAdd a role someone will fill, to plan before you hire. No limit, and freeschedule:write
DELETE/v1/work/schedule/roles/:idRemove a role and its plansschedule:write
PATCH/v1/work/schedule/roles/:idRename a role, or give its plans to the person who fills itschedule:write

Examples

GET /v1/work/schedule

Who's planned on what between two days, who's away, roles to fill, holidays and days things are due

curl -s "https://api.hourfinch.com/v1/work/schedule" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

DELETE /v1/work/schedule/calendar

Stop your calendar address working

curl -s -X DELETE "https://api.hourfinch.com/v1/work/schedule/calendar" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/calendar`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

GET /v1/work/schedule/calendar

Whether you have an address for a calendar app

curl -s "https://api.hourfinch.com/v1/work/schedule/calendar" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/calendar`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

GET /v1/work/schedule/holidays

Days everyone is off, and the countries whose public holidays can be added

curl -s "https://api.hourfinch.com/v1/work/schedule/holidays" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/holidays`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

POST /v1/work/schedule/holidays

Add a day everyone is off, or a country's public holidays for a year. Nobody's time off counts on it

curl -s -X POST "https://api.hourfinch.com/v1/work/schedule/holidays" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/holidays`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

DELETE /v1/work/schedule/holidays/$ID

Make a holiday an ordinary day again

curl -s -X DELETE "https://api.hourfinch.com/v1/work/schedule/holidays/$ID" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/holidays/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

POST /v1/work/schedule/items

Plan someone, or a role to fill, on a project between two days. They join its team. It can repeat every so many weeks

curl -s -X POST "https://api.hourfinch.com/v1/work/schedule/items" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/items`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

DELETE /v1/work/schedule/items/$ID

Take a plan off the schedule

curl -s -X DELETE "https://api.hourfinch.com/v1/work/schedule/items/$ID" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/items/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

PATCH /v1/work/schedule/items/$ID

Move or change a plan, or give it to someone else

curl -s -X PATCH "https://api.hourfinch.com/v1/work/schedule/items/$ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/items/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/work/schedule/milestones

Days things are due on a project

curl -s "https://api.hourfinch.com/v1/work/schedule/milestones" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/milestones`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

POST /v1/work/schedule/milestones

Add a day something is due on a project, with a part of its price if it's fixed. months makes one a month

curl -s -X POST "https://api.hourfinch.com/v1/work/schedule/milestones" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/milestones`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

DELETE /v1/work/schedule/milestones/$ID

Remove a day something is due

curl -s -X DELETE "https://api.hourfinch.com/v1/work/schedule/milestones/$ID" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/milestones/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

PATCH /v1/work/schedule/milestones/$ID

Change a day something is due

curl -s -X PATCH "https://api.hourfinch.com/v1/work/schedule/milestones/$ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/milestones/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/work/schedule/mine

What you're planned to work on, day by day, with your hours, holidays and time off

curl -s "https://api.hourfinch.com/v1/work/schedule/mine" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/mine`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

GET /v1/work/schedule/off

Time off asked for and taken: yours, and everyone's if you approve time

curl -s "https://api.hourfinch.com/v1/work/schedule/off" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

POST /v1/work/schedule/off

Ask for time off, whole days or part of each. For someone else you need to approve time, and it's approved at once

curl -s -X POST "https://api.hourfinch.com/v1/work/schedule/off" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

PATCH /v1/work/schedule/off/$ID

Approve, decline or cancel time off. You can cancel your own until it has started

curl -s -X PATCH "https://api.hourfinch.com/v1/work/schedule/off/$ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/work/schedule/off/balances

What's left of a year's time off: yours, or everyone's with all, in seconds

curl -s "https://api.hourfinch.com/v1/work/schedule/off/balances" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off/balances`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

GET /v1/work/schedule/off/changes

What was added to or taken from someone's time off in a year

curl -s "https://api.hourfinch.com/v1/work/schedule/off/changes" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off/changes`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

POST /v1/work/schedule/off/changes

Add to or take from what someone has left in a year: a start balance, or days paid out

curl -s -X POST "https://api.hourfinch.com/v1/work/schedule/off/changes" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off/changes`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

DELETE /v1/work/schedule/off/changes/$ID

Take back a change to someone's time off

curl -s -X DELETE "https://api.hourfinch.com/v1/work/schedule/off/changes/$ID" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off/changes/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

GET /v1/work/schedule/off/kinds

Kinds of time off

curl -s "https://api.hourfinch.com/v1/work/schedule/off/kinds" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off/kinds`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

POST /v1/work/schedule/off/kinds

Add a kind of time off, with a year's allowance or no limit

curl -s -X POST "https://api.hourfinch.com/v1/work/schedule/off/kinds" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off/kinds`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

PATCH /v1/work/schedule/off/kinds/$ID

Change a kind of time off, or archive it

curl -s -X PATCH "https://api.hourfinch.com/v1/work/schedule/off/kinds/$ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/off/kinds/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/work/schedule/roles

Add a role someone will fill, to plan before you hire. No limit, and free

curl -s -X POST "https://api.hourfinch.com/v1/work/schedule/roles" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/roles`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

DELETE /v1/work/schedule/roles/$ID

Remove a role and its plans

curl -s -X DELETE "https://api.hourfinch.com/v1/work/schedule/roles/$ID" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/roles/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
const data = await res.json();

PATCH /v1/work/schedule/roles/$ID

Rename a role, or give its plans to the person who fills it

curl -s -X PATCH "https://api.hourfinch.com/v1/work/schedule/roles/$ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/schedule/roles/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

Request and response schemas: https://www.hourfinch.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.