{
  "components": {
    "headers": {
      "API-Version": {
        "description": "Version of the API that served the response.",
        "schema": {
          "example": "0.2.0",
          "type": "string"
        }
      },
      "Deprecation": {
        "description": "RFC 9745 deprecation timestamp when an endpoint is scheduled for replacement.",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit-Limit": {
        "description": "Maximum number of requests permitted in the current rate-limit window.",
        "schema": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "RateLimit-Policy": {
        "description": "IETF RateLimit policy declaration (for example `600;w=60`).",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit-Remaining": {
        "description": "Number of requests remaining in the current rate-limit window.",
        "schema": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "RateLimit-Reset": {
        "description": "Seconds until the rate-limit quota resets.",
        "schema": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "Retry-After": {
        "description": "Seconds to wait before retrying after a 429 Too Many Requests response.",
        "schema": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "Sunset": {
        "description": "RFC 8594 HTTP-date after which a deprecated endpoint will be removed (at least 90 days notice).",
        "schema": {
          "type": "string"
        }
      }
    },
    "parameters": {
      "ApiVersion": {
        "description": "Requested API version label (defaults to the current stable version).",
        "in": "header",
        "name": "API-Version",
        "required": false,
        "schema": {
          "default": "0.2.0",
          "type": "string"
        }
      }
    },
    "schemas": {
      "ProblemDetails": {
        "properties": {
          "code": {
            "description": "Machine-readable error code.",
            "type": "string"
          },
          "detail": {
            "description": "Explanation of this specific error.",
            "type": "string"
          },
          "hint": {
            "description": "Actionable recovery guidance for callers.",
            "type": "string"
          },
          "status": {
            "description": "HTTP status code.",
            "type": "integer"
          },
          "title": {
            "description": "Short summary of the error.",
            "type": "string"
          },
          "type": {
            "description": "Stable URI identifying the error class.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "description": "Least-privilege OAuth 2.1 scopes for authenticated operations; public read operations also accept anonymous requests.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://reminders.ferrite.run/oauth/authorize",
            "scopes": {
              "apps:discover": "Discover available operations, schemas, and public metadata.",
              "apps:read": "Read-only access to declared GET and read-only operations.",
              "apps:write": "Invoke mutating operations and asynchronous jobs."
            },
            "tokenUrl": "https://reminders.ferrite.run/oauth/token"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "description": "Reminders is a shared to-do application: coloured lists of reminders with due dates and times, notes, priorities and flags, and the smart lists Today, Scheduled, All, Flagged and Completed. Use it to see what is due, search the reminders, add and reschedule them, or tick them off. Every change goes through the same replay-safe actions as the website's forms, so a retried request takes effect once. Everyone who opens the application works on the same lists.\n\nVersioning and deprecation policy: endpoints are versioned via URL path and the optional `API-Version` header (current version: 0.2.0). Deprecated endpoints emit RFC 9745 `Deprecation` and RFC 8594 `Sunset` response headers at least 90 days before removal. Rate limits are communicated via IETF `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, `RateLimit-Policy`, and `Retry-After` headers.",
    "title": "reminders",
    "version": "0.2.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/lists": {
      "get": {
        "operationId": "list_lists",
        "parameters": [
          {
            "in": "query",
            "name": "today",
            "required": false,
            "schema": {
              "description": "the caller's own date as YYYY-MM-DD, which decides what counts as today; left out, it is today in UTC",
              "format": "date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "lists": {
                      "description": "every list, oldest first",
                      "items": {
                        "properties": {
                          "color": {
                            "description": "the list's colour",
                            "enum": [
                              "blue",
                              "red",
                              "orange",
                              "yellow",
                              "green",
                              "mint",
                              "teal",
                              "cyan",
                              "indigo",
                              "purple",
                              "pink",
                              "brown"
                            ],
                            "type": "string"
                          },
                          "id": {
                            "description": "the list's id",
                            "type": "string"
                          },
                          "name": {
                            "description": "the list's name",
                            "type": "string"
                          },
                          "open": {
                            "description": "how many of its reminders are not done yet",
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "color",
                          "open"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "smart_lists": {
                      "properties": {
                        "all": {
                          "description": "open reminders",
                          "minimum": 0,
                          "type": "integer"
                        },
                        "completed": {
                          "description": "reminders that are done",
                          "minimum": 0,
                          "type": "integer"
                        },
                        "flagged": {
                          "description": "open reminders with a flag",
                          "minimum": 0,
                          "type": "integer"
                        },
                        "scheduled": {
                          "description": "open reminders with a due date",
                          "minimum": 0,
                          "type": "integer"
                        },
                        "today": {
                          "description": "open reminders due today or earlier",
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "today",
                        "scheduled",
                        "all",
                        "flagged",
                        "completed"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "lists",
                    "smart_lists"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "List every list with its colour and how many reminders are still open in it. Use it first, to find the list_id a new reminder needs or to see where the work is. Returns the lists and the counts of the five smart lists.",
        "x-idempotent": true,
        "x-read-only": true
      },
      "post": {
        "operationId": "add_list",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "color": {
                    "description": "the list's colour",
                    "enum": [
                      "blue",
                      "red",
                      "orange",
                      "yellow",
                      "green",
                      "mint",
                      "teal",
                      "cyan",
                      "indigo",
                      "purple",
                      "pink",
                      "brown"
                    ],
                    "examples": [
                      "green"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "description": "the list's name, 1 to 60 characters",
                    "examples": [
                      "Garden"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "list": {
                      "properties": {
                        "color": {
                          "description": "the list's colour",
                          "enum": [
                            "blue",
                            "red",
                            "orange",
                            "yellow",
                            "green",
                            "mint",
                            "teal",
                            "cyan",
                            "indigo",
                            "purple",
                            "pink",
                            "brown"
                          ],
                          "type": "string"
                        },
                        "id": {
                          "description": "the list's id",
                          "type": "string"
                        },
                        "name": {
                          "description": "the list's name",
                          "type": "string"
                        },
                        "open": {
                          "description": "how many of its reminders are not done yet",
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "color",
                        "open"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "description": "true once the change is stored",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "list"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Create a list. Use it when a set of reminders belongs together and no existing list fits; check list_lists first. Returns ok and the stored list, whose id add_reminder takes as list_id.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/lists/{id}": {
      "post": {
        "operationId": "update_list",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "the list's id, from list_lists",
              "examples": [
                "groceries"
              ],
              "type": "string"
            }
          },
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "color": {
                    "description": "the list's colour",
                    "enum": [
                      "blue",
                      "red",
                      "orange",
                      "yellow",
                      "green",
                      "mint",
                      "teal",
                      "cyan",
                      "indigo",
                      "purple",
                      "pink",
                      "brown"
                    ],
                    "examples": [
                      "green"
                    ],
                    "type": "string"
                  },
                  "id": {
                    "description": "the list's id, from list_lists",
                    "examples": [
                      "groceries"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "description": "the new name, 1 to 60 characters",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "list": {
                      "properties": {
                        "color": {
                          "description": "the list's colour",
                          "enum": [
                            "blue",
                            "red",
                            "orange",
                            "yellow",
                            "green",
                            "mint",
                            "teal",
                            "cyan",
                            "indigo",
                            "purple",
                            "pink",
                            "brown"
                          ],
                          "type": "string"
                        },
                        "id": {
                          "description": "the list's id",
                          "type": "string"
                        },
                        "name": {
                          "description": "the list's name",
                          "type": "string"
                        },
                        "open": {
                          "description": "how many of its reminders are not done yet",
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "color",
                        "open"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "description": "true once the change is stored",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "list"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Rename a list or change its colour. Use it to tidy up the sidebar; the reminders in the list are untouched, and a field you leave out keeps its value. Returns ok and the list as it now stands.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/lists/{id}/delete": {
      "post": {
        "operationId": "delete_list",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "the list's id, from list_lists",
              "examples": [
                "groceries"
              ],
              "type": "string"
            }
          },
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "the list's id, from list_lists",
                    "examples": [
                      "groceries"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "description": "the list that is gone",
                      "type": "string"
                    },
                    "ok": {
                      "description": "true once the change is stored",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Delete a list and every reminder in it. Use it only when all of its reminders may go; move the ones to keep with update_reminder first. Deleting one that is already gone also succeeds. Returns ok and the id.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/reminders": {
      "get": {
        "operationId": "list_reminders",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "description": "next_cursor from the previous page; leave out for the first page",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "list_id",
            "required": false,
            "schema": {
              "description": "only the reminders in this list, by its id from list_lists",
              "examples": [
                "groceries"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "description": "only reminders with this text in the title or notes, ignoring case; without a view it also searches the completed ones",
              "examples": [
                "water"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "today",
            "required": false,
            "schema": {
              "description": "the caller's own date as YYYY-MM-DD, which decides what counts as today; left out, it is today in UTC",
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "description": "a smart list: today is everything due today or earlier, scheduled has a due date, all is everything open",
              "enum": [
                "today",
                "scheduled",
                "all",
                "flagged",
                "completed"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "has_more": {
                      "description": "True when additional pages follow after this page.",
                      "type": "boolean"
                    },
                    "next_cursor": {
                      "description": "Opaque cursor for fetching the next page, or null when no further items exist.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reminders": {
                      "description": "Items in this page.",
                      "items": {
                        "properties": {
                          "completed": {
                            "description": "whether it is done",
                            "type": "boolean"
                          },
                          "due_date": {
                            "description": "YYYY-MM-DD, or null when it has no due date",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "due_time": {
                            "description": "HH:MM, or null when it is due at any time that day",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "flagged": {
                            "description": "whether it is flagged",
                            "type": "boolean"
                          },
                          "id": {
                            "description": "the reminder's id",
                            "type": "string"
                          },
                          "list_id": {
                            "description": "the list it belongs to",
                            "type": "string"
                          },
                          "notes": {
                            "description": "the notes, empty when there are none",
                            "type": "string"
                          },
                          "priority": {
                            "description": "how important it is",
                            "enum": [
                              "none",
                              "low",
                              "medium",
                              "high"
                            ],
                            "type": "string"
                          },
                          "title": {
                            "description": "what to do",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "list_id",
                          "title",
                          "notes",
                          "due_date",
                          "due_time",
                          "priority",
                          "flagged",
                          "completed"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "total": {
                      "description": "how many reminders match, on every page together",
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "reminders",
                    "has_more"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Read reminders, 50 a page, in the order the website shows them. Use it to see what is due, to look through one list, or to find a reminder's id before changing it. With no arguments it returns everything still open. Returns the reminders, the total and next_cursor.",
        "x-idempotent": true,
        "x-read-only": true
      },
      "post": {
        "operationId": "add_reminder",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "due_date": {
                    "description": "the due date as YYYY-MM-DD",
                    "examples": [
                      "2027-03-01"
                    ],
                    "type": "string"
                  },
                  "due_time": {
                    "description": "the time on the due date as HH:MM on a 24-hour clock",
                    "examples": [
                      "09:30"
                    ],
                    "type": "string"
                  },
                  "flagged": {
                    "description": "whether to flag it; false when left out",
                    "type": "boolean"
                  },
                  "list_id": {
                    "description": "the list to put it in, by its id from list_lists",
                    "examples": [
                      "reminders"
                    ],
                    "type": "string"
                  },
                  "title": {
                    "description": "what to do, 1 to 300 characters",
                    "examples": [
                      "Return the library books"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "title",
                  "list_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "true once the change is stored",
                      "type": "boolean"
                    },
                    "reminder": {
                      "properties": {
                        "completed": {
                          "description": "whether it is done",
                          "type": "boolean"
                        },
                        "due_date": {
                          "description": "YYYY-MM-DD, or null when it has no due date",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "due_time": {
                          "description": "HH:MM, or null when it is due at any time that day",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "flagged": {
                          "description": "whether it is flagged",
                          "type": "boolean"
                        },
                        "id": {
                          "description": "the reminder's id",
                          "type": "string"
                        },
                        "list_id": {
                          "description": "the list it belongs to",
                          "type": "string"
                        },
                        "notes": {
                          "description": "the notes, empty when there are none",
                          "type": "string"
                        },
                        "priority": {
                          "description": "how important it is",
                          "enum": [
                            "none",
                            "low",
                            "medium",
                            "high"
                          ],
                          "type": "string"
                        },
                        "title": {
                          "description": "what to do",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "list_id",
                        "title",
                        "notes",
                        "due_date",
                        "due_time",
                        "priority",
                        "flagged",
                        "completed"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "ok",
                    "reminder"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Add a reminder to a list. Use it when something new needs doing; call list_lists first for the list_id, and update_reminder afterwards for notes or a priority. Returns ok and the stored reminder with its id.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/reminders/{id}": {
      "post": {
        "operationId": "update_reminder",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "the reminder's id, from list_reminders",
              "examples": [
                "water-the-plants"
              ],
              "type": "string"
            }
          },
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "due_date": {
                    "description": "the new due date as YYYY-MM-DD; an empty string clears the date and the time",
                    "type": "string"
                  },
                  "due_time": {
                    "description": "the new time as HH:MM on a 24-hour clock; an empty string makes it due at any time that day",
                    "type": "string"
                  },
                  "flagged": {
                    "description": "whether it is flagged",
                    "type": "boolean"
                  },
                  "id": {
                    "description": "the reminder's id, from list_reminders",
                    "examples": [
                      "water-the-plants"
                    ],
                    "type": "string"
                  },
                  "list_id": {
                    "description": "the list to move it to, by its id from list_lists",
                    "type": "string"
                  },
                  "notes": {
                    "description": "the new notes, at most 2,000 characters; an empty string clears them",
                    "examples": [
                      "The fern only needs a little."
                    ],
                    "type": "string"
                  },
                  "priority": {
                    "description": "the new priority",
                    "enum": [
                      "none",
                      "low",
                      "medium",
                      "high"
                    ],
                    "type": "string"
                  },
                  "title": {
                    "description": "the new title, 1 to 300 characters",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "true once the change is stored",
                      "type": "boolean"
                    },
                    "reminder": {
                      "properties": {
                        "completed": {
                          "description": "whether it is done",
                          "type": "boolean"
                        },
                        "due_date": {
                          "description": "YYYY-MM-DD, or null when it has no due date",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "due_time": {
                          "description": "HH:MM, or null when it is due at any time that day",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "flagged": {
                          "description": "whether it is flagged",
                          "type": "boolean"
                        },
                        "id": {
                          "description": "the reminder's id",
                          "type": "string"
                        },
                        "list_id": {
                          "description": "the list it belongs to",
                          "type": "string"
                        },
                        "notes": {
                          "description": "the notes, empty when there are none",
                          "type": "string"
                        },
                        "priority": {
                          "description": "how important it is",
                          "enum": [
                            "none",
                            "low",
                            "medium",
                            "high"
                          ],
                          "type": "string"
                        },
                        "title": {
                          "description": "what to do",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "list_id",
                        "title",
                        "notes",
                        "due_date",
                        "due_time",
                        "priority",
                        "flagged",
                        "completed"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "ok",
                    "reminder"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Change a reminder: its title, notes, due date and time, priority, flag or list. Use it to reschedule, reword or move one; a field you leave out keeps its value. Returns ok and the reminder as it now stands.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/reminders/{id}/complete": {
      "post": {
        "operationId": "toggle_complete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "the reminder's id, from list_reminders",
              "examples": [
                "water-the-plants"
              ],
              "type": "string"
            }
          },
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "the reminder's id, from list_reminders",
                    "examples": [
                      "water-the-plants"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "true once the change is stored",
                      "type": "boolean"
                    },
                    "reminder": {
                      "properties": {
                        "completed": {
                          "description": "whether it is done",
                          "type": "boolean"
                        },
                        "due_date": {
                          "description": "YYYY-MM-DD, or null when it has no due date",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "due_time": {
                          "description": "HH:MM, or null when it is due at any time that day",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "flagged": {
                          "description": "whether it is flagged",
                          "type": "boolean"
                        },
                        "id": {
                          "description": "the reminder's id",
                          "type": "string"
                        },
                        "list_id": {
                          "description": "the list it belongs to",
                          "type": "string"
                        },
                        "notes": {
                          "description": "the notes, empty when there are none",
                          "type": "string"
                        },
                        "priority": {
                          "description": "how important it is",
                          "enum": [
                            "none",
                            "low",
                            "medium",
                            "high"
                          ],
                          "type": "string"
                        },
                        "title": {
                          "description": "what to do",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "list_id",
                        "title",
                        "notes",
                        "due_date",
                        "due_time",
                        "priority",
                        "flagged",
                        "completed"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "ok",
                    "reminder"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Mark a reminder as done, or open it again when it is already done. Use it when the work is finished; calling it a second time undoes the first. Returns ok and the reminder, whose completed field says which way it went.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/reminders/{id}/delete": {
      "post": {
        "operationId": "delete_reminder",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "the reminder's id, from list_reminders",
              "examples": [
                "water-the-plants"
              ],
              "type": "string"
            }
          },
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "the reminder's id, from list_reminders",
                    "examples": [
                      "water-the-plants"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "description": "the reminder that is gone",
                      "type": "string"
                    },
                    "ok": {
                      "description": "true once the change is stored",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "id"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Delete a reminder for good. Use it for one that was a mistake; use toggle_complete for one that is done, so that it stays in Completed. Deleting one that is already gone also succeeds. Returns ok and the id.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/reminders/{id}/flag": {
      "post": {
        "operationId": "toggle_flag",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "the reminder's id, from list_reminders",
              "examples": [
                "water-the-plants"
              ],
              "type": "string"
            }
          },
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "the reminder's id, from list_reminders",
                    "examples": [
                      "water-the-plants"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "true once the change is stored",
                      "type": "boolean"
                    },
                    "reminder": {
                      "properties": {
                        "completed": {
                          "description": "whether it is done",
                          "type": "boolean"
                        },
                        "due_date": {
                          "description": "YYYY-MM-DD, or null when it has no due date",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "due_time": {
                          "description": "HH:MM, or null when it is due at any time that day",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "flagged": {
                          "description": "whether it is flagged",
                          "type": "boolean"
                        },
                        "id": {
                          "description": "the reminder's id",
                          "type": "string"
                        },
                        "list_id": {
                          "description": "the list it belongs to",
                          "type": "string"
                        },
                        "notes": {
                          "description": "the notes, empty when there are none",
                          "type": "string"
                        },
                        "priority": {
                          "description": "how important it is",
                          "enum": [
                            "none",
                            "low",
                            "medium",
                            "high"
                          ],
                          "type": "string"
                        },
                        "title": {
                          "description": "what to do",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "list_id",
                        "title",
                        "notes",
                        "due_date",
                        "due_time",
                        "priority",
                        "flagged",
                        "completed"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "ok",
                    "reminder"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Flag a reminder, or remove the flag when it already has one. Use it to bring a reminder into the Flagged list without changing its date or priority. Returns ok and the reminder, whose flagged field says which way it went.",
        "x-idempotent": true,
        "x-read-only": false
      }
    }
  },
  "security": [
    {},
    {
      "oauth2": [
        "apps:discover",
        "apps:read",
        "apps:write"
      ]
    }
  ],
  "servers": [
    {
      "url": "https://reminders.ferrite.run"
    }
  ],
  "x-agent-card": "https://reminders.ferrite.run/.well-known/agent-card.json",
  "x-ard-catalog": "https://reminders.ferrite.run/.well-known/ard.json",
  "x-llms-txt": "https://reminders.ferrite.run/llms.txt",
  "x-mcp-endpoint": "https://reminders.ferrite.run/mcp",
  "x-webmcp": "https://reminders.ferrite.run/.well-known/webmcp.js"
}