Menu

Requests, pages and limits

Every request to the Worktude API goes to an address under https://api.worktude.com/v1/api, carries your API key as a bearer token, and gets JSON back. Lists come a page at a time, and each key can make 120 requests a minute.

On this page

Authentication

Send the key in the Authorization header, after Bearer:

bash
curl -H "Authorization: Bearer $WORKTUDE_KEY" https://api.worktude.com/v1/api/workspace

A request without a key, or with one that doesn’t work, answers 401 invalid_api_key, and its WWW-Authenticate header asks for a bearer token. A key never opens the dashboard’s routes, and a session signed in to the dashboard never opens the API.

Answers

An answer is JSON, with its result in data: an object, or a list. A list that comes in pages adds next, and the bookings add the from and to they cover. An error answers its HTTP status and {"error": "…"}, as Errors lists them.

Times

  • The times in the answers are ISO 8601 instants in UTC, such as 2026-09-30T14:00:00.000Z.
  • A query that takes an instant takes one with its offset, such as 2026-09-30T15:00:00+01:00 or 2026-09-30T14:00:00Z, or a date, such as 2026-09-30, which is the start of that day in UTC.

Pages

Messages and short links come a page at a time, the newest first:

  • limit sets how many items a page holds: 50 by default, 100 at most.
  • next is the cursor of the following page, or null on the last one. Send it back as before to get that page.
  • A page never repeats or skips an item, even when new ones arrive between two requests: those show on the first page.
bash
# The first page, 20 messages
curl -H "Authorization: Bearer $WORKTUDE_KEY" "https://api.worktude.com/v1/api/messages?limit=20"
# The page after it, with the next of the page before
curl -H "Authorization: Bearer $WORKTUDE_KEY" "https://api.worktude.com/v1/api/messages?limit=20&before=$NEXT"

Bookings don’t come in pages: one request answers up to 92 days of them, as Bookings explains.

Bodies

A request that sends a body sends JSON, with Content-Type: application/json. A body that isn’t JSON answers 400 invalid_json, and one that fails its checks answers 400 invalid_request, with each problem in issues.

Rate limits

Each key can make 120 requests a minute, reads included. Past that, the API answers 429 too_many_requests with Retry-After: 60: wait that many seconds, then try again. Each Cloudflare location counts on its own, so the limit is approximate.

A request with a key that doesn’t work counts against its IP address instead, 20 a minute, together with the forms and bookings sent from that address.

Questions

Do reads count against the limit?

Yes. Every request with a working key counts, whatever its method.

How do I go through every message?

Ask for the first page, then send each next back as before until next is null. On your next run, send since with the createdAt of the newest message you have, to get only the ones that arrived after it.