# A to-do list API for your own automations.

> Petodo's REST API adds, lists and finishes tasks with a key, and sends errands to your webhook. Recipes for n8n and Zapier, the signature check and replyUrl.

Source: https://petodoapp.com/petodo/guides/to-do-list-api/

Petodo has a REST API for the list: add a task, read it back, tick it off. It also sends errands to a webhook you point it at, signed, with an address to answer on. That is enough to wire it into n8n, Zapier or a script of your own.

Updated November 30, 2026

Most people use Petodo through the app and the assistants they already have. If you want your own automation to put things on your list, or to be handed work from it, there is a REST API. It is the same list the app shows, and a change made through the API is on every device straight away.

## Make a key

Everything in the API is done with a key that belongs to one agent or automation. Make one in Petodo under Settings, Account & sync, Set up an assistant: it makes a private key and copies it for you. Or sign in from a terminal with `petodo login` and make one there:

```
petodo login
petodo keys create "n8n"
petodo keys list
petodo keys revoke <id>
```

Send it on every request as `Authorization: Bearer YOUR_KEY`. `X-Api-Key: YOUR_KEY` works too. A key reaches your list, and the errands for the agents pointed at it, and nothing else. It cannot read your email address, make another key, approve a device or touch billing. Revoke it and only that automation loses access. One key, which reaches your list, works on the free plan. More keys, errands to agents and webhook agents are part of the subscription. Free for 7 days, then a subscription. You see the price in the app or at checkout before you pay.

## Add a task

1. **Make a key.** Open Settings, Account & sync, Set up an assistant in Petodo and press Copy, or run `petodo login` and then `petodo keys create` with a name.
2. **Send the request.** POST a JSON body with a title to `https://app.petodoapp.com/api/todos`, with the key as a bearer token.
3. **See it on your list.** The task shows up in the app straight away, on every device.

```
curl -X POST https://app.petodoapp.com/api/todos \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "call Sam 2pm"}'
```

A time in the title is read in your account's timezone, the way the app reads it. `dueAt`, `day` (`today` or `tomorrow`) and `listId` are also accepted. `GET /todos` reads the list back, `POST /todos/{id}` finishes a task and `GET /report` summarises it. A title that starts with `@handle` is an errand for that agent.

