← Timesheet to Invoice
Your token

Timesheet to Invoice API

Reading a time export, the billable hours, rounding, rates, tax, the invoice, the checks and every download run free in the browser and need no API. The API is for the one metered step: send each invoice line's label and the notes of the time entries behind it, and get back, as JSON, a client-facing description per line, a short work summary and the entries whose notes are too vague to bill. The page builds this input for you, never sends hours, rates or amounts, and checks every description before using it.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is {"data": ...} or {"error": {"code", "message"}}; read error.code and error.message rather than the HTTP status alone.

The task field

This app has one task. Always send "task": "describe".

taskWhat it doesReply
describeWrites one client-facing description per invoice line from its entry notes, a work summary, and lists the entries too vague to bill.One JSON object

Input fields

Every field is a string; facts holds JSON text. Both are required.

FieldMeaning
task"describe"
factsJSON object: client, period (text such as "Nov 2, 2026 to Nov 21, 2026"), and lines: each {id, label, project, entries} with ids L1, L2... and entries {id, date, task, text} with ids E1, E2...; at most 40 lines, 30 distinct entries per line and 200 characters of text per entry.

The reply

job.output.output is text holding one JSON object: lines (each {id, text}: one description of 40 to 180 characters per line id), summary (one to three sentences, or an empty string) and vague (each {id, why}: an entry id whose note is empty or too vague to bill, and what is missing). Before using it, check it as the page does: drop a description for a line you did not send; keep your own label when a description mentions money, contains a number not in that line's notes, or shares no word with them; drop a summary with a number not in any note; ignore unknown entry ids. If the balance ran low, truncated is true and the object may stop early; the page keeps the descriptions that arrived whole.

Worked example

Input (input.json), from the page's "Toggl: designer" example, client Acme Dental:

{
  "task": "describe",
  "facts": "{\"client\":\"Acme Dental\",\"period\":\"Nov 2, 2026 to Nov 21, 2026\",\"lines\":[{\"id\":\"L1\",\"label\":\"Website redesign\",\"project\":\"Website redesign\",\"entries\":[{\"id\":\"E1\",\"date\":\"2026-11-02\",\"task\":\"Design\",\"text\":\"Homepage wireframes, three layouts\"},{\"id\":\"E2\",\"date\":\"2026-11-02\",\"task\":\"Design\",\"text\":\"Homepage visual design, round 1\"},{\"id\":\"E3\",\"date\":\"2026-11-03\",\"task\":\"Meetings\",\"text\":\"Kickoff call with Dr. Patel and office manager\"},{\"id\":\"E4\",\"date\":\"2026-11-03\",\"task\":\"Design\",\"text\":\"Services page and booking flow mockups\"},{\"id\":\"E6\",\"date\":\"2026-11-05\",\"task\":\"Design\",\"text\":\"Homepage revisions from feedback\"},{\"id\":\"E7\",\"date\":\"2026-11-05\",\"task\":\"Design\",\"text\":\"Mobile layouts for homepage and services\"},{\"id\":\"E9\",\"date\":\"2026-11-09\",\"task\":\"Build\",\"text\":\"\"},{\"id\":\"E10\",\"date\":\"2026-11-10\",\"task\":\"Build\",\"text\":\"Webflow build: homepage and nav\"},{\"id\":\"E12\",\"date\":\"2026-11-12\",\"task\":\"Build\",\"text\":\"Services pages, booking widget embed\"},{\"id\":\"E13\",\"date\":\"2026-11-12\",\"task\":\"Meetings\",\"text\":\"Review call\"},{\"id\":\"E15\",\"date\":\"2026-11-16\",\"task\":\"Build\",\"text\":\"Accessibility pass: contrast, alt text, focus order\"},{\"id\":\"E17\",\"date\":\"2026-11-19\",\"task\":\"Build\",\"text\":\"Launch checklist, redirects, forms test\"}]},{\"id\":\"L2\",\"label\":\"Brand refresh\",\"project\":\"Brand refresh\",\"entries\":[{\"id\":\"E14\",\"date\":\"2026-11-13\",\"task\":\"Design\",\"text\":\"Logo cleanup and favicon set\"},{\"id\":\"E18\",\"date\":\"2026-11-21\",\"task\":\"Design\",\"text\":\"Business card and letterhead\"}]}]}"
}

Reply:

{"lines":[{"id":"L1","text":"Website redesign: homepage wireframes, visual design and revisions, services and booking flow mockups, mobile layouts, Webflow build, accessibility pass and launch checks"},{"id":"L2","text":"Brand refresh: logo cleanup and favicon set, plus business card and letterhead designs"}],"summary":"Redesigned and built the Acme Dental website, from wireframes and mockups through the Webflow build, accessibility checks and launch preparation, plus logo, favicon and stationery work.","vague":[{"id":"E9","why":"Empty note on a Build entry; says nothing about what was built"}]}

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above, or a required field is missing or empty.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://timesheet-to-invoice.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"timesheet-to-invoice"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "describe", "facts": "{\"client\":\"Acme Dental\",\"period\":\"Nov 2, 2026 to Nov 21, 2026\",\"lines\":[{\"id\":\"L1\",\"label\":\"Website redesign\",\"project\":\"Website redesign\",\"entries\":[{\"id\":\"E1\",\"date\":\"2026-11-02\",\"task\":\"Design\",\"text\":\"Homepage wireframes, three layouts\"},{\"id\":\"E2\",\"date\":\"2026-11-02\",\"task\":\"Design\",\"text\":\"Homepage visual design, round 1\"},{\"id\":\"E3\",\"date\":\"2026-11-03\",\"task\":\"Meetings\",\"text\":\"Kickoff call with Dr. Patel and office manager\"},{\"id\":\"E4\",\"date\":\"2026-11-03\",\"task\":\"Design\",\"text\":\"Services page and booking flow mockups\"},{\"id\":\"E6\",\"date\":\"2026-11-05\",\"task\":\"Design\",\"text\":\"Homepage revisions from feedback\"},{\"id\":\"E7\",\"date\":\"2026-11-05\",\"task\":\"Design\",\"text\":\"Mobile layouts for homepage and services\"},{\"id\":\"E9\",\"date\":\"2026-11-09\",\"task\":\"Build\",\"text\":\"\"},{\"id\":\"E10\",\"date\":\"2026-11-10\",\"task\":\"Build\",\"text\":\"Webflow build: homepage and nav\"},{\"id\":\"E12\",\"date\":\"2026-11-12\",\"task\":\"Build\",\"text\":\"Services pages, booking widget embed\"},{\"id\":\"E13\",\"date\":\"2026-11-12\",\"task\":\"Meetings\",\"text\":\"Review call\"},{\"id\":\"E15\",\"date\":\"2026-11-16\",\"task\":\"Build\",\"text\":\"Accessibility pass: contrast, alt text, focus order\"},{\"id\":\"E17\",\"date\":\"2026-11-19\",\"task\":\"Build\",\"text\":\"Launch checklist, redirects, forms test\"}]},{\"id\":\"L2\",\"label\":\"Brand refresh\",\"project\":\"Brand refresh\",\"entries\":[{\"id\":\"E14\",\"date\":\"2026-11-13\",\"task\":\"Design\",\"text\":\"Logo cleanup and favicon set\"},{\"id\":\"E18\",\"date\":\"2026-11-21\",\"task\":\"Design\",\"text\":\"Business card and letterhead\"}]}]}"}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="timesheet-to-invoice:describe:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: lines, summary, vague
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: timesheet-to-invoice:describe:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json