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
- Make a key. Open Settings, Account & sync, Set up an assistant in Petodo and press Copy, or run
petodo loginand thenpetodo keys createwith a name. - Send the request. POST a JSON body with a title to
https://app.petodoapp.com/api/todos, with the key as a bearer token. - 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 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:
Authorizationwith the valueBearer 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 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
titleset to your task, for examplecall Sam 2pm - Header:
Authorizationwith the valueBearer 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 shows how. To run Hermes Agent or OpenClaw, read Tasks for OpenClaw and Hermes Agent. Apps that list Petodo in a connector directory sign in with OAuth 2.1 and never show a key; auth.md explains it.