The [OpenAPI file](https://petodoapp.com/petodo/openapi.json) describes every route a key can call, with its request and answer. Your key's reads and changes are limited per hour (the OpenAPI file gives the numbers), and past a limit the API answers 429.

## n8n

### Add a task from n8n

Use an **HTTP Request** node with these settings:

- Method: `POST`
- URL: `https://app.petodoapp.com/api/todos`
- Header: `Authorization` with the value `Bearer YOUR_KEY`
- Body: JSON, `{"title": "call Sam 2pm"}`. Use an expression to put a value from an earlier node in the title.

### Receive an errand in n8n

Start a workflow with a **Webhook** node and copy its production address. In Petodo, add a webhook agent: Settings, Your agents, pick "Any other agent" from the providers, leave "How it gets errands" on "Petodo sends it (webhook)" (its first choice for that provider) and paste the address. Petodo then shows the Signing secret once ("This is shown once. Copy it now."), so copy it. Webhook agents are part of the subscription. A task like `@ops_core check the backups` now starts the workflow when it comes due. See [What a webhook errand looks like](https://petodoapp.com/petodo/guides/to-do-list-api/#webhooks) for the signature check and how to answer.

## Zapier

### Add a task from Zapier

Use a **Webhooks by Zapier** action, with the event set to POST:

- URL: `https://app.petodoapp.com/api/todos`
- Payload type: JSON, with the data `title` set to your task, for example `call Sam 2pm`
- Header: `Authorization` with the value `Bearer YOUR_KEY`

### Receive an errand in Zapier

Start a Zap with a **Webhooks by Zapier** trigger (Catch Hook) and copy its address. In Petodo, add a webhook agent the same way as above, with that address, and keep the signing secret. When an errand is due, the Zap runs. Then answer it, as the next section shows.

## What a webhook errand looks like

When an errand comes due, Petodo makes a POST to the address you gave it. It tries twice, and waits up to 8 seconds each time, so answer with a 2xx quickly and carry on with the work afterwards. The headers are:

```
X-Petodo-Event: errand
X-Petodo-Timestamp: 1795416967
X-Petodo-Signature: sha256=<hex>
```

and the body is JSON:

```
{ "event": "errand", "ref": "8da779", "taskId": "...", "to": "ops_core", "group": null,
"text": "check the backups", "title": "@ops_core check the backups", "dueAt": "...",
"sentAt": "...", "replyUrl": "https://app.petodoapp.com/api/errands/reply/...",
"instructions": "..." }
```

### Check the signature

`X-Petodo-Signature` is `sha256=` followed by the hex HMAC-SHA256 of the timestamp, a dot and the body, using the agent's signing secret. The timestamp is the value of the `X-Petodo-Timestamp` header, as sent, a string of digits. The body is the raw request body, exactly the bytes that arrived. The secret is the Signing secret Petodo showed once when you added the webhook agent. Refuse a timestamp more than five minutes old. If your tool lets you run a few lines of code, a check looks like this:

```
const crypto = require('crypto');
const timestamp = req.headers['x-petodo-timestamp'];   // the header, as sent
const rawBody = req.rawBody;                            // the body bytes, as received
const secret = process.env.PETODO_SIGNING_SECRET;       // the agent's Signing secret
const expected = 'sha256=' + crypto.createHmac('sha256', secret)
  .update(timestamp + '.' + rawBody).digest('hex');
// compare it with req.headers['x-petodo-signature']
```

It has to be the body exactly as it arrived, not a copy that has been parsed and written out again. If your tool cannot do this, the address you gave Petodo is the thing to keep private.

### Answer on replyUrl

The body carries a `replyUrl`. POST to it as the work goes, with no key: the address is signed for that one errand and agent, and is good for two weeks.

```
{ "status": "working", "note": "checking the backups" }
{ "status": "done", "note": "all three are fine" }
```

The status is `confirmed`, `started`, `working`, `done` or `failed`. A status never moves backwards, and `done` ticks the task off. The text form works too: `{"text": "done: all three are fine"}`. In n8n, an HTTP Request node does this; in Zapier, another Webhooks by Zapier POST action does.

## Other ways in

An assistant that speaks MCP can use the hosted MCP server instead, with the same key; the [MCP server guide](https://petodoapp.com/petodo/guides/todo-mcp-server/) shows how. To run Hermes Agent or OpenClaw, read [Tasks for OpenClaw and Hermes Agent](https://petodoapp.com/petodo/guides/openclaw-and-hermes-agent-tasks/). Apps that list Petodo in a connector directory sign in with OAuth 2.1 and never show a key; [auth.md](https://petodoapp.com/auth.md) explains it.

### On this page

1. [Make a key](https://petodoapp.com/petodo/guides/to-do-list-api/#keys)
2. [Add a task](https://petodoapp.com/petodo/guides/to-do-list-api/#add-a-task)
3. [n8n](https://petodoapp.com/petodo/guides/to-do-list-api/#n8n)
4. [Zapier](https://petodoapp.com/petodo/guides/to-do-list-api/#zapier)
5. [What a webhook errand looks like](https://petodoapp.com/petodo/guides/to-do-list-api/#webhooks)
6. [Other ways in](https://petodoapp.com/petodo/guides/to-do-list-api/#other)

### Petodo

The to-do list you share with your AI agents, held by a pet that comes to find you when something is due. Free for 7 days, then a subscription.

## Questions people ask

### Where is the full description of the API?

In the OpenAPI file at https://petodoapp.com/petodo/openapi.json. It lists every route a key can call.

### Is there a limit on requests?

A key may read the list 120 times an hour per account, across all its keys, and change it 600 times an hour. Past that the API answers 429.

### Does it work on the free plan?

One key, which reaches your list, works on the free plan. More keys, errands to agents and webhook agents are part of the subscription. Free for 7 days, then a subscription. You see the price in the app or at checkout before you pay.

### What can a key not do?

Anything except the list and its own errands. It cannot read your email address, make another key, approve a device or touch billing. Those answer 403.

### Is there an MCP server too?

Yes, for assistants that speak MCP. The MCP server guide covers it.

## Read next

### [A to-do MCP server for Claude, ChatGPT and more](https://petodoapp.com/petodo/guides/todo-mcp-server/)

Share your to-do list with Claude, ChatGPT, Cursor, Codex or Grok: one address and a sign-in.

### [Tasks for OpenClaw and Hermes Agent](https://petodoapp.com/petodo/guides/openclaw-and-hermes-agent-tasks/)

Type @ and an agent's name on a task, and OpenClaw or Hermes Agent picks it up and reports back on your list.

### [Petodo for AI agents](https://petodoapp.com/petodo/ai-agents/)

A to-do list for you and your agents: start a task with @, hand it to Claude, ChatGPT, Cursor, Codex, Grok or your own, and watch it reach Done.
