Quickstart
Make your first TimeSubmit API call in a few minutes: create a read-only key, list your clients, and fix a 401, 403 or 429 answer.
This quickstart takes you from no key to a working TimeSubmit API call in a few minutes. The one call it makes is a read, so it changes nothing in your organisation's data.
1. Create a key
A consultancy admin creates the key under Settings, then API & Webhooks. The API is on the Core, Margin and Enterprise plans.
- Choose Create API key and name it after the system it's for.
- Under What it can do, tick Read clients (the
clients:readscope) and nothing else. - Copy the key. It starts
tsk_and is shown only once.
Keep the key out of your code. Set it as an environment variable in the terminal you'll call from:
export TIMESUBMIT_API_KEY="tsk_..."
2. List your clients
curl "https://www.timesubmit.com/api/v1/clients?limit=1" \
-H "Authorization: Bearer $TIMESUBMIT_API_KEY"
3. Check the answer
A working key gets back 200 OK with a page of your clients. data holds the clients, and nextCursor is what you pass as cursor to get the next page, or null on the last one:
{
"data": [
{
"id": "jh7c2qd9e4m8k1x6v3b5n0w2p",
"name": "Northwind Analytics Ltd",
"status": "active",
"email": "accounts@northwind.example",
"phone": "+44 20 7946 0000",
"website": "https://northwind.example",
"logoUrl": null,
"contactName": "Priya Shah",
"contactEmail": "priya.shah@northwind.example",
"contactPhone": null,
"currency": "GBP",
"paymentTermDays": 30,
"purchaseOrderRequired": false,
"address": {
"street": "1 Example Street",
"city": "London",
"region": null,
"postalCode": "EC1A 1AA",
"country": "United Kingdom"
},
"createdAt": "2026-11-02T10:24:51.307Z",
"updatedAt": "2026-11-28T16:03:12.940Z"
}
],
"nextCursor": "Wzk0NTMxNjIsImpoN2MycWQ5ZTRtOGsxeDZ2M2I1bjB3MnAiXQ"
}
An organisation with no clients yet gets {"data": [], "nextCursor": null}, which still means the key works.
If it doesn't work
Every error comes back with a code that tells you what went wrong. These are the ones a first call can meet:
| Status | Code | What it means | What to do |
|---|---|---|---|
| 401 | unauthorised | No key, or one that is unknown, revoked or expired. Every case answers the same. | Check the header reads Authorization: Bearer followed by the whole key, and that the key has not been revoked or expired. |
| 403 | api_not_included | Your plan does not include the API. Keys work again when it does. | Your plan does not include the API. A consultancy admin can change plan under Manage Billing. |
| 403 | insufficient_scope | The key does not have the scope this operation needs. | Give the key the clients:read scope, or create a new key that has it. |
| 429 | rate_limited | The key has used its allowance. Retry-After says when to try again. | Wait the number of seconds in the Retry-After header, then send the request again. |
Each key can make 120 requests a minute. The errors page lists every code the API can answer with.
Next steps
- Authentication: the scopes there are, and which to give a key that writes.
- Clients: create and update clients, with the body each operation accepts.
- Webhooks: be told when a timesheet or an invoice moves, and verify each delivery.
- Versioning: what can change within
/v1, and what your code should tolerate.