Tasks API
Last updated: October 10, 2026
- With an API key from Settings → Account (Tend Premium), another app can read the tasks on your Today page and check them off.
- Send the key as
Authorization: Bearer <key>. Answers are JSON. - A key may make 60 requests a minute. Past that you get
429and aRetry-Afterheader: wait that long, then try again.
Getting a key
In Tend, open Settings → Account and create an API key. It is shown once; copy it then, because Tend keeps only a scrambled form of it and can’t show it again. An account has one key at a time: creating another replaces the first, and revoking removes it. Keys are for Tend Premium, and you can make 5 API keys an hour, replacing included.
A key can read and complete everything in your account’s tasks, so treat it like a password: keep it on a server you control, never in a web page or an app you distribute.
Making a request
Every path below is added to https://tendapp.ca/api:
curl -H "Authorization: Bearer $TEND_API_KEY" \\
https://tendapp.ca/api/v1/tasks/today
Every answer is JSON with Cache-Control: no-store. An error is {"error": "..."}
with a message you can show.
Endpoints
| Method | Path | Returns |
|---|---|---|
| GET | /v1/tasks/today | {today, tasks: [{id, title, projectId, projectName, due, day}]} |
| GET | /v1/projects | {projects: [{id, name, emoji}]} (emoji is null when there isn’t one): the Inbox, then your projects in order |
| POST | /v1/tasks/{id}/complete | {nextDue}, null when the task was checked off |
Today’s tasks
/v1/tasks/today is the same list as Tend’s Today page: open tasks whose day is today or
earlier, most overdue first, then timed before untimed. today is your account’s date
(in your time zone, and with your day-end setting). due is the task’s due date, or null
when it only has a do date; day is the day it’s on. A task is overdue when
due is before today. A task with no project has projectId
_inbox and projectName "Inbox".
Completing a task
POST /v1/tasks/{id}/complete with a JSON body {"due": "2026-10-10"}: the due
date you were shown for the task (null if it had none). This is the same as ticking the
checkbox in Tend. A task that repeats moves to its next date and comes back as nextDue;
one that doesn’t is checked off. Sending the date you saw stops a task from being completed twice, or
from skipping a date, when it was already completed somewhere else.
400: the body has no validdue.404: there’s no such task, or it was deleted.409: the task is already checked off, or its due date is no longer the one you sent. Read today’s tasks again.
Limits
A key may make 60 requests a minute, and 30 of them may be completions. It’s a bucket that refills steadily, so a short burst is fine, and a dashboard refreshing every few minutes uses a small fraction of it.
When a limit is spent the answer is 429 Too Many Requests with a
Retry-After header, the number of seconds until a request would be let through. A
refused request did nothing (a refused completion wrote nothing), so it’s safe to send again. To
behave well:
- Wait at least
Retry-Afterseconds, then retry. - If it’s refused again, back off: double the wait each time, up to a few minutes, and give up after a few tries.
- Don’t retry at once, and don’t retry other errors in a loop:
400,401,403,404and409won’t change by asking again.
wait = Retry-After seconds from the answer, or 1 second if it's missing
for each try, up to 5:
answer = request()
if answer is not 429: stop
sleep(wait)
wait = min(wait * 2, 300)
Requests with a key Tend doesn’t know count against the address they come from: more than
10 unknown keys a minute gets 429 for any key that address
hasn’t used successfully in the last hour, until it stops. Across all callers together Tend also
looks up at most 60 unknown keys a minute, so while someone is sending made-up keys, a key Tend
hasn’t seen work in the last hour (a brand-new one, say) can get 429 too: retry after
Retry-After as above. The limits are approximate, so don’t plan around the exact count.
Errors
| Status | Meaning |
|---|---|
401 | No key, not a Tend key, or a key that was replaced or revoked. Create a new one in Settings → Account. |
403 | The account doesn’t have Tend Premium. The key is kept and works again when Premium does. |
404 | No such endpoint, or no such task. |
405 | The endpoint doesn’t take that method; Allow says which it does. |
429 | Too many requests. See Limits. |
500 | Something went wrong on Tend’s side. Try again later. |
Your data
What Tend keeps about a key, and what the API can reach, is in the privacy policy. Revoke a key in Settings → Account and it stops working at once. Questions: support@tendapp.ca.