{
  "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": "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.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Resource id."
          }
        ],
        "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
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 902, \"list_id\": 3, \"title\": \"Send the quote to Dana\", … } }"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "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.",
        "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.",
        "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\", … } }"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "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."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "content": "Sent it this morning."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": "{ \"data\": { \"id\": 5512, \"task_id\": 902, \"content\": \"Sent it this morning.\", … } }"
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "insufficient_scope"
          },
          "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"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Send: Authorization: Bearer <token>"
      }
    }
  }
}