{"name":"Priority List API","version":1,"base_url":"https://api-preview.prioritylist.com","auth":"Send the header \"Authorization: Bearer <key>\" on every call. JSON in and out (Content-Type: application/json).","status":{"key":"missing"},"ask_the_user":["No valid API key. Ask the user to turn on API Access in Settings > API / AI Access, then to store the key where your tools can read it, following key_safety. Do not ask them to paste it into this conversation."],"key_safety":["Never ask the user to paste the key into the chat, and never show, repeat, log or save it anywhere the conversation can see.","Ask the user to enter the key themselves into a secret store your tools can read: your platform's API key or secret setting (for a connector, action or integration), an environment variable named PRIORITY_LIST_API_KEY, or the system keychain.","If you run commands on the user's computer (for example Claude Code), have the user type the key into their own terminal or secret store, so it never passes through you; then read it from there inside each request without printing it.","If you have no safe place to keep a key, say so and do not ask for it.","Send the key only in the Authorization header, only to https://api-preview.prioritylist.com; never put it in a URL.","If the key may have been exposed, ask the user to replace it (the refresh button next to the key in Settings > API / AI Access); the old key stops working at once."],"cannot_do":["Lists shared with the user but owned by someone else: only lists the user owns are reachable.","Sharing: inviting people, changing their access, public links. The user does these in the app.","Account settings (name, email, notifications, dark mode). The user does these in the app.","Unticking a task the user ticked themselves, or a repeating task. The user does these in the app."],"rules":["Tasks are ordered by the app's own priority score (importance, time and deadline urgency).","Estimating time: first decide who will do the task. If you will do it yourself (writing, research, planning, code), estimate your own time, which is usually seconds to minutes, so \"1 min\" or \"5 mins\". Only estimate for a person when the user will do it. Do not assume a person does work you will do: it makes tasks look far longer than they are and pushes them down the list.","Errors come back as {\"error\": \"...\"} with a matching HTTP status: 400 bad input, 401 key, 403 not allowed, 404 not found, 409 conflict, 429 too many requests.","At most 60 requests a minute per key.","GET /tasks returns the most important 25 by default, with total saying how many there are. To find something specific, narrow with list_id or due rather than paging through everything.","Ids in paths are numbers from earlier answers; {id} marks them."],"values":{"importance":[{"value":0,"label":"Completely Unnecessary"},{"value":1,"label":"Potentially Not Needed"},{"value":2,"label":"Can Wait"},{"value":3,"label":"Tiny Impact"},{"value":4,"label":"Low Importance"},{"value":5,"label":"Neutral"},{"value":6,"label":"Fairly Important"},{"value":7,"label":"Must-Do"},{"value":8,"label":"Really Important"},{"value":9,"label":"Extremely Important"},{"value":10,"label":"Critical"}],"time":[{"value":0,"label":"1+ weeks"},{"value":1,"label":"4-6 days"},{"value":2,"label":"2-3 days"},{"value":3,"label":"1 day"},{"value":4,"label":"4-6 hours"},{"value":5,"label":"2-3 hours"},{"value":6,"label":"1 hour"},{"value":7,"label":"30 mins"},{"value":8,"label":"15 mins"},{"value":9,"label":"5 mins"},{"value":10,"label":"1 min"}]},"endpoints":[{"group":"Tasks","method":"GET","path":"/tasks","does":"Open tasks across your lists, most important first","query":[{"name":"list_id","type":"integer (list id)","note":"Only this list."},{"name":"due","type":"string","note":"Only tasks with a deadline: `overdue` (past it), `today` (by the end of today) or `week` (within 7 days)."},{"name":"limit","type":"integer, 1 to 100","note":"How many to return. Default `25`."},{"name":"offset","type":"integer","note":"Skip this many, for the next page. Default `0`."}],"example_response":{"total":1,"offset":0,"limit":25,"tasks":[{"id":812,"name":"Weekly report","done":false,"flagged":false,"importance":7,"time":5,"deadline":"2026-12-07 17:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"ticked_by_api":false,"subtasks":[],"list_id":12,"list_name":"Work","sublist_id":40,"sublist_name":"This week"}]}},{"group":"Tasks","method":"POST","path":"/lists/{id}/tasks","does":"Add a task","send":[{"name":"name","type":"string","note":"Up to 300 characters; longer is cut.","required":true},{"name":"importance","type":"integer, 0 to 10","note":"How important. Default `5`.","values":"importance"},{"name":"time","type":"integer, 0 to 10","note":"How long it takes. Default `5`.","values":"time"},{"name":"deadline","type":"string or null","note":"`\"YYYY-MM-DD\"` or `\"YYYY-MM-DD HH:MM\"`, in the user's time zone. `null` clears it."},{"name":"repeat","type":"object or null","note":"Needs a deadline. `null` stops it.","shape":"{\n  \"every\": 1,\n  \"unit\": \"week\",\n  \"weekdays\": [\"mon\", \"thu\"]\n}","fields":[{"name":"every","type":"integer","required":true,"note":"1-30 days, 1-52 weeks, 1-12 months or 1-10 years."},{"name":"unit","type":"string","required":true,"note":"`\"day\"`, `\"week\"`, `\"month\"` or `\"year\"`."},{"name":"weekdays","type":"array of strings","note":"Weeks only: `\"mon\"` to `\"sun\"`."}]},{"name":"depends_on","type":"integer (task id) or null","note":"A task in the same sublist that must be done first. `null` clears it."},{"name":"sublist_id","type":"integer (sublist id)","note":"Default: the list's first sublist."}],"example_request":{"name":"Weekly report","importance":7,"time":5,"deadline":"2026-12-07 17:00","repeat":{"every":1,"unit":"week"}},"example_response":{"task":{"id":812,"name":"Weekly report","done":false,"flagged":false,"importance":7,"time":5,"deadline":"2026-12-07 17:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"ticked_by_api":false,"subtasks":[]}}},{"group":"Tasks","method":"POST","path":"/tasks/{id}/subtasks","does":"Add a subtask","send":[{"name":"name","type":"string","note":"Up to 300 characters; longer is cut.","required":true},{"name":"importance","type":"integer, 0 to 10","note":"How important. Default `5`.","values":"importance"},{"name":"time","type":"integer, 0 to 10","note":"How long it takes. Default `5`.","values":"time"},{"name":"deadline","type":"string or null","note":"`\"YYYY-MM-DD\"` or `\"YYYY-MM-DD HH:MM\"`, in the user's time zone. `null` clears it."},{"name":"repeat","type":"object or null","note":"Needs a deadline. `null` stops it.","shape":"{\n  \"every\": 1,\n  \"unit\": \"week\",\n  \"weekdays\": [\"mon\", \"thu\"]\n}","fields":[{"name":"every","type":"integer","required":true,"note":"1-30 days, 1-52 weeks, 1-12 months or 1-10 years."},{"name":"unit","type":"string","required":true,"note":"`\"day\"`, `\"week\"`, `\"month\"` or `\"year\"`."},{"name":"weekdays","type":"array of strings","note":"Weeks only: `\"mon\"` to `\"sun\"`."}]},{"name":"depends_on","type":"integer (task id) or null","note":"Another subtask of the same task. `null` clears it."}],"example_request":{"name":"Collect the numbers","time":7},"example_response":{"task":{"id":813,"name":"Collect the numbers","done":false,"flagged":false,"importance":5,"time":7,"deadline":null,"repeat":null,"depends_on":null,"ticked_by_api":false,"subtasks":[]}}},{"group":"Tasks","method":"PATCH","path":"/tasks/{id}","does":"Edit, flag, or move to another sublist. Send only what changes","send":[{"name":"name","type":"string","note":"Up to 300 characters; longer is cut."},{"name":"importance","type":"integer, 0 to 10","note":"How important. Default `5`.","values":"importance"},{"name":"time","type":"integer, 0 to 10","note":"How long it takes. Default `5`.","values":"time"},{"name":"deadline","type":"string or null","note":"`\"YYYY-MM-DD\"` or `\"YYYY-MM-DD HH:MM\"`, in the user's time zone. `null` clears it."},{"name":"repeat","type":"object or null","note":"Needs a deadline. `null` stops it.","shape":"{\n  \"every\": 1,\n  \"unit\": \"week\",\n  \"weekdays\": [\"mon\", \"thu\"]\n}","fields":[{"name":"every","type":"integer","required":true,"note":"1-30 days, 1-52 weeks, 1-12 months or 1-10 years."},{"name":"unit","type":"string","required":true,"note":"`\"day\"`, `\"week\"`, `\"month\"` or `\"year\"`."},{"name":"weekdays","type":"array of strings","note":"Weeks only: `\"mon\"` to `\"sun\"`."}]},{"name":"depends_on","type":"integer (task id) or null","note":"A task in the same sublist that must be done first. `null` clears it."},{"name":"flagged","type":"boolean","note":"Flag or unflag (open tasks only)."},{"name":"sublist_id","type":"integer (sublist id)","note":"Move to another sublist of the same list. Tasks that depend on it move too."}],"example_request":{"importance":9,"flagged":true},"example_response":{"task":{"id":812,"name":"Weekly report","done":false,"flagged":true,"importance":9,"time":5,"deadline":"2026-12-07 17:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"ticked_by_api":false,"subtasks":[]}}},{"group":"Tasks","method":"POST","path":"/tasks/{id}/tick","does":"Mark done. A repeating task gets its next occurrence","example_response":{"task":{"id":812,"name":"Weekly report","done":true,"flagged":false,"importance":7,"time":5,"deadline":"2026-12-07 17:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"ticked_by_api":true,"subtasks":[]}}},{"group":"Tasks","method":"POST","path":"/tasks/{id}/untick","does":"Undo a tick made through the API (not repeating tasks)","example_response":{"task":{"id":812,"name":"Weekly report","done":false,"flagged":false,"importance":7,"time":5,"deadline":"2026-12-07 17:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"ticked_by_api":false,"subtasks":[]}}},{"group":"Tasks","method":"DELETE","path":"/tasks/{id}","does":"Delete a task and its subtasks","example_response":{"deleted":true}},{"group":"Lists","method":"GET","path":"/lists","does":"Your lists","example_response":{"lists":[{"id":12,"name":"Work","tasks":18,"done":5,"starred":true,"focus":false}]}},{"group":"Lists","method":"GET","path":"/lists/{id}","does":"Sublists, tasks and subtasks, in priority order","example_response":{"id":12,"name":"Work","tasks":18,"done":5,"starred":true,"focus":false,"notes":"","sublists":[{"id":40,"name":"","expanded":true,"tasks":[{"id":812,"name":"Weekly report","done":false,"flagged":false,"importance":7,"time":5,"deadline":"2026-12-07 17:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"ticked_by_api":false,"subtasks":[]}]}]}},{"group":"Lists","method":"POST","path":"/lists","does":"Create a list (it starts with one sublist)","send":[{"name":"name","type":"string","note":"Up to 300 characters; longer is cut.","required":true},{"name":"notes","type":"string","note":"Up to 4000 bytes."}],"example_request":{"name":"Launch","notes":"Q1 launch plan"},"example_response":{"list":{"id":13,"name":"Launch","tasks":0,"done":0,"starred":false,"focus":false,"notes":"Q1 launch plan","sublists":[{"id":41,"name":"","expanded":true,"tasks":[]}]}}},{"group":"Lists","method":"PATCH","path":"/lists/{id}","does":"Rename, notes, star, focus. Send only what changes","send":[{"name":"name","type":"string","note":"Up to 300 characters; longer is cut."},{"name":"notes","type":"string","note":"Replaces the notes."},{"name":"starred","type":"boolean","note":"Star the list."},{"name":"focus","type":"boolean","note":"Focus mode on the list."}],"example_request":{"starred":true},"example_response":{"list":{"id":12,"name":"Work","tasks":18,"done":5,"starred":true,"focus":false}}},{"group":"Lists","method":"POST","path":"/lists/{id}/clear-ticked","does":"Delete all ticked tasks in the list","example_response":{"list":{"id":12,"name":"Work","tasks":13,"done":0,"starred":true,"focus":false}}},{"group":"Lists","method":"DELETE","path":"/lists/{id}","does":"Delete the list (also for anyone it is shared with)","needs_delete_permission":true,"example_response":{"deleted":true}},{"group":"Sublists","method":"POST","path":"/lists/{id}/sublists","does":"Add a sublist","send":[{"name":"name","type":"string","note":"Up to 300 characters; longer is cut.","required":true}],"example_request":{"name":"Next week"},"example_response":{"sublist":{"id":42,"name":"Next week","expanded":false}}},{"group":"Sublists","method":"PATCH","path":"/sublists/{id}","does":"Rename, expand or collapse","send":[{"name":"name","type":"string","note":"Up to 300 characters; longer is cut."},{"name":"expanded","type":"boolean","note":"Show or hide its tasks in the app."}],"example_request":{"expanded":true},"example_response":{"sublist":{"id":42,"name":"Next week","expanded":true}}},{"group":"Sublists","method":"PUT","path":"/lists/{id}/sublist-order","does":"Reorder sublists","send":[{"name":"ids","type":"array of integers","required":true,"note":"Every sublist of the list, once each, top first."}],"example_request":{"ids":[42,40]},"example_response":{"sublists":[42,40]}},{"group":"Sublists","method":"DELETE","path":"/sublists/{id}","does":"Delete a sublist and its tasks (not a list's only one)","needs_delete_permission":true,"example_response":{"deleted":true}}]}