Docs
Give your Agent a way to ask people — and get structured answers back. Use the plugins for Claude Code and ChatGPT, or the Taskriz API for any Agent or workflow. Designing requests people answer in seconds? See the For Agents guide.
Two ways in
The plugins
For Claude Code and ChatGPT. Install, sign in when your Agent first asks, and it can create Agents, design requests and send them — no code.
/plugin marketplace add appeggio-com/taskriz-claude-plugin
/plugin install taskriz@taskriz
codex plugin marketplace add appeggio-com/taskriz-chatgpt-plugin
Both use the Taskriz MCP server at https://www.taskriz.com/mcp (OAuth sign-in) — any MCP client can.
The API
For any Agent, script or workflow that can make HTTPS calls. JSON in, JSON out.
https://api.taskriz.com/v1/
Every Agent belongs to a Taskriz account and its plan: create one for the API in Settings → Developer, or let a plugin create it.
Quickstart: the API
Create your Agent
An Agent is anything that sends requests: a script, a workflow, an AI Agent. Sign in to Taskriz (a free account is fine) and open Settings → Developer → New Agent. Give it the name people will see, and choose how replies reach it: The Agent Checks for Them (it fetches them, or keeps a WebSocket open) or Sent to Its Web Address (Taskriz posts them to your HTTPS endpoint). Copy its Client ID and Client Secret — the secret is shown once, so keep it safe (with a web address, its
webhookSecrettoo). It’s paired with your own Profile at once, so you get its requests to try them.Get a token
Exchange the credentials for a bearer token (it lasts an hour), and send it as
Authorization: Bearer …. To check it,GET /v1/meanswers your Agent:{agentId, clientId, organisation}. For an Agent made in an Organisation Profile,organisationis{name}, the Organisation whose plan its requests count against; otherwise it’snull.curl -X POST https://api.taskriz.com/v1/token \ -H 'content-type: application/json' \ -d '{"grant_type": "client_credentials", "client_id": "<clientId>", "client_secret": "<clientSecret>"}' # → {"access_token": "…", "token_type": "Bearer", "expires_in": 3600}const clientId = process.env.TASKRIZ_CLIENT_ID, clientSecret = process.env.TASKRIZ_CLIENT_SECRET; // from New Agent const { access_token } = await (await fetch('https://api.taskriz.com/v1/token', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ grant_type: 'client_credentials', client_id: clientId, client_secret: clientSecret }), })).json(); const auth = { authorization: `Bearer ${access_token}`, 'content-type': 'application/json' };import os, requests token = requests.post('https://api.taskriz.com/v1/token', json={ 'grant_type': 'client_credentials', # the credentials from New Agent 'client_id': os.environ['TASKRIZ_CLIENT_ID'], 'client_secret': os.environ['TASKRIZ_CLIENT_SECRET'], }).json()['access_token'] auth = {'authorization': f'Bearer {token}'}Pair with a person
Ask for a one-time code (good for 24 hours) and give it to the person: they scan its QR code (
qrCode, a PNG) with their phone’s camera or open its link (pairingUrl) — Taskriz opens at Pair an Agent with the code filled in — or they enter the code in Taskriz (Settings → Paired Agents → Pair an Agent). Through the API, only people who have paired with your Agent can receive its requests — and they can unpair at any time. With the MCP server or the plugins,send_requestcan also take someone’s email address: someone without a Taskriz account answers from the link they’re sent, with a one-time code — no app and no account. When someone pairs, your Agent gets apairedevent with their email and connection.curl -X POST https://api.taskriz.com/v1/pairing -H 'authorization: Bearer <access_token>' # → {"connectionId": "…", "manualCode": "K7Q2-9XW4-M3PA", "pairingUrl": "https://www.taskriz.com/pair/K7Q2-9XW4-M3PA", "qrCode": "data:image/png;base64,…", "expiresIn": 86400, …}const { connectionId, manualCode } = await (await fetch('https://api.taskriz.com/v1/pairing', { method: 'POST', headers: auth })).json(); console.log(`Enter ${manualCode} in Taskriz → Settings → Paired Agents → Pair an Agent`);offer = requests.post('https://api.taskriz.com/v1/pairing', headers=auth).json() print('Enter', offer['manualCode'], 'in Taskriz → Settings → Paired Agents → Pair an Agent')Send a request
The
payloadis the request’s interface (see Requests are interfaces).correlationIdis your thread: the answer comes back with it.curl -X POST https://api.taskriz.com/v1/send \ -H 'authorization: Bearer <access_token>' -H 'content-type: application/json' \ -d @- <<'JSON' { "to": [ "<connectionId>" ], "kind": "ui", "correlationId": "invoice-4567", "importance": "high", "subject": "Approve invoice #4567", "summary": "Acme Ltd · $1,240 · due Friday", "payload": "ScreenMorph new title: 'Invoice #4567'; addMorph: (LabelMorph new text: 'Acme Ltd sent invoice #4567 for $1,240.'); addMorph: (ButtonMorph new label: 'Approve'; onClick: [Taskriz current reply: #{ #decision -> 'approve' }]); addMorph: (ButtonMorph new label: 'Query'; style: #plain; onClick: [Taskriz current reply: #{ #decision -> 'query' }]); yourself" } JSON # → 202 {"messageId": "01K…", "recipients": 1}const ui = `ScreenMorph new title: 'Invoice #4567';\n addMorph: (LabelMorph new text: 'Acme Ltd sent invoice #4567 for $1,240.');\n addMorph: (ButtonMorph new label: 'Approve'; onClick: [Taskriz current reply: #{ #decision -> 'approve' }]);\n addMorph: (ButtonMorph new label: 'Query'; style: #plain; onClick: [Taskriz current reply: #{ #decision -> 'query' }]);\n yourself`; const sent = await (await fetch('https://api.taskriz.com/v1/send', { method: 'POST', headers: auth, body: JSON.stringify({ to: [connectionId], kind: 'ui', correlationId: 'invoice-4567', importance: 'high', subject: 'Approve invoice #4567', summary: 'Acme Ltd · $1,240 · due Friday', payload: ui, }), })).json(); // { messageId, recipients }ui = ("ScreenMorph new title: 'Invoice #4567';" " addMorph: (LabelMorph new text: 'Acme Ltd sent invoice #4567 for $1,240.');" " addMorph: (ButtonMorph new label: 'Approve'; onClick: [Taskriz current reply: #{ #decision -> 'approve' }]);" " addMorph: (ButtonMorph new label: 'Query'; style: #plain; onClick: [Taskriz current reply: #{ #decision -> 'query' }]);" " yourself") sent = requests.post('https://api.taskriz.com/v1/send', headers=auth, json={ 'to': [offer['connectionId']], 'kind': 'ui', 'correlationId': 'invoice-4567', 'importance': 'high', 'subject': 'Approve invoice #4567', 'summary': 'Acme Ltd · $1,240 · due Friday', 'payload': ui, }).json() # {'messageId': …, 'recipients': 1}Get the answer
Answers arrive as events. Fetch them (or receive them by webhook or WebSocket — see Getting answers), then acknowledge the ones you’ve handled.
replyis the structured answer.curl https://api.taskriz.com/v1/events -H 'authorization: Bearer <access_token>' curl -X POST https://api.taskriz.com/v1/events/ack \ -H 'authorization: Bearer <access_token>' -H 'content-type: application/json' \ -d '{"ids": ["01K…"]}'const { events } = await (await fetch('https://api.taskriz.com/v1/events', { headers: auth })).json(); for (const e of events) { if (e.kind === 'reply' && e.correlationId === 'invoice-4567') console.log(e.reply); // { decision: 'approve' } } await fetch('https://api.taskriz.com/v1/events/ack', { method: 'POST', headers: auth, body: JSON.stringify({ ids: events.map((e) => e.id) }) });events = requests.get('https://api.taskriz.com/v1/events', headers=auth).json()['events'] for e in events: if e['kind'] == 'reply' and e['correlationId'] == 'invoice-4567': print(e['reply']) # {'decision': 'approve'} requests.post('https://api.taskriz.com/v1/events/ack', headers=auth, json={'ids': [e['id'] for e in events]})
An event, as it arrives:
{
"v": 1,
"id": "01K…",
"kind": "reply",
"from": "prof_…",
"connectionId": "…",
"correlationId": "invoice-4567",
"inReplyTo": "01K…",
"timestamp": "2026-10-11T09:41:00Z",
"contentType": "application/json",
"payload": "#{#decision->'approve'}",
"reply": {
"decision": "approve"
},
"attempts": 1
}
Requests are interfaces
A request’s payload is its interface: a short program, in Smalltalk, built from familiar iOS-style building blocks — screens, lists, text fields, switches, pickers, date pickers, photo and document pickers, buttons. Taskriz runs it in a sandbox on the person’s own device, following world-leading human interface guidelines, so it looks and feels native wherever they open it. The last statement is a ScreenMorph … yourself; a button’s Taskriz current reply: #{ … } sends the answer back as JSON in the event’s reply.
| colour note |
colour := SegmentedControlMorph new label: 'Colour'; segments: #('Red' 'Green' 'Blue'); selected: 'Green'.
note := TextFieldMorph new label: 'Why?'; placeholder: 'Optional'.
ScreenMorph new
title: 'Favourite Colour';
addMorph: (LabelMorph new text: 'Which colour do you like best?'; textStyle: #headline);
addMorph: (ListMorph new style: #insetGrouped; addMorph: colour; addMorph: note; yourself);
addMorph: (ButtonMorph new label: 'Send';
onClick: [Taskriz current reply: #{ #colour -> colour selected. #why -> note value }]);
yourself
The plugins write these for you: get_ui_guide has the building blocks and the guidelines, and check_ui runs an interface first and shows you a preview. A photo or document picker’s files come back in the reply as {id, name, type, size}.
See every building block and its options, live, in the Morph catalog.
Or ask in plain words
No interface to write: send ask instead of payload — up to 10 questions (300 characters each) and an optional line of context (300 characters). Taskriz’s AI designs the request from them, one answer per question, checks it, and sends it as usual. Give your own subject, or Taskriz writes one. It counts as 5 requests for the design, plus one for each person it reaches.
curl -X POST https://api.taskriz.com/v1/send \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"to": ["01JC4B8XQ2M7TFPA9RZK3D6VNE"], "kind": "ui", "correlationId": "inv-4567", "importance": "high",
"ask": {"context": "Invoice #4567, $1,240 for October hosting",
"questions": ["Is the amount correct?", "When will you pay?"]}}'
The answer arrives as a usual reply event, with answers too — each question with its answer, in the order you asked:
{
"kind": "reply",
"correlationId": "inv-4567",
"reply": { "q1": "Yes", "q2": "2026-11-14" },
"answers": [
{ "question": "Is the amount correct?", "answer": "Yes" },
{ "question": "When will you pay?", "answer": "2026-11-14" }
]
}
The questions and context are read by Taskriz’s AI to design the request; as with every request, what’s sent is then encrypted to the people it’s for. Taskriz won’t ask for passwords, card numbers or other secrets: it refuses with 422 ask_refused and says why. Nothing is counted when a request isn’t sent.
Getting answers
- Fetch them —
GET /v1/events(oldest first, up to 100 at a time), thenPOST /v1/events/ack. Unacknowledged events are kept for 30 days. - Webhook — choose Sent to Its Web Address for the Agent (Settings → Developer), or
POST /v1/updatewith"invocation": {"mode": "webhook", "endpoint": "https://…"}, and Taskriz posts each event to your HTTPS endpoint, signed with yourwebhookSecretin aTaskriz-Signatureheader (andTaskriz-Event-Id). A 2xx means delivered (still acknowledge it); otherwise Taskriz retries for 24 hours. - WebSocket — a
persistentAgent can keepwss://www.taskriz.com/prod?token=<access_token>open: events arrive as they happen; send{"action": "sync"}to replay the unacknowledged ones.
Events are answers (reply), actions people start (initiate), what became of email invitations (invitation), and read receipts (receipt): delivered when a request reaches the person’s device, then read when they open it — one per person, each once, with inReplyTo naming the request — and reminded each time a reminder goes, with reminder and of (1 of 2). Leave receipts out with GET /v1/events?exclude=receipt.
Delivery is at least once — de-duplicate by the event’s id. Checking a webhook’s signature:
import { createHmac, timingSafeEqual } from 'node:crypto';
// Taskriz-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>"> — keyed by your webhookSecret
function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false; // not a replay
const want = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
return parts.v1?.length === want.length && timingSafeEqual(Buffer.from(parts.v1), Buffer.from(want));
}
The request catalog
Not every conversation starts with your Agent. A request catalog lists actions people can start themselves — “Report a problem”, “Request a statement”. Set it with POST /v1/update (it replaces the whole list; up to 50 entries, by plan).
{
"catalog": [
{
"id": "report-problem",
"label": "Report a problem",
"description": "Tell us what went wrong",
"importance": "high"
},
{
"id": "request-statement",
"label": "Request a statement"
}
]
}
When someone picks one in Taskriz, your Agent gets an initiate event with its actionId and a new correlationId. Answer with POST /v1/send on that correlationId — your interface collects whatever you need.
Branding
So people know which brand a request is from, an Agent can have a logo — shown in place of its initials wherever it appears in Taskriz, and in its emails — and a footer that Taskriz draws at the end of each request: up to three short lines (your business name and number, an address) and up to three links (your website, contact, privacy), which open outside the app. It’s fixed per Agent and on every plan. Set it in Settings → Developer, or from code:
- Logo — a square PNG, JPEG or WebP, at least 128 × 128 and up to 1 MB. Upload it with
POST /v1/attachments, then name it. Taskriz re-encodes it (128 and 512 px) and serves it itself. - Footer — lines up to 80 characters; link labels up to 30, addresses
httpsonly and not on taskriz.com. - Each is set on its own: leave one out to keep it, or send
nullto remove it.
curl -X POST https://api.taskriz.com/v1/attachments \
-H 'authorization: Bearer <access_token>' -H 'content-type: application/json' \
-d "{\"name\": \"logo.png\", \"type\": \"image/png\", \"content\": \"$(base64 -w0 logo.png)\"}"
# → {"id": "att_…", …}
curl -X POST https://api.taskriz.com/v1/update \
-H 'authorization: Bearer <access_token>' -H 'content-type: application/json' \
-d '{"branding": {"logo": {"attachmentId": "att_…"}, "footer": {"lines": ["Acme Ltd · ABN 51 824 753 556"], "links": [{"label": "acme.com.au", "url": "https://acme.com.au"}]}}}'
# → {"branding": {"logo": {"url": "https://www.taskriz.com/api/agents/logo?…"}, "footer": {…}}}import { readFileSync } from 'node:fs';
const logo = await (await fetch('https://api.taskriz.com/v1/attachments', {
method: 'POST', headers: auth,
body: JSON.stringify({ name: 'logo.png', type: 'image/png', content: readFileSync('logo.png').toString('base64') }),
})).json();
const { branding } = await (await fetch('https://api.taskriz.com/v1/update', {
method: 'POST', headers: auth,
body: JSON.stringify({ branding: {
logo: { attachmentId: logo.id },
footer: { lines: ['Acme Ltd · ABN 51 824 753 556'], links: [{ label: 'acme.com.au', url: 'https://acme.com.au' }] },
} }),
})).json(); // { logo: { url }, footer }import base64
with open('logo.png', 'rb') as f:
logo = requests.post('https://api.taskriz.com/v1/attachments', headers=auth, json={
'name': 'logo.png', 'type': 'image/png', 'content': base64.b64encode(f.read()).decode(),
}).json()
branding = requests.post('https://api.taskriz.com/v1/update', headers=auth, json={'branding': {
'logo': {'attachmentId': logo['id']},
'footer': {'lines': ['Acme Ltd · ABN 51 824 753 556'], 'links': [{'label': 'acme.com.au', 'url': 'https://acme.com.au'}]},
}}).json()['branding'] # logo url, footerBeside the Agent’s name, people also see its account line: your Taskriz account’s email domain (e.g. acme.com.au · To: Me) — nothing for a personal mail provider. Your Agent can’t set it; you can hide it in Settings → Developer.
Website Requests
An Agent can also be the AI front desk on a business’s own website: visitors ask in plain words, Taskriz builds the request, and what they send arrives in the account owner’s Taskriz inbox from the Agent. Set it up in Taskriz under Settings → Developer → the Agent → Add a Website Embed — the website it runs on (one per Agent), an optional greeting and business description. The Agent’s request catalog becomes the chat’s suggestions. See Website Requests for the whole picture, and the live demo.
Taskriz gives two snippets, each carrying the embed’s publishable id (not a secret):
<!-- the chat button, in the corner of each page -->
<script src="https://www.taskriz.com/embed.js" data-embed="embed_…" async></script>
<!-- the inline chat, where you paste it: a prompt box until there’s input, then the whole chat -->
<script src="https://www.taskriz.com/embed.js" data-embed="embed_…" data-inline async></script>
The inline chat starts compact, just its box and suggestions, and grows to the whole chat (640 pixels tall, or data-height) once someone asks. An earlier inline snippet, an <iframe> of /embed/chat, still works, at full height.
The chat is a page from Taskriz in a frame, sent with Content-Security-Policy: frame-ancestors set to the embed’s website, so browsers show it nowhere else. It sets no cookies. If your website has its own Content Security Policy, allow the frame with frame-src https://www.taskriz.com, and for the chat button also script-src https://www.taskriz.com.
Files
POST /v1/attachments makes an attachment three ways: {name, type, size} for an upload link (15 minutes), {url} for Taskriz to fetch, or {content} inline (base64, small files). Put the ids in a request’s attachments. Files people send back are in the event; GET /v1/attachments/{id} gives a download link (5 minutes). Up to 100 MB a file, 20 per request.
Reminders
Ask Taskriz to remind people who haven’t answered: add remindAfter to a request — hours or days, from "1h" to "30d" — and, if you want more than one, reminders (1 to 3; 1 if you leave it out). Each reminder comes the same wait apart: "2d" with 3 reminders is day 2, day 4 and day 6. Without remindAfter there are no reminders.
{ "to": ["01JC4B8XQ2M7TFPA9RZK3D6VNE"], "kind": "ui", "correlationId": "invoice-4567", "importance": "high",
"payload": "…", "remindAfter": "2d", "reminders": 2 }
A reminder goes to each person who hasn’t answered yet, the way the request reached them: by email, text and the Taskriz app, as their notification settings allow; to someone without an account, their link again; in Slack or Google Chat, a reply under the request. It names your Agent, never the request itself. Reminders stop when the person answers or deletes the request, when you recall it, or at its expiresAt. Each one sent is a reminded receipt. Reminders aren’t counted as requests; a reminder by text counts toward your plan’s texts, as text notices do.
Threads and recall
Your correlationId is the thread: requests and answers that share it are grouped for the person, and each answer names the request it answers (inReplyTo). Changed your mind? POST /v1/recall with the messageId withdraws it from everyone it was sent to.
Every request is sealed to the person’s own devices — see Security.
MCP tools
The Taskriz MCP server (https://www.taskriz.com/mcp, OAuth sign-in) gives an AI Agent these tools:
| Tool | What it does |
|---|---|
list_agents | Your account’s Agents. An Organisation’s Agent shows its organisation, and the Organisation’s owner also sees the ones its members made (made_by) |
create_agent | A new Agent in your account, paired with your Profile. Made while the app acts for an Organisation Profile, it’s the Organisation’s Agent |
list_recipients | The people paired with an Agent, and requests waiting for people to open them |
pairing_code | A one-time code for someone to pair (24 hours), with its link and QR code |
get_ui_guide | How to build a request’s interface (the building blocks and the guidelines) |
check_ui | Runs an interface in the Taskriz runtime: the error, or a preview |
send_request | Checks and sends a request — to paired people, or by email as an invitation — with reminders if you ask (remind_after, reminders) |
get_replies | Answers, actions people started, pairings, and invitation results — and, with include_receipts, read receipts and reminders sent |
acknowledge | Marks events handled |
set_catalog | Replaces the Agent’s request catalog |
set_branding | Sets the Agent’s logo and footer (and answers the logo to see) |
recall_request | Withdraws a request from everyone it was sent to |
create_attachment | Attaches a file (upload link, URL, or inline) |
get_attachment | Downloads a file someone sent back |
Waiting for an answer
People answer when they get to it, often minutes or hours later. After send_request, look for the answer with get_replies and the request’s thread, waiting a little longer between checks: 20 seconds, then 1 minute, 2 minutes, 5 minutes, then every 15 minutes. wait_seconds (up to 20) holds a check open until something arrives.
With nothing back yet, get_replies says when to look again (next_check_seconds, longer the older the request), how long ago it went, and how many people it has reached and opened:
{
"events": [],
"message": "No replies yet. It has reached 1 person; 1 has opened it. People often take minutes to hours to answer. …",
"next_check_seconds": 60,
"sent_seconds_ago": 150,
"reached": 1,
"opened": 1
}
An AI Agent that can’t keep waiting, because its turn has to end, should tell the person the request is out and look for the answer when they’re back. No reply yet isn’t a failure. Over the Agent API, a webhook or WebSocket brings the answer to you instead.
In the chat: MCP Apps
In Claude, ChatGPT, Microsoft 365 Copilot, Cursor and VS Code, and other hosts that show MCP Apps, some tools also show their results inside the conversation:
- The request preview (
check_ui,send_request): the request drawn by the real Taskriz runtime, exactly as the person will see it — your Agent’s name, logo and footer, and an interface whose controls work. Nothing is sent from the preview. - The replies panel (
get_replies): who answered and what, with any files. Check again asks Taskriz once more. - The pairing panel (
pairing_code): the QR code to scan, the code and its link.
Hosts that don’t show MCP Apps get the same results as text.
Limits and errors
Each person a request reaches counts as one request, against your plan’s monthly limit — see Pricing. An Agent made in an Organisation Profile counts against the Organisation’s plan instead, shared by its members; its refusals name the Organisation and carry organisation. A request Taskriz designs from plain words (ask) counts 5 more. Over the limit, a request is refused whole, before anything is delivered:
{
"error": "plan_limit",
"plan": "free",
"limit": 500,
"used": 500,
"upgradeUrl": "https://www.taskriz.com/pricing/",
"message": "Not sent: this account’s Free plan includes 500 requests a month (each person reached counts as one), and 500 are used. …"
}
| Status | Means |
|---|---|
400 | A field is missing or invalid ({"error": "…"} says which) |
401 | No valid token (or, on /token, wrong credentials) |
402 | plan_limit — the plan’s requests, people or Agents are used up |
403 | Not an Agent token, or someone who hasn’t paired with your Agent |
404 | No such thing (or not yours) |
409 | The person hasn’t set up Taskriz on a device yet |
422 | ask_refused (the questions can’t be sent, and message says why) or ask_unbuildable (try wording them differently) |
503 | ask_unavailable — Taskriz couldn’t design the request just now; try again shortly |
Also: subjects up to 200 characters and summaries up to 500; groups of up to 50 people; up to 100 events a fetch.
Versioning
The version is in the path: /v1. Within v1 changes are additive — new fields and new endpoints, never removals — so ignore what you don’t recognise. A breaking change would come as /v2, beside v1. Each request also carries the runtime version its interface was written for, so a request keeps working after the runtime moves on.