Skip to content

API reference

API: Projects

Markdown version

MethodPathWhat it doesScope
GET/v1/work/projectsProjects, with what's been spent of their budgets where you may see itprojects:read
POST/v1/work/projectsAdd a project, for a client you have or a new one by name. Your common tasks go on it, and you lead itprojects:write
DELETE/v1/work/projects/:idRemove a project added by mistake. One with time is archived insteadprojects:write
GET/v1/work/projects/:idOne project: its tasks, team, rates and budgetprojects:read
PATCH/v1/work/projects/:idChange a project, archive it or bring it back. A change to how it bills reprices time that isn't billed yetprojects:write
POST/v1/work/projects/:id/copyCopy a project with its tasks, team, rates and budget, without its timeprojects:write
DELETE/v1/work/projects/:id/people/:person_idTake someone off a project. Their time on it staysprojects:write
PUT/v1/work/projects/:id/people/:person_idPut someone on a project, or make them a lead. Leads see and correct the project's timeprojects:write
PUT/v1/work/projects/:id/ratesSet what an hour on this project bills at: one rate, or one for a person or a task. Billed time never changesprojects:write
PUT/v1/work/projects/:id/tasks/:task_idPut a task on a project, or change it there. off keeps its time and takes no moreprojects:write
GET/v1/work/projects/tasksThe kinds of work people track time toprojects:read
POST/v1/work/projects/tasksAdd a kind of work. A common one goes on every new projectprojects:write
PATCH/v1/work/projects/tasks/:idRename a task, archive it or bring it back. Time tracked to it staysprojects:write

Examples

GET /v1/work/projects

Projects, with what's been spent of their budgets where you may see it

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

POST /v1/work/projects

Add a project, for a client you have or a new one by name. Your common tasks go on it, and you lead it

curl -s -X POST "https://api.hourfinch.com/v1/work/projects" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/projects`, {
  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/projects/$ID

Remove a project added by mistake. One with time is archived instead

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

GET /v1/work/projects/$ID

One project: its tasks, team, rates and budget

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

PATCH /v1/work/projects/$ID

Change a project, archive it or bring it back. A change to how it bills reprices time that isn't billed yet

curl -s -X PATCH "https://api.hourfinch.com/v1/work/projects/$ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/projects/${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/projects/$ID/copy

Copy a project with its tasks, team, rates and budget, without its time

curl -s -X POST "https://api.hourfinch.com/v1/work/projects/$ID/copy" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/projects/${id}/copy`, {
  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/projects/$ID/people/$PERSON_ID

Take someone off a project. Their time on it stays

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

PUT /v1/work/projects/$ID/people/$PERSON_ID

Put someone on a project, or make them a lead. Leads see and correct the project's time

curl -s -X PUT "https://api.hourfinch.com/v1/work/projects/$ID/people/$PERSON_ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/projects/${id}/people/${person_id}`, {
  method: "PUT",
  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();

PUT /v1/work/projects/$ID/rates

Set what an hour on this project bills at: one rate, or one for a person or a task. Billed time never changes

curl -s -X PUT "https://api.hourfinch.com/v1/work/projects/$ID/rates" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/projects/${id}/rates`, {
  method: "PUT",
  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();

PUT /v1/work/projects/$ID/tasks/$TASK_ID

Put a task on a project, or change it there. off keeps its time and takes no more

curl -s -X PUT "https://api.hourfinch.com/v1/work/projects/$ID/tasks/$TASK_ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/projects/${id}/tasks/${task_id}`, {
  method: "PUT",
  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/projects/tasks

The kinds of work people track time to

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

POST /v1/work/projects/tasks

Add a kind of work. A common one goes on every new project

curl -s -X POST "https://api.hourfinch.com/v1/work/projects/tasks" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/projects/tasks`, {
  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/projects/tasks/$ID

Rename a task, archive it or bring it back. Time tracked to it stays

curl -s -X PATCH "https://api.hourfinch.com/v1/work/projects/tasks/$ID" \
  -H "Authorization: Bearer $TK_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.hourfinch.com/v1/work/projects/tasks/${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.