{
  "openapi": "3.0.3",
  "info": {
    "title": "Wabi.do API",
    "version": "1.0.0",
    "description": "Read and write your Wabi.do lists, tasks and comments over HTTP. Authenticate with a single bearer token scoped read or read_write.",
    "contact": {
      "name": "Wabi.do",
      "url": "https://rest.wabi.do"
    }
  },
  "servers": [
    {
      "url": "https://app.wabi.do",
      "description": "Production"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Lists"
    },
    {
      "name": "Tasks"
    },
    {
      "name": "Reminders",
      "description": "\"In 1 hour\" from a reminder's notification. The reminder itself is set with the reminder fields on the task."
    },
    {
      "name": "Comments"
    }
  ],
  "paths": {
    "/api/v1/lists": {
      "get": {
        "tags": [
          "Lists"
        ],
        "summary": "Every list you are a member of.",
        "operationId": "get_lists",
        "description": "Requires a read token.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "How many to return. Default 50, maximum 200."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "How many to skip. Default 0."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "data": [
                    {
                      "id": 3,
                      "name": "Important and urgent",
                      "image": null,
                      "created_at": "2026-03-11T08:12:00.000Z",
                      "updated_at": "2026-08-05T17:40:00.000Z",
                      "task_count": 28,
                      "members": [
                        {
                          "id": 5,
                          "name": "Noa Barak",
                          "email": "noa@example.com"
                        }
                      ]
                    }
                  ],
                  "pagination": {
                    "limit": 50,
                    "offset": 0,
                    "total": 12,
                    "has_more": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      },
      "post": {
        "tags": [
          "Lists"
        ],
        "summary": "Create a list. You become its owner and first member.",
        "operationId": "post_lists",
        "description": "Requires a read_write token.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "name": "Q3 launch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{\n  \"data\": {\n    \"id\": 41,\n    \"name\": \"Q3 launch\",\n    \"image\": null,\n    \"created_at\": \"2026-08-05T18:02:11.000Z\",\n    \"updated_at\": \"2026-08-05T18:02:11.000Z\",\n    \"task_count\": 0,\n    \"members\": [ … ]\n  }\n}"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      }
    },
    "/api/v1/lists/{id}": {
      "get": {
        "tags": [
          "Lists"
        ],
        "summary": "One list.",
        "operationId": "get_lists_id",
        "description": "Requires a read token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 3, \"name\": \"Important and urgent\", \"task_count\": 28, \"members\": [ … ] } }"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      },
      "patch": {
        "tags": [
          "Lists"
        ],
        "summary": "Rename a list.",
        "operationId": "patch_lists_id",
        "description": "Requires a read_write token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "name": "Q3 launch — shipped"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 41, \"name\": \"Q3 launch — shipped\", … } }"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      }
    },
    "/api/v1/lists/{id}/tasks": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "The tasks in a list.",
        "operationId": "get_lists_id_tasks",
        "description": "Requires a read token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "open or complete. Omit for both."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Default 50, maximum 200."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Default 0."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "data": [
                    {
                      "id": 902,
                      "list_id": 3,
                      "title": "Send the quote to Dana",
                      "status": "open",
                      "due_date": "2026-08-09T21:00:00.000Z",
                      "is_private": false,
                      "assignee": {
                        "id": 5,
                        "name": "Noa Barak",
                        "email": "noa@example.com"
                      },
                      "tags": [
                        {
                          "id": 2,
                          "name": "urgent",
                          "color": "#ee1c4e"
                        }
                      ],
                      "created_by": 5,
                      "created_at": "2026-08-02T06:30:00.000Z",
                      "updated_at": "2026-08-05T11:20:00.000Z"
                    }
                  ],
                  "pagination": {
                    "limit": 50,
                    "offset": 0,
                    "total": 28,
                    "has_more": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      },
      "post": {
        "tags": [
          "Tasks"
        ],
        "summary": "Add a task to a list.",
        "operationId": "post_lists_id_tasks",
        "description": "Requires a read_write token. A private task can be assigned only to its author, or to no one. A task can repeat from the start, with the same repeat fields as PATCH; a repeating task with no due_date is given today. A task can carry a reminder from the start, with the same reminder fields as PATCH.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "A value you generate, such as a UUID. A repeat of the request with the same key, within 24 hours, returns the first response instead of creating a second one. Keys belong to your account; a 5xx or a 429 response is not kept."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "title": "Send the quote to Dana",
                "due_date": "2026-08-10T00:00:00+03:00",
                "assignee_id": 5,
                "is_private": false,
                "repeat": "monthly"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when this is the stored response to an earlier request with the same Idempotency-Key, returned instead of running the request again. Absent otherwise.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 902, \"list_id\": 3, \"title\": \"Send the quote to Dana\", … } }"
              }
            }
          },
          "400": {
            "description": "idempotency_key_invalid: the Idempotency-Key header is empty, longer than 255 characters, or not printable ASCII"
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope, or private_task_assign (field assignee_id) when is_private is true and assignee_id is anyone but the caller"
          },
          "409": {
            "description": "idempotency_key_in_progress: a request with this Idempotency-Key is still running"
          },
          "422": {
            "description": "invalid_request, or idempotency_key_reused: this Idempotency-Key was already used with a different body"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      }
    },
    "/api/v1/tasks/{id}": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "One task.",
        "operationId": "get_tasks_id",
        "description": "Requires a read token. Every task carries repeat ({rule, interval, unit, mode}, or null) and series ({id, started_at}, or null); this call adds series.last_completed ({task_id, completed_at, by}) for a task in a series.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 902, \"list_id\": 3, \"status\": \"open\", … } }"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      },
      "patch": {
        "tags": [
          "Tasks"
        ],
        "summary": "Change a task. Send only the fields you are changing.",
        "operationId": "patch_tasks_id",
        "description": "Requires a read_write token. list_id moves the task to another list you belong to; if the assignee is not a member of that list, the move unassigns the task and the answer says who it was taken from in unassigned_on_move ({ id, name }, or null when nothing changed), unless the same request sends assignee_id. Only the task's author can change is_private. Making a task private unassigns anyone but its author in the same call, and a private task can be assigned only to its author, or to no one. To make a task repeat, send repeat (none, daily, weekly, biweekly, monthly, yearly or custom), with repeat_interval (1-99) and repeat_unit (day, week, month or year) for custom, and repeat_mode (on_schedule, the default, or when_done). Send only what changes; repeat: none stops the whole series. Completing a task in a series answers next_in_series: the instance that comes next, or null. Reminder: reminder is none, morning_of, evening_before, day_before, two_days_before, week_before or custom (with reminder_at); remind_creator: true sends it to the author too.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "status": "complete"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 902, \"status\": \"complete\", \"updated_at\": \"2026-08-05T18:14:02.000Z\", … }, \"next_in_series\": { \"id\": 903, \"due_date\": \"2026-08-17T21:00:00.000Z\" } }"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope; forbidden (field is_private) when someone other than the task's author sends is_private; or private_task_assign (field assignee_id) when a private task is assigned to anyone but its author. Nothing in a refused request is saved."
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          },
          "409": {
            "description": "series_date_taken (field due_date): the task would be due on the same day as another instance of its repeating series. Nothing is saved."
          },
          "422": {
            "description": "invalid_request, with the field: for a repeat rule, repeat, repeat_interval, repeat_unit or repeat_mode. Nothing is saved."
          }
        }
      }
    },
    "/api/v1/tasks/due-days": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "The days in a range that have tasks of yours due, with how many.",
        "operationId": "get_tasks_due_days",
        "description": "Requires a read token. Yours: assigned to you, or written by you with nobody else on it, in a list you are in, have not archived and that is not deleted; open tasks only. Only days that have any are listed, with no titles. Days are in tz, else the account's stored time zone; with neither, 400 time_zone_required. At most 62 days per request.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "First day, YYYY-MM-DD."
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Last day, YYYY-MM-DD, included; at most 62 days counting both."
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "IANA time zone of the device, such as Europe/London."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": [{ \"date\": \"2026-12-03\", \"count\": 2 }], \"time_zone\": \"Europe/London\" }"
              }
            }
          },
          "400": {
            "description": "time_zone_required: no tz sent and none stored on the account"
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "422": {
            "description": "invalid_request: from, to or tz is not valid, or the range is longer than 62 days"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      }
    },
    "/api/v1/tasks/{id}/snooze": {
      "post": {
        "tags": [
          "Reminders"
        ],
        "summary": "Have the reminder come again in an hour.",
        "operationId": "post_tasks_id_snooze",
        "description": "Requires a read_write token. For whoever the reminder is for. A task with no reminder is a 409 with the code nothing_to_snooze.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "data": {
                    "id": 902,
                    "snoozed_until": "2026-12-01T08:00:00.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "404": {
            "description": "not_found"
          },
          "409": {
            "description": "nothing_to_snooze: the task has no reminder"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      }
    },
    "/api/v1/tasks/{id}/comments": {
      "get": {
        "tags": [
          "Comments"
        ],
        "summary": "The conversation on a task, oldest first.",
        "operationId": "get_tasks_id_comments",
        "description": "Requires a read token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Default 50, maximum 200."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Default 0."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "data": [
                    {
                      "id": 5512,
                      "task_id": 902,
                      "content": "Sent it this morning.",
                      "author": {
                        "id": 5,
                        "name": "Noa Barak",
                        "email": "noa@example.com"
                      },
                      "created_at": "2026-08-05T09:02:00.000Z",
                      "updated_at": "2026-08-05T09:02:00.000Z"
                    }
                  ],
                  "pagination": {
                    "limit": 50,
                    "offset": 0,
                    "total": 3,
                    "has_more": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      },
      "post": {
        "tags": [
          "Comments"
        ],
        "summary": "Comment on a task.",
        "operationId": "post_tasks_id_comments",
        "description": "Requires a read_write token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "A value you generate, such as a UUID. A repeat of the request with the same key, within 24 hours, returns the first response instead of creating a second one. Keys belong to your account; a 5xx or a 429 response is not kept."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "content": "Sent it this morning."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when this is the stored response to an earlier request with the same Idempotency-Key, returned instead of running the request again. Absent otherwise.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 5512, \"task_id\": 902, \"content\": \"Sent it this morning.\", … } }"
              }
            }
          },
          "400": {
            "description": "idempotency_key_invalid: the Idempotency-Key header is empty, longer than 255 characters, or not printable ASCII"
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "409": {
            "description": "idempotency_key_in_progress: a request with this Idempotency-Key is still running"
          },
          "422": {
            "description": "invalid_request, or idempotency_key_reused: this Idempotency-Key was already used with a different body"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      }
    },
    "/api/v1/comments/{id}": {
      "patch": {
        "tags": [
          "Comments"
        ],
        "summary": "Edit a comment you wrote.",
        "operationId": "patch_comments_id",
        "description": "Requires a read_write token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "content": "Sent it this morning, quote #4471."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 5512, \"content\": \"Sent it this morning, quote #4471.\", … } }"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "429": {
            "description": "Rate limited — see Retry-After header"
          }
        }
      }
    },
    "/api/v1/notifications/register": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "summary": "Register this device for push notifications",
        "description": "Stores the device's FCM token against the caller and turns their pushes on. Call it after obtaining a token and again whenever the token changes. Requires a read_write token.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token",
                  "platform"
                ],
                "properties": {
                  "token": {
                    "type": "string",
                    "description": "The FCM registration token of this device."
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "ios",
                      "android",
                      "web"
                    ]
                  },
                  "topic": {
                    "type": "string",
                    "deprecated": true,
                    "description": "Ignored; devices are no longer subscribed to a topic"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Registered",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "registered": {
                          "type": "boolean"
                        },
                        "platform": {
                          "type": "string"
                        },
                        "topic": {
                          "type": "string",
                          "nullable": true,
                          "deprecated": true,
                          "description": "Always null; devices are no longer subscribed to a topic"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Bearer token"
          },
          "403": {
            "description": "Read-only token"
          },
          "422": {
            "description": "Missing or over-long token (more than 4096 characters), or unknown platform"
          }
        }
      }
    },
    "/api/v1/notifications/unregister": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "summary": "Stop push notifications for this device",
        "description": "Drops the device's token. When it was the caller's last device, their pushes are turned off.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token"
                ],
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "topic": {
                    "type": "string",
                    "deprecated": true,
                    "description": "Ignored; devices are no longer subscribed to a topic"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unregistered",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "unregistered": {
                          "type": "boolean"
                        },
                        "remaining": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Bearer token"
          },
          "422": {
            "description": "Missing token"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Send: Authorization: Bearer <token>"
      }
    }
  }
}
