{"name":"Priority List API","version":1,"base_url":"https://api.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 > AI / API Access > API, 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.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 > AI / API Access > API); 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: AIs overestimate badly, so this matters. Estimate for whoever will actually do the task, which may not be the AI adding it: if an AI will do it (an assistant or agent), use AI time (seconds to minutes, so `10` or `9`); if a person will do computer work (code, migrations, documents, analysis), assume they use AI (minutes to a few hours, not days or weeks); only hands-on work (calls, meetings, errands, physical tasks) gets a traditional estimate. If unsure who or how, ask.","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.","Time zone: status.time_zone is the user's offset now, and status.time_zone_name their zone (e.g. \"Europe/London\"), from where they last opened the app. A deadline sent without an offset is in that zone, with daylight saving for its own date; deadlines with a time come back with their offset, e.g. \"2026-12-07 17:00 +08:00\". If the user says they are somewhere else now, send the offset for there.","GET /tasks returns the most important 25 by default, with total saying how many there are. To find a task by name, use q; to narrow, list_id or due. Do not page through everything.","A task with blocked true is waiting for the task in depends_on to be done. Do not suggest doing it yet; suggest the task it waits for.","Ids in paths are numbers from earlier answers; {list-id}, {sublist-id} and {task-id} mark 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":"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/{list-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 +08:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"blocked":false,"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/{list-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/{list-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/{list-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/{list-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/{sublist-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/{list-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/{sublist-id}","does":"Delete a sublist and its tasks (not a list's only one)","needs_delete_permission":true,"example_response":{"deleted":true}},{"group":"Tasks","method":"GET","path":"/tasks","does":"Open tasks across your lists, most important first","query":[{"name":"q","type":"string","note":"Find tasks and subtasks by name (contains these words). Not with `due`."},{"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 +08:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"blocked":false,"ticked_by_api":false,"subtasks":[],"list_id":12,"list_name":"Work","sublist_id":40,"sublist_name":"This week"}]}},{"group":"Tasks","method":"GET","path":"/tasks/{task-id}","does":"One task or subtask, with where it is","example_response":{"task":{"id":812,"name":"Weekly report","done":false,"flagged":false,"importance":7,"time":5,"deadline":"2026-12-07 17:00 +08:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"blocked":false,"ticked_by_api":false,"subtasks":[],"list_id":12,"list_name":"Work","sublist_id":40,"sublist_name":"This week","subtask_of":null}}},{"group":"Tasks","method":"POST","path":"/lists/{list-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. Higher is quicker: `10` is 1 minute, `0` is over a week. Default `5`. Estimate with AI help in mind: see the time rule.","values":"time"},{"name":"deadline","type":"string or null","note":"`\"YYYY-MM-DD\"` (by the end of that day) or `\"YYYY-MM-DD HH:MM\"`, in your time zone. Add an offset such as `\"+08:00\"` for another. `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","note":"1-30 days, 1-52 weeks, 1-12 months or 1-10 years. Default `1`."},{"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 +08:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"blocked":false,"ticked_by_api":false,"subtasks":[]}}},{"group":"Tasks","method":"POST","path":"/tasks/{task-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. Higher is quicker: `10` is 1 minute, `0` is over a week. Default `5`. Estimate with AI help in mind: see the time rule.","values":"time"},{"name":"deadline","type":"string or null","note":"`\"YYYY-MM-DD\"` (by the end of that day) or `\"YYYY-MM-DD HH:MM\"`, in your time zone. Add an offset such as `\"+08:00\"` for another. `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","note":"1-30 days, 1-52 weeks, 1-12 months or 1-10 years. Default `1`."},{"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,"blocked":false,"ticked_by_api":false,"subtasks":[]}}},{"group":"Tasks","method":"PATCH","path":"/tasks/{task-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. Higher is quicker: `10` is 1 minute, `0` is over a week. Default `5`. Estimate with AI help in mind: see the time rule.","values":"time"},{"name":"deadline","type":"string or null","note":"`\"YYYY-MM-DD\"` (by the end of that day) or `\"YYYY-MM-DD HH:MM\"`, in your time zone. Add an offset such as `\"+08:00\"` for another. `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","note":"1-30 days, 1-52 weeks, 1-12 months or 1-10 years. Default `1`."},{"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 +08:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"blocked":false,"ticked_by_api":false,"subtasks":[]}}},{"group":"Tasks","method":"POST","path":"/tasks/{task-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 +08:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"blocked":false,"ticked_by_api":true,"subtasks":[]}}},{"group":"Tasks","method":"POST","path":"/tasks/{task-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 +08:00","repeat":{"every":1,"unit":"week"},"depends_on":null,"blocked":false,"ticked_by_api":false,"subtasks":[]}}},{"group":"Tasks","method":"DELETE","path":"/tasks/{task-id}","does":"Delete a task and its subtasks","example_response":{"deleted":true}}]}