Skip to content

API reference

API: Reports

Markdown version

MethodPathWhat it doesScope
GET/v1/work/reports/entriesEvery entry, newest firstreports:read
GET/v1/work/reports/entries.csvEvery entry as a spreadsheet, with the columns you choosereports:read
GET/v1/work/reports/expensesExpenses by kind, client, project or personreports:read
GET/v1/work/reports/numbersNumbers your organization works out its own way, and what they can be made fromreports:read
POST/v1/work/reports/numbersAdd a number to a report: one column plus, less or divided by anotherreports:write
DELETE/v1/work/reports/numbers/:idTake a number off its reportreports:write
GET/v1/work/reports/payrollEveryone's ordinary hours, overtime, time off by kind, and expenses to pay backreports:read
GET/v1/work/reports/profitWhat came in, less what people cost and what was spent, by client, project, person or monthreports:read
GET/v1/work/reports/savedReports you saved, and the ones shared with everyonereports:read
POST/v1/work/reports/savedSave a report, for yourself or everyone. Each person sees only what they mayreports:write
DELETE/v1/work/reports/saved/:idRemove a saved report. The time in it staysreports:write
PATCH/v1/work/reports/saved/:idRename, change or share a saved reportreports:write
GET/v1/work/reports/tableAny report as one table: time, expenses, profit, plans against what happened, invoiced and paid, or what clients owereports:read
GET/v1/work/reports/timeHours by client, project, task, person, day, week or month, with what they're worth if you may see itreports:read

Examples

GET /v1/work/reports/entries

Every entry, newest first

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

GET /v1/work/reports/entries.csv

Every entry as a spreadsheet, with the columns you choose

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

GET /v1/work/reports/expenses

Expenses by kind, client, project or person

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

GET /v1/work/reports/numbers

Numbers your organization works out its own way, and what they can be made from

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

POST /v1/work/reports/numbers

Add a number to a report: one column plus, less or divided by another

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

Take a number off its report

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

GET /v1/work/reports/payroll

Everyone's ordinary hours, overtime, time off by kind, and expenses to pay back

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

GET /v1/work/reports/profit

What came in, less what people cost and what was spent, by client, project, person or month

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

GET /v1/work/reports/saved

Reports you saved, and the ones shared with everyone

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

POST /v1/work/reports/saved

Save a report, for yourself or everyone. Each person sees only what they may

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

Remove a saved report. The time in it stays

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

PATCH /v1/work/reports/saved/$ID

Rename, change or share a saved report

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

Any report as one table: time, expenses, profit, plans against what happened, invoiced and paid, or what clients owe

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

GET /v1/work/reports/time

Hours by client, project, task, person, day, week or month, with what they're worth if you may see it

curl -s "https://api.hourfinch.com/v1/work/reports/time" \
  -H "Authorization: Bearer $TK_API_KEY"
const res = await fetch(`https://api.hourfinch.com/v1/work/reports/time`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.TK_API_KEY}` },
});
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.