API

Last updated: November 10, 2026

Nylon’s API lets your own scripts read your lists and todos: a build step that shows your Today list on your site, say, or a small worker. It can only read.

Authentication

Make a token in Settings, under API token. Send it with every request:

Authorization: Bearer nyl_…
  • A token can only read. It can’t change anything.
  • Keep it in a server, a build or a worker, never in page code. /v1 doesn’t accept browser calls from other sites.
  • It doesn’t expire. Regenerate or revoke it in Settings, and anything using the old one stops working.

Routes

Every route is a GET on https://api.nylonimpossible.com and returns JSON.

  • GET /v1/lists: { data: [List] }: Today, This week, Someday, then your lists, in the apps’ order.
  • GET /v1/lists/:id: One list.
  • GET /v1/lists/:id/todos: { data: [Todo], nextCursor }: the list’s todos that aren’t done, pinned first, in the apps’ order.
  • GET /v1/todos/:id: One todo, done or not, with its subtasks inside it.

For a list’s :id, today, this-week and someday work too, so you don’t need to look their ids up.

On /v1/lists/:id/todos, ?done=true returns done todos instead, most recently changed first. ?limit= sets the page size (100 by default, 500 at most). When there are more, pass the response’s nextCursor back as ?cursor=; on the last page it’s null.

curl -H "Authorization: Bearer nyl_…" \
  https://api.nylonimpossible.com/v1/lists/today/todos

Responses

A list:

{
  "id": "8f14e45fceea167a5a36dedd4bea2543",
  "name": "Today",
  "kind": "today",
  "updatedAt": "2026-11-02T09:00:00.000Z"
}

kind is today, this_week, someday, or list for your own lists.

A todo:

{
  "id": "0c9a3c4e-6f7b-4d1a-9a52-5b8f0e6f2d11",
  "listId": "8f14e45fceea167a5a36dedd4bea2543",
  "title": "Ship the public API",
  "notes": "Docs first, then the token.",
  "pinned": true,
  "done": false,
  "due": "2026-11-03",
  "repeat": {
    "frequency": "weekly"
  },
  "links": [
    {
      "id": "5d41402a-bc4b-4a76-b971-9d911017c592",
      "url": "https://nylonimpossible.com/docs/api",
      "title": "API",
      "siteName": "Nylon Impossible",
      "showAsUrl": false
    }
  ],
  "subtasks": [
    {
      "id": "7d793037-a076-4c5c-8b0e-1c2c2b1c3a44",
      "title": "Write tests",
      "done": false
    }
  ],
  "createdAt": "2026-11-01T18:30:00.000Z",
  "updatedAt": "2026-11-02T09:00:00.000Z"
}
  • due is a day, YYYY-MM-DD, or null.
  • repeat is null, or how often it repeats: daily, weekly, monthly or yearly. A repeating todo is never done: marking it done moves its due day on.
  • showAsUrl means the apps show the link’s address rather than its title. title and siteName are null until the link’s details have been fetched.
  • Subtasks come inside their todo, done ones included, in order.

Rate limit

60 requests a minute per token. Over that, you get 429 with a Retry-After header.

Errors

Errors come back as JSON with a message and a stable code:

{"error":"List not found","code":"list_not_found"}
CodeStatusMeaning
unauthorized401The token is missing, malformed, or was regenerated or revoked.
validation_failed400A query parameter isn’t valid, such as limit=501.
list_not_found404There’s no list of yours with that id.
todo_not_found404There’s no todo of yours with that id.
rate_limited429Over the rate limit. Wait for Retry-After seconds.

Versioning

/v1 only grows: new fields and routes may be added, and nothing is renamed or removed. A breaking change ships as /v2, with /v1 kept running for at least 6 months and marked with a Deprecation header.


HomePrivacyTerms