{
  "openapi": "3.1.0",
  "info": {
    "title": "agentdrives",
    "version": "v0.0.0-20261130124249-580cccaca78f",
    "description": "AgentDrives is the directory of software an AI agent can work on its own: choose a provider for a task, search, compare and rank products by the agent level our drives found. The lookups need no key; for the account tools an agent gets a key with sign_up, or a person signs in at https://agentdrives.com/signin.",
    "x-currency": "usd"
  },
  "servers": [
    {
      "url": "https://origin.agentdrives.com",
      "description": "this door"
    }
  ],
  "security": [
    {
      "bearer": []
    },
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/api/account": {
      "get": {
        "operationId": "account_get",
        "summary": "Answers the account of the calling key: its id, name, email address, whether that is proven, whether a person claimed it, and when it was made.",
        "description": "Answers the account of the calling key: its id, name, email address, whether that is proven, whether a person claimed it, and when it was made. Call it to learn who a key is; its keys are listed by account_keys. Access: a key with account:read or account:write. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "claimed": {
                      "type": "boolean",
                      "description": "whether a person claimed it from its agent"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it was made"
                    },
                    "email": {
                      "type": "string",
                      "description": "its email address, lower-cased; empty: none yet"
                    },
                    "id": {
                      "type": "integer",
                      "description": "the account's id"
                    },
                    "name": {
                      "type": "string",
                      "description": "its name, as its agent gave it; empty: none"
                    },
                    "proven": {
                      "type": "boolean",
                      "description": "whether the email address is proven"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "email",
                    "proven",
                    "claimed",
                    "created_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the calling key's account",
                    "value": {
                      "id": 42,
                      "name": "research-bot",
                      "email": "ada@example.com",
                      "proven": true,
                      "claimed": true,
                      "created_at": "2026-11-02T09:30:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "account",
        "summary": "Answers the account of the calling key: its id, name, email address, whether that is proven, whether a person claimed it, and when it was made.",
        "description": "Answers the account of the calling key: its id, name, email address, whether that is proven, whether a person claimed it, and when it was made. Call it to learn who a key is; its keys are listed by account_keys. Access: a key with account:read or account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "the calling key's account",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "claimed": {
                      "type": "boolean",
                      "description": "whether a person claimed it from its agent"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it was made"
                    },
                    "email": {
                      "type": "string",
                      "description": "its email address, lower-cased; empty: none yet"
                    },
                    "id": {
                      "type": "integer",
                      "description": "the account's id"
                    },
                    "name": {
                      "type": "string",
                      "description": "its name, as its agent gave it; empty: none"
                    },
                    "proven": {
                      "type": "boolean",
                      "description": "whether the email address is proven"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "email",
                    "proven",
                    "claimed",
                    "created_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the calling key's account",
                    "value": {
                      "id": 42,
                      "name": "research-bot",
                      "email": "ada@example.com",
                      "proven": true,
                      "claimed": true,
                      "created_at": "2026-11-02T09:30:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_app_revoke": {
      "post": {
        "operationId": "account_app_revoke",
        "summary": "Disconnects an app connected to the calling key's account by OAuth: its refresh token and access tokens are refused from now on, and revoking it again changes nothing.",
        "description": "Disconnects an app connected to the calling key's account by OAuth: its refresh token and access tokens are refused from now on, and revoking it again changes nothing. Call it when a person no longer wants the app; it can connect again only with their approval. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "the id of the app's grant, as account_apps lists it",
                    "minimum": 1
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "disconnect an app",
                  "value": {
                    "id": 3
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "description": "the grant's id"
                    },
                    "revoked_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it was revoked"
                    }
                  },
                  "required": [
                    "id",
                    "revoked_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "disconnect an app",
                    "value": {
                      "id": 3,
                      "revoked_at": "2026-11-06T18:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_apps": {
      "get": {
        "operationId": "account_apps_get",
        "summary": "Lists the apps connected to the calling key's account by OAuth, such as an MCP client, with when each was approved and last used.",
        "description": "Lists the apps connected to the calling key's account by OAuth, such as an MCP client, with when each was approved and last used. Call it to show a person their connected apps; account_app_revoke disconnects one. Access: a key with account:read or account:write. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apps": {
                      "type": "array",
                      "description": "the apps connected by OAuth that are not revoked, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "approved_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when the person approved it"
                          },
                          "client_id": {
                            "type": "string",
                            "description": "the app's client id"
                          },
                          "client_name": {
                            "type": "string",
                            "description": "the name the app gave itself; empty: none"
                          },
                          "id": {
                            "type": "integer",
                            "description": "the grant's id, which account_app_revoke takes"
                          },
                          "last_used_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it last got tokens or called, to the hour"
                          },
                          "scopes": {
                            "type": "array",
                            "description": "the scopes approved",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "client_id",
                          "client_name",
                          "scopes",
                          "approved_at",
                          "last_used_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "apps"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "an MCP client",
                    "value": {
                      "apps": [
                        {
                          "id": 3,
                          "client_id": "oc_3hY0bVJ9kq2Wm8xTn5RcLg",
                          "client_name": "Claude",
                          "scopes": [
                            "deals:read"
                          ],
                          "approved_at": "2026-11-05T18:00:00Z",
                          "last_used_at": "2026-11-05T20:00:00Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "account_apps",
        "summary": "Lists the apps connected to the calling key's account by OAuth, such as an MCP client, with when each was approved and last used.",
        "description": "Lists the apps connected to the calling key's account by OAuth, such as an MCP client, with when each was approved and last used. Call it to show a person their connected apps; account_app_revoke disconnects one. Access: a key with account:read or account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "an MCP client",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apps": {
                      "type": "array",
                      "description": "the apps connected by OAuth that are not revoked, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "approved_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when the person approved it"
                          },
                          "client_id": {
                            "type": "string",
                            "description": "the app's client id"
                          },
                          "client_name": {
                            "type": "string",
                            "description": "the name the app gave itself; empty: none"
                          },
                          "id": {
                            "type": "integer",
                            "description": "the grant's id, which account_app_revoke takes"
                          },
                          "last_used_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it last got tokens or called, to the hour"
                          },
                          "scopes": {
                            "type": "array",
                            "description": "the scopes approved",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "client_id",
                          "client_name",
                          "scopes",
                          "approved_at",
                          "last_used_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "apps"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "an MCP client",
                    "value": {
                      "apps": [
                        {
                          "id": 3,
                          "client_id": "oc_3hY0bVJ9kq2Wm8xTn5RcLg",
                          "client_name": "Claude",
                          "scopes": [
                            "deals:read"
                          ],
                          "approved_at": "2026-11-05T18:00:00Z",
                          "last_used_at": "2026-11-05T20:00:00Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_block": {
      "post": {
        "operationId": "account_block",
        "summary": "Blocks an account: every key of it is refused, as a revoked one is, until account_unblock; blocking it again changes nothing.",
        "description": "Blocks an account: every key of it is refused, as a revoked one is, until account_unblock; blocking it again changes nothing. Call it with an admin key to stop an account at once and keep its data; account_delete ends it for good. Access: a key with accounts:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "integer",
                    "description": "the account's id",
                    "minimum": 1
                  }
                },
                "required": [
                  "account"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "block an account",
                  "value": {
                    "account": 42
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "integer",
                      "description": "the account's id"
                    },
                    "blocked": {
                      "type": "boolean",
                      "description": "whether it is blocked now"
                    }
                  },
                  "required": [
                    "account",
                    "blocked"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "block an account",
                    "value": {
                      "account": 42,
                      "blocked": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_delete": {
      "post": {
        "operationId": "account_delete",
        "summary": "Deletes an account for good: revokes its keys, clears its name, email address and its passkeys, and deletes the product's data of it; deleting it again changes nothing.",
        "description": "Deletes an account for good: revokes its keys, clears its name, email address and its passkeys, and deletes the product's data of it; deleting it again changes nothing. Call it with the account's own key to delete it, or with an admin key and its id; account_block stops an account without deleting it. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "integer",
                    "description": "the id of the account to delete, for an admin key; an account's key leaves it out, or gives its own",
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "delete the calling key's account",
                  "value": {}
                },
                "example2": {
                  "summary": "an admin deletes an account",
                  "value": {
                    "account": 42
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "integer",
                      "description": "the deleted account's id"
                    },
                    "deleted_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it was deleted"
                    }
                  },
                  "required": [
                    "account",
                    "deleted_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "delete the calling key's account",
                    "value": {
                      "account": 42,
                      "deleted_at": "2026-11-04T10:00:00Z"
                    }
                  },
                  "example2": {
                    "summary": "an admin deletes an account",
                    "value": {
                      "account": 42,
                      "deleted_at": "2026-11-04T10:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_import": {
      "post": {
        "operationId": "account_import",
        "summary": "Imports an account and its keys from another system, a person's by its email address or an agent's by its name, so that its keys keep working as they are; importing it again adds only the keys it lacks, to an agent's account given as account.",
        "description": "Imports an account and its keys from another system, a person's by its email address or an agent's by its name, so that its keys keep working as they are; importing it again adds only the keys it lacks, to an agent's account given as account. Call it with an admin key when moving accounts here; new accounts come from sign_up. Access: a key with accounts:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "integer",
                    "description": "an account made already, by an earlier import, to import to; with email, it must have that address; none: the account email names, else a new agent's account",
                    "minimum": 1
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "when the account was made in the system it comes from"
                  },
                  "email": {
                    "type": "string",
                    "description": "the account's email address; it is lower-cased, and an account that has it already is the one imported to; none: an agent's account, which needs name",
                    "maxLength": 254
                  },
                  "keys": {
                    "type": "array",
                    "description": "its keys, which keep working as they are; at most 100",
                    "items": {
                      "type": "object",
                      "properties": {
                        "created_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "when the key was made; default: now"
                        },
                        "expires_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "when the key stops working; one past is imported and refused as any expired key; none: never"
                        },
                        "hash": {
                          "type": "string",
                          "description": "the SHA-256 of the whole key, as base64url with no padding: 32 bytes",
                          "maxLength": 64
                        },
                        "name": {
                          "type": "string",
                          "description": "the key's name; default: imported",
                          "maxLength": 100
                        },
                        "prefix": {
                          "type": "string",
                          "description": "what the key starts with, shown to tell keys apart",
                          "maxLength": 16
                        }
                      },
                      "required": [
                        "hash",
                        "prefix"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "name": {
                    "type": "string",
                    "description": "the account's name; an account imported to that has none takes it; needed without email",
                    "maxLength": 100
                  },
                  "password_hash": {
                    "type": "string",
                    "description": "its password's scrypt hash as Better Auth keeps it, salt:hash in hex, only with email; none: the account has no password",
                    "maxLength": 512
                  },
                  "proven": {
                    "type": "boolean",
                    "description": "whether that system proved the email address; only with email"
                  }
                },
                "required": [
                  "created_at"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "import an account with its key",
                  "value": {
                    "email": "ada@example.com",
                    "name": "Ada",
                    "created_at": "2025-03-01T08:00:00Z",
                    "proven": true,
                    "keys": [
                      {
                        "hash": "n4bQgYhMfWWaL-qgxVrQFaO_TxsrC4Is0V1sFbDwCgg",
                        "prefix": "sd_",
                        "name": "laptop"
                      }
                    ]
                  }
                },
                "example2": {
                  "summary": "import an agent's account with its key",
                  "value": {
                    "name": "research-bot",
                    "created_at": "2025-05-02T09:00:00Z",
                    "keys": [
                      {
                        "hash": "Uep-KiCNKf3HSp89Y-kQ_AN0xUPxfqonSrqXxJQZBhA",
                        "prefix": "sd_",
                        "name": "ci"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "integer",
                      "description": "the account's id, new, given or found by its email address"
                    },
                    "keys_added": {
                      "type": "integer",
                      "description": "how many of the keys were added"
                    },
                    "keys_existing": {
                      "type": "integer",
                      "description": "how many the account had already, from an earlier import"
                    }
                  },
                  "required": [
                    "account",
                    "keys_added",
                    "keys_existing"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "import an account with its key",
                    "value": {
                      "account": 42,
                      "keys_added": 1,
                      "keys_existing": 0
                    }
                  },
                  "example2": {
                    "summary": "import an agent's account with its key",
                    "value": {
                      "account": 43,
                      "keys_added": 1,
                      "keys_existing": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_key_add": {
      "post": {
        "operationId": "account_key_add",
        "summary": "Makes another key for the calling key's account, with the same access, and answers it, shown only once.",
        "description": "Makes another key for the calling key's account, with the same access, and answers it, shown only once. Call it to give a new device or agent its own key, which account_key_revoke ends without touching the others. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "the new key's name, to tell it from the account's others",
                    "maxLength": 100
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "a key for a laptop",
                  "value": {
                    "name": "laptop"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "description": "the new key's id"
                    },
                    "key": {
                      "type": "string",
                      "description": "the new key, shown only now: send it as X-Api-Key, or as Authorization: Bearer"
                    }
                  },
                  "required": [
                    "id",
                    "key"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "a key for a laptop",
                    "value": {
                      "id": 8,
                      "key": "mk_Zk4-9qA..."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_key_revoke": {
      "post": {
        "operationId": "account_key_revoke",
        "summary": "Revokes one of the calling key's account's keys: it is refused from now on, and revoking it again changes nothing.",
        "description": "Revokes one of the calling key's account's keys: it is refused from now on, and revoking it again changes nothing. Call it when a key is lost or no longer used; account_delete ends the account and every key. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "the id of the key to revoke, as account_keys lists it",
                    "minimum": 1
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "revoke a lost key",
                  "value": {
                    "id": 8
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "description": "the revoked key's id"
                    },
                    "revoked_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it was revoked"
                    }
                  },
                  "required": [
                    "id",
                    "revoked_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "revoke a lost key",
                    "value": {
                      "id": 8,
                      "revoked_at": "2026-11-03T14:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_keys": {
      "get": {
        "operationId": "account_keys_get",
        "summary": "Lists the keys of the calling key's account that are not revoked, without their secrets; its sessions are listed by account_sessions.",
        "description": "Lists the keys of the calling key's account that are not revoked, without their secrets; its sessions are listed by account_sessions. Call it to find a key to revoke with account_key_revoke; account_key_add makes another. Access: a key with account:read or account:write. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "keys": {
                      "type": "array",
                      "description": "the account's keys that are not revoked, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it was made"
                          },
                          "id": {
                            "type": "integer",
                            "description": "the key's id, which account_key_revoke takes"
                          },
                          "last_used_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "when it last called, to the hour; null: never"
                          },
                          "name": {
                            "type": "string",
                            "description": "its name"
                          },
                          "prefix": {
                            "type": "string",
                            "description": "what its token starts with"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "prefix",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "keys"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the account's keys",
                    "value": {
                      "keys": [
                        {
                          "id": 7,
                          "name": "default",
                          "prefix": "mk_",
                          "created_at": "2026-11-02T09:30:00Z",
                          "last_used_at": null
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "account_keys",
        "summary": "Lists the keys of the calling key's account that are not revoked, without their secrets; its sessions are listed by account_sessions.",
        "description": "Lists the keys of the calling key's account that are not revoked, without their secrets; its sessions are listed by account_sessions. Call it to find a key to revoke with account_key_revoke; account_key_add makes another. Access: a key with account:read or account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "the account's keys",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "keys": {
                      "type": "array",
                      "description": "the account's keys that are not revoked, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it was made"
                          },
                          "id": {
                            "type": "integer",
                            "description": "the key's id, which account_key_revoke takes"
                          },
                          "last_used_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "when it last called, to the hour; null: never"
                          },
                          "name": {
                            "type": "string",
                            "description": "its name"
                          },
                          "prefix": {
                            "type": "string",
                            "description": "what its token starts with"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "prefix",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "keys"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the account's keys",
                    "value": {
                      "keys": [
                        {
                          "id": 7,
                          "name": "default",
                          "prefix": "mk_",
                          "created_at": "2026-11-02T09:30:00Z",
                          "last_used_at": null
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_passkey_remove": {
      "post": {
        "operationId": "account_passkey_remove",
        "summary": "Removes one of the calling key's account's passkeys: it signs in no more, and its device may still offer it until removed there too.",
        "description": "Removes one of the calling key's account's passkeys: it signs in no more, and its device may still offer it until removed there too. Call it for a passkey lost or no longer wanted; an app's OAuth token is refused. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "the id of the passkey to remove, as account_passkeys lists it",
                    "minimum": 1
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "remove a lost phone's passkey",
                  "value": {
                    "id": 3
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "passkey": {
                      "type": "integer",
                      "description": "the id of the passkey removed"
                    }
                  },
                  "required": [
                    "passkey"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "remove a lost phone's passkey",
                    "value": {
                      "passkey": 3
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_passkeys": {
      "get": {
        "operationId": "account_passkeys_get",
        "summary": "Lists the passkeys of the calling key's account, the ones its person signs in with, without their keys.",
        "description": "Lists the passkeys of the calling key's account, the ones its person signs in with, without their keys. Call it to find a passkey to remove with account_passkey_remove; an app's OAuth token is refused. Access: a key with account:read or account:write. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "passkeys": {
                      "type": "array",
                      "description": "the account's passkeys, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it was added"
                          },
                          "id": {
                            "type": "integer",
                            "description": "the passkey's id, which account_passkey_remove takes"
                          },
                          "last_used_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "when it last signed in; null: never"
                          },
                          "name": {
                            "type": "string",
                            "description": "the name given when it was added; empty: none"
                          },
                          "rp_id": {
                            "type": "string",
                            "description": "the host it signs in to, such as example.com"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "rp_id",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "passkeys"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the account's passkeys",
                    "value": {
                      "passkeys": [
                        {
                          "id": 3,
                          "name": "laptop",
                          "rp_id": "example.com",
                          "created_at": "2026-11-02T09:30:00Z",
                          "last_used_at": null
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "account_passkeys",
        "summary": "Lists the passkeys of the calling key's account, the ones its person signs in with, without their keys.",
        "description": "Lists the passkeys of the calling key's account, the ones its person signs in with, without their keys. Call it to find a passkey to remove with account_passkey_remove; an app's OAuth token is refused. Access: a key with account:read or account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "the account's passkeys",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "passkeys": {
                      "type": "array",
                      "description": "the account's passkeys, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it was added"
                          },
                          "id": {
                            "type": "integer",
                            "description": "the passkey's id, which account_passkey_remove takes"
                          },
                          "last_used_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "when it last signed in; null: never"
                          },
                          "name": {
                            "type": "string",
                            "description": "the name given when it was added; empty: none"
                          },
                          "rp_id": {
                            "type": "string",
                            "description": "the host it signs in to, such as example.com"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "rp_id",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "passkeys"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the account's passkeys",
                    "value": {
                      "passkeys": [
                        {
                          "id": 3,
                          "name": "laptop",
                          "rp_id": "example.com",
                          "created_at": "2026-11-02T09:30:00Z",
                          "last_used_at": null
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_session_revoke": {
      "post": {
        "operationId": "account_session_revoke",
        "summary": "Ends one of the calling key's account's sessions: it is refused from now on, and ending it again changes nothing.",
        "description": "Ends one of the calling key's account's sessions: it is refused from now on, and ending it again changes nothing. Call it to sign out a device that is lost or not at hand; sign_out ends the calling session. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "the id of the session to end, as account_sessions lists it",
                    "minimum": 1
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "end a lost phone's session",
                  "value": {
                    "id": 9
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session": {
                      "type": "integer",
                      "description": "the ended session's id"
                    },
                    "signed_out_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it ended"
                    }
                  },
                  "required": [
                    "session",
                    "signed_out_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "end a lost phone's session",
                    "value": {
                      "session": 9,
                      "signed_out_at": "2026-11-05T18:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_sessions": {
      "get": {
        "operationId": "account_sessions_get",
        "summary": "Lists the sessions of the calling key's account that have neither ended nor expired, without their secrets.",
        "description": "Lists the sessions of the calling key's account that have neither ended nor expired, without their secrets. Call it to find a session to end with account_session_revoke; its keys are listed by account_keys. Access: a key with account:read or account:write. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessions": {
                      "type": "array",
                      "description": "the account's sessions that have neither ended nor expired, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when its sign-in was"
                          },
                          "current": {
                            "type": "boolean",
                            "description": "whether it is the calling session"
                          },
                          "expires_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it ends"
                          },
                          "id": {
                            "type": "integer",
                            "description": "the session's id, which account_session_revoke takes"
                          },
                          "last_used_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "when it last called, to the minute; null: never"
                          }
                        },
                        "required": [
                          "id",
                          "created_at",
                          "expires_at",
                          "current"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "sessions"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the account's sessions",
                    "value": {
                      "sessions": [
                        {
                          "id": 9,
                          "created_at": "2026-11-02T09:30:00Z",
                          "expires_at": "2026-12-02T09:30:00Z",
                          "last_used_at": null,
                          "current": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "account_sessions",
        "summary": "Lists the sessions of the calling key's account that have neither ended nor expired, without their secrets.",
        "description": "Lists the sessions of the calling key's account that have neither ended nor expired, without their secrets. Call it to find a session to end with account_session_revoke; its keys are listed by account_keys. Access: a key with account:read or account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "the account's sessions",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessions": {
                      "type": "array",
                      "description": "the account's sessions that have neither ended nor expired, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when its sign-in was"
                          },
                          "current": {
                            "type": "boolean",
                            "description": "whether it is the calling session"
                          },
                          "expires_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it ends"
                          },
                          "id": {
                            "type": "integer",
                            "description": "the session's id, which account_session_revoke takes"
                          },
                          "last_used_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "when it last called, to the minute; null: never"
                          }
                        },
                        "required": [
                          "id",
                          "created_at",
                          "expires_at",
                          "current"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "sessions"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the account's sessions",
                    "value": {
                      "sessions": [
                        {
                          "id": 9,
                          "created_at": "2026-11-02T09:30:00Z",
                          "expires_at": "2026-12-02T09:30:00Z",
                          "last_used_at": null,
                          "current": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/account_unblock": {
      "post": {
        "operationId": "account_unblock",
        "summary": "Unblocks an account account_block blocked: its keys that are not revoked work again; unblocking it again changes nothing.",
        "description": "Unblocks an account account_block blocked: its keys that are not revoked work again; unblocking it again changes nothing. Call it with an admin key once the reason for the block is gone. Access: a key with accounts:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account": {
                    "type": "integer",
                    "description": "the account's id",
                    "minimum": 1
                  }
                },
                "required": [
                  "account"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "unblock an account",
                  "value": {
                    "account": 42
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "integer",
                      "description": "the account's id"
                    },
                    "blocked": {
                      "type": "boolean",
                      "description": "whether it is blocked now"
                    }
                  },
                  "required": [
                    "account",
                    "blocked"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "unblock an account",
                    "value": {
                      "account": 42,
                      "blocked": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/choose_provider_for_task": {
      "get": {
        "operationId": "choose_provider_for_task_get",
        "summary": "Choose the products we drove for a task in plain words, ranked by how far an agent got on its own.",
        "description": "Choose the products we drove for a task in plain words, ranked by how far an agent got on its own. Each comes with what happened on the task and its sign-up, docs and MCP links. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "access",
            "in": "query",
            "description": "signup_without_human: only products our agent got into without a person",
            "required": false,
            "schema": {
              "type": "string",
              "description": "signup_without_human: only products our agent got into without a person",
              "enum": [
                "signup_without_human"
              ]
            }
          },
          {
            "name": "brief",
            "in": "query",
            "description": "true (default): each product with its next steps; false: every field",
            "required": false,
            "schema": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "true (default): each product with its next steps; false: every field",
              "default": true
            }
          },
          {
            "name": "capability",
            "in": "query",
            "description": "instead of task: a capability name, matched as the task's words",
            "required": false,
            "schema": {
              "type": "string",
              "description": "instead of task: a capability name, matched as the task's words"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "only this category id or name (list_categories)",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only this category id or name (list_categories)"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "how many products, 1 to 25 (default 5)",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "how many products, 1 to 25 (default 5)",
              "default": 5,
              "minimum": 1,
              "maximum": 25
            }
          },
          {
            "name": "min_level",
            "in": "query",
            "description": "only products at this agent level (0-5) or higher",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "description": "only products at this agent level (0-5) or higher",
              "minimum": 0,
              "maximum": 5
            }
          },
          {
            "name": "pays_with",
            "in": "query",
            "description": "only products that take x402, mpp or card; a comma list takes any, e.g. x402,mpp",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only products that take x402, mpp or card; a comma list takes any, e.g. x402,mpp"
            }
          },
          {
            "name": "self_signup",
            "in": "query",
            "description": "true: only products our agent got a key for without a person",
            "required": false,
            "schema": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "true: only products our agent got a key for without a person"
            }
          },
          {
            "name": "surface",
            "in": "query",
            "description": "only products an agent can work by api, mcp, cli or sdk; a comma list wants all, e.g. mcp,cli",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only products an agent can work by api, mcp, cli or sdk; a comma list wants all, e.g. mcp,cli"
            }
          },
          {
            "name": "task",
            "in": "query",
            "description": "the task in plain words, e.g. 'send an invoice'; or send capability",
            "required": false,
            "schema": {
              "type": "string",
              "description": "the task in plain words, e.g. 'send an invoice'; or send capability"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Send an email",
                    "value": {
                      "result": [
                        {
                          "level": 3,
                          "match": "strong",
                          "name": "Example Mail",
                          "slug": "example-mail"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "choose_provider_for_task",
        "summary": "Choose the products we drove for a task in plain words, ranked by how far an agent got on its own.",
        "description": "Choose the products we drove for a task in plain words, ranked by how far an agent got on its own. Each comes with what happened on the task and its sign-up, docs and MCP links. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "access": {
                    "type": "string",
                    "description": "signup_without_human: only products our agent got into without a person",
                    "enum": [
                      "signup_without_human"
                    ]
                  },
                  "brief": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "true (default): each product with its next steps; false: every field",
                    "default": true
                  },
                  "capability": {
                    "type": "string",
                    "description": "instead of task: a capability name, matched as the task's words"
                  },
                  "category": {
                    "type": "string",
                    "description": "only this category id or name (list_categories)"
                  },
                  "limit": {
                    "type": "integer",
                    "description": "how many products, 1 to 25 (default 5)",
                    "default": 5,
                    "minimum": 1,
                    "maximum": 25
                  },
                  "min_level": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "only products at this agent level (0-5) or higher",
                    "minimum": 0,
                    "maximum": 5
                  },
                  "pays_with": {
                    "type": "string",
                    "description": "only products that take x402, mpp or card; a comma list takes any, e.g. x402,mpp"
                  },
                  "self_signup": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "true: only products our agent got a key for without a person"
                  },
                  "surface": {
                    "type": "string",
                    "description": "only products an agent can work by api, mcp, cli or sdk; a comma list wants all, e.g. mcp,cli"
                  },
                  "task": {
                    "type": "string",
                    "description": "the task in plain words, e.g. 'send an invoice'; or send capability"
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Send an email",
                  "value": {
                    "task": "send a transactional email",
                    "limit": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Send an email",
                    "value": {
                      "result": [
                        {
                          "level": 3,
                          "match": "strong",
                          "name": "Example Mail",
                          "slug": "example-mail"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/claim_finish": {
      "post": {
        "operationId": "claim_finish",
        "summary": "Makes an agent's account the person's whose address claim_start mailed, given the mailed code or the code of the link: it revokes the agent's keys and sessions, merges the account into one the address has already, and answers a session and a new key for the agent.",
        "description": "Makes an agent's account the person's whose address claim_start mailed, given the mailed code or the code of the link: it revokes the agent's keys and sessions, merges the account into one the address has already, and answers a session and a new key for the agent. Call it with no key; a wrong, used or expired code answers claim_failed, and after 5 wrong codes a claim mail is dead. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "claim_token": {
                    "type": "string",
                    "description": "the claim token claim_start took, with code",
                    "maxLength": 64
                  },
                  "code": {
                    "type": "string",
                    "description": "the 6-digit code from the mail, with claim_token",
                    "maxLength": 12
                  },
                  "token": {
                    "type": "string",
                    "description": "the code in the mail's link, the code= of its URL, instead of claim_token and code",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "claim with the mailed code",
                  "value": {
                    "claim_token": "claim_Vb3-xQ9...",
                    "code": "481920"
                  }
                },
                "example2": {
                  "summary": "claim with the link into the address's account",
                  "value": {
                    "token": "x7Kp2-VdQ0aYbL5eN3sR9uWm1cFgHjTzA4oIqE6iU8w"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "integer",
                      "description": "the claimed account's id: the agent's, or with merged the person's account it joined"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when the session ends"
                    },
                    "key": {
                      "type": "string",
                      "description": "a new key for the agent, named agent: and its name, shown only now; the agent's old keys and sessions are revoked"
                    },
                    "key_id": {
                      "type": "integer",
                      "description": "the new key's id, which account_key_revoke takes"
                    },
                    "merged": {
                      "type": "boolean",
                      "description": "whether the address had an account already, which the agent's account joined and was deleted into"
                    },
                    "session": {
                      "type": "string",
                      "description": "the person's session, shown only now: send it as X-Api-Key, or as Authorization: Bearer, until expires_at"
                    }
                  },
                  "required": [
                    "account",
                    "merged",
                    "session",
                    "expires_at",
                    "key",
                    "key_id"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "claim with the mailed code",
                    "value": {
                      "account": 43,
                      "merged": false,
                      "session": "mk_Q2x-8rT...",
                      "expires_at": "2026-12-02T09:30:00Z",
                      "key": "mk_Zk4-9qA...",
                      "key_id": 12
                    }
                  },
                  "example2": {
                    "summary": "claim with the link into the address's account",
                    "value": {
                      "account": 42,
                      "merged": true,
                      "session": "mk_Q2x-8rT...",
                      "expires_at": "2026-12-02T09:30:00Z",
                      "key": "mk_Zk4-9qA...",
                      "key_id": 12
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`claim_failed`: ask the agent for a live claim token, give it with your address to claim_start, and the mailed code to claim_finish within 10 minutes; `unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "claim_failed": {
                    "summary": "claim_failed",
                    "value": {
                      "error": "claim_failed",
                      "message": "claim failed",
                      "fix": "ask the agent for a live claim token, give it with your address to claim_start, and the mailed code to claim_finish within 10 minutes",
                      "request": "r_0123456789abcdef"
                    }
                  },
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/claim_link": {
      "post": {
        "operationId": "claim_link",
        "summary": "Gives the calling key's account a new claim token, ending its old one, for an account whose email address is not proven yet; at most 5 a day.",
        "description": "Gives the calling key's account a new claim token, ending its old one, for an account whose email address is not proven yet; at most 5 a day. Call it when the token sign_up gave is lost or expired, and give the new one to the person who is to own the account, for claim_start. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "a new claim token",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "claim_token": {
                      "type": "string",
                      "description": "the account's new claim token, shown only now; the old one no longer works"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it ends"
                    }
                  },
                  "required": [
                    "claim_token",
                    "expires_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "a new claim token",
                    "value": {
                      "claim_token": "claim_Vb3-xQ9...",
                      "expires_at": "2026-12-06T09:30:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`account_claimed`: the account's email address is proven, so it has no claim: its owner signs in to it instead",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "account_claimed": {
                    "summary": "account_claimed",
                    "value": {
                      "error": "account_claimed",
                      "message": "account claimed",
                      "fix": "the account's email address is proven, so it has no claim: its owner signs in to it instead",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/claim_preview": {
      "get": {
        "operationId": "claim_preview_get",
        "summary": "Shows which agent made an account and what comes with it, for the claim token of its claim link, changing nothing.",
        "description": "Shows which agent made an account and what comes with it, for the claim token of its claim link, changing nothing. Call it before claim_start, to see what you take over. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "claim_token",
            "in": "query",
            "description": "the claim token from the claim link, the part after ?claim=",
            "required": true,
            "schema": {
              "type": "string",
              "description": "the claim token from the claim link, the part after ?claim=",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "after": {
                      "type": "string",
                      "description": "what changes once the person claims it"
                    },
                    "agent": {
                      "type": "string",
                      "description": "the agent's name for itself, as it signed up; agent when it gave none"
                    },
                    "claims": {
                      "type": "integer",
                      "description": "how many domains it claimed; none are kept here yet"
                    },
                    "credit_cents": {
                      "type": "integer",
                      "description": "its credit for paid calls, in cents; none is kept here yet"
                    },
                    "domains": {
                      "type": "array",
                      "description": "the domains it claimed; none are kept here yet",
                      "items": {}
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when the claim link ends"
                    },
                    "keys": {
                      "type": "integer",
                      "description": "how many working keys the account has"
                    },
                    "made_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when the agent made the account"
                    },
                    "orders": {
                      "type": "array",
                      "description": "its orders; none are kept here yet",
                      "items": {}
                    },
                    "preview": {
                      "type": "boolean",
                      "description": "true: nothing was changed"
                    }
                  },
                  "required": [
                    "preview",
                    "agent",
                    "made_at",
                    "keys",
                    "orders",
                    "claims",
                    "domains",
                    "credit_cents",
                    "expires_at",
                    "after"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "What an agent's account holds before you claim it",
                    "value": {
                      "preview": true,
                      "agent": "research-bot",
                      "made_at": "2026-11-29T09:30:00Z",
                      "keys": 1,
                      "orders": [],
                      "claims": 0,
                      "domains": [],
                      "credit_cents": 0,
                      "expires_at": "2026-12-06T09:30:00Z",
                      "after": "The agent's key stops working. Your account gets one new key, shown once when you take it over, to give your agent."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`invalid_token`: This claim link isn't valid (a newer one replaced it, or the account was claimed or deleted). Ask the agent for a new one: claim_link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "invalid_token",
                    "value": {
                      "error": "invalid_token",
                      "message": "invalid token",
                      "fix": "This claim link isn't valid (a newer one replaced it, or the account was claimed or deleted). Ask the agent for a new one: claim_link.",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "410": {
            "description": "`expired`: This claim link has expired. Ask the agent for a new one: claim_link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "expired": {
                    "summary": "expired",
                    "value": {
                      "error": "expired",
                      "message": "expired",
                      "fix": "This claim link has expired. Ask the agent for a new one: claim_link.",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "claim_preview",
        "summary": "Shows which agent made an account and what comes with it, for the claim token of its claim link, changing nothing.",
        "description": "Shows which agent made an account and what comes with it, for the claim token of its claim link, changing nothing. Call it before claim_start, to see what you take over. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "claim_token": {
                    "type": "string",
                    "description": "the claim token from the claim link, the part after ?claim=",
                    "maxLength": 64
                  }
                },
                "required": [
                  "claim_token"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "What an agent's account holds before you claim it",
                  "value": {
                    "claim_token": "claim_Xk2…"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "after": {
                      "type": "string",
                      "description": "what changes once the person claims it"
                    },
                    "agent": {
                      "type": "string",
                      "description": "the agent's name for itself, as it signed up; agent when it gave none"
                    },
                    "claims": {
                      "type": "integer",
                      "description": "how many domains it claimed; none are kept here yet"
                    },
                    "credit_cents": {
                      "type": "integer",
                      "description": "its credit for paid calls, in cents; none is kept here yet"
                    },
                    "domains": {
                      "type": "array",
                      "description": "the domains it claimed; none are kept here yet",
                      "items": {}
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when the claim link ends"
                    },
                    "keys": {
                      "type": "integer",
                      "description": "how many working keys the account has"
                    },
                    "made_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when the agent made the account"
                    },
                    "orders": {
                      "type": "array",
                      "description": "its orders; none are kept here yet",
                      "items": {}
                    },
                    "preview": {
                      "type": "boolean",
                      "description": "true: nothing was changed"
                    }
                  },
                  "required": [
                    "preview",
                    "agent",
                    "made_at",
                    "keys",
                    "orders",
                    "claims",
                    "domains",
                    "credit_cents",
                    "expires_at",
                    "after"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "What an agent's account holds before you claim it",
                    "value": {
                      "preview": true,
                      "agent": "research-bot",
                      "made_at": "2026-11-29T09:30:00Z",
                      "keys": 1,
                      "orders": [],
                      "claims": 0,
                      "domains": [],
                      "credit_cents": 0,
                      "expires_at": "2026-12-06T09:30:00Z",
                      "after": "The agent's key stops working. Your account gets one new key, shown once when you take it over, to give your agent."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`invalid_token`: This claim link isn't valid (a newer one replaced it, or the account was claimed or deleted). Ask the agent for a new one: claim_link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "invalid_token",
                    "value": {
                      "error": "invalid_token",
                      "message": "invalid token",
                      "fix": "This claim link isn't valid (a newer one replaced it, or the account was claimed or deleted). Ask the agent for a new one: claim_link.",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "410": {
            "description": "`expired`: This claim link has expired. Ask the agent for a new one: claim_link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "expired": {
                    "summary": "expired",
                    "value": {
                      "error": "expired",
                      "message": "expired",
                      "fix": "This claim link has expired. Ask the agent for a new one: claim_link.",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/claim_start": {
      "post": {
        "operationId": "claim_start",
        "summary": "Mails a 6-digit code and a claim link to a person's email address, both working once, for 10 minutes, for the account of an agent's claim token.",
        "description": "Mails a 6-digit code and a claim link to a person's email address, both working once, for 10 minutes, for the account of an agent's claim token. Call it with no key and the token the agent gave, then give the code, or the code in the link, to claim_finish; a dead token answers claim_failed. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "claim_token": {
                    "type": "string",
                    "description": "the claim token sign_up or claim_link gave the agent",
                    "maxLength": 64
                  },
                  "email": {
                    "type": "string",
                    "description": "the email address of the person who is to own the account",
                    "maxLength": 254
                  }
                },
                "required": [
                  "claim_token",
                  "email"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "mail a claim code",
                  "value": {
                    "claim_token": "claim_Vb3-xQ9...",
                    "email": "ada@example.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sent": {
                      "type": "boolean",
                      "description": "always true, whether or not the address has an account, so that the answer tells no one which addresses have one"
                    }
                  },
                  "required": [
                    "sent"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "mail a claim code",
                    "value": {
                      "sent": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`claim_failed`: ask the agent for a live claim token, give it with your address to claim_start, and the mailed code to claim_finish within 10 minutes; `unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "claim_failed": {
                    "summary": "claim_failed",
                    "value": {
                      "error": "claim_failed",
                      "message": "claim failed",
                      "fix": "ask the agent for a live claim token, give it with your address to claim_start, and the mailed code to claim_finish within 10 minutes",
                      "request": "r_0123456789abcdef"
                    }
                  },
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/compare_providers": {
      "get": {
        "operationId": "compare_providers_get",
        "summary": "Compare 2 or 3 products for one task: driven or only listed, agent level, each step and where our agent stopped.",
        "description": "Compare 2 or 3 products for one task: driven or only listed, agent level, each step and where our agent stopped. A name we don't cover comes back in not_covered with the closest ones. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "task",
            "in": "query",
            "description": "the task in plain words: adds what our agent did on it at each",
            "required": false,
            "schema": {
              "type": "string",
              "description": "the task in plain words: adds what our agent did on it at each"
            }
          },
          {
            "name": "tools",
            "in": "query",
            "description": "2 or 3 products, each a slug, name or domain",
            "required": true,
            "schema": {
              "type": "array",
              "description": "2 or 3 products, each a slug, name or domain",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Two mail products",
                    "value": {
                      "result": {
                        "not_covered": [],
                        "products": [
                          {
                            "slug": "example-mail",
                            "status": "driven"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "compare_providers",
        "summary": "Compare 2 or 3 products for one task: driven or only listed, agent level, each step and where our agent stopped.",
        "description": "Compare 2 or 3 products for one task: driven or only listed, agent level, each step and where our agent stopped. A name we don't cover comes back in not_covered with the closest ones. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "task": {
                    "type": "string",
                    "description": "the task in plain words: adds what our agent did on it at each"
                  },
                  "tools": {
                    "type": "array",
                    "description": "2 or 3 products, each a slug, name or domain",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "tools"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Two mail products",
                  "value": {
                    "tools": [
                      "example-mail",
                      "other-mail"
                    ],
                    "task": "send an email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Two mail products",
                    "value": {
                      "result": {
                        "not_covered": [],
                        "products": [
                          {
                            "slug": "example-mail",
                            "status": "driven"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/credit_balance": {
      "get": {
        "operationId": "credit_balance_get",
        "summary": "Shows the calling account's credit for paid calls: the balance in cents, the calls it pays for, when it ends and its moves.",
        "description": "Shows the calling account's credit for paid calls: the balance in cents, the calls it pays for, when it ends and its moves. A top-up (POST https://agentdrives.com/api/credits/topup) adds to it; each paid search takes a cent. Access: a key with account:read or account:write. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "balance_cents": {
                      "type": "integer",
                      "description": "the credit left, in cents"
                    },
                    "calls_left": {
                      "type": "integer",
                      "description": "how many paid calls it pays for"
                    },
                    "expires_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time",
                      "description": "when it ends, 12 months after the last top-up; null: no credit"
                    },
                    "low": {
                      "type": "boolean",
                      "description": "true: 50 calls or fewer are left"
                    },
                    "moves": {
                      "description": "the balance's moves, newest last: top-ups, calls, releases, expiry"
                    },
                    "paid_cents": {
                      "type": "integer",
                      "description": "what this call took, in cents"
                    },
                    "test_mode": {
                      "type": "boolean",
                      "description": "true: test credit, bought with test money"
                    },
                    "topup": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "how to top up, when the balance is low",
                      "properties": {
                        "amounts_usd": {
                          "type": "array",
                          "description": "the top-ups on offer, in US dollars",
                          "items": {
                            "type": "integer"
                          }
                        },
                        "calls_per_usd": {
                          "type": "integer",
                          "description": "paid calls a dollar of credit buys"
                        },
                        "max_balance_usd": {
                          "type": "integer",
                          "description": "the most credit an account may hold, in US dollars"
                        },
                        "method": {
                          "type": "string",
                          "description": "the HTTP method of the top-up route"
                        },
                        "url": {
                          "type": "string",
                          "description": "the top-up route"
                        },
                        "valid_months": {
                          "type": "integer",
                          "description": "months credit stays valid after its top-up"
                        }
                      },
                      "required": [
                        "url",
                        "method",
                        "amounts_usd",
                        "calls_per_usd",
                        "max_balance_usd",
                        "valid_months"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "moves",
                    "balance_cents",
                    "calls_left"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "An account with 412 calls left",
                    "value": {
                      "balance_cents": 412,
                      "calls_left": 412,
                      "expires_at": "2027-11-29T09:30:00Z",
                      "moves": [
                        {
                          "at": "2026-11-29T09:30:00Z",
                          "kind": "topup",
                          "units": 500,
                          "balance": 500
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "credit_balance",
        "summary": "Shows the calling account's credit for paid calls: the balance in cents, the calls it pays for, when it ends and its moves.",
        "description": "Shows the calling account's credit for paid calls: the balance in cents, the calls it pays for, when it ends and its moves. A top-up (POST https://agentdrives.com/api/credits/topup) adds to it; each paid search takes a cent. Access: a key with account:read or account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "An account with 412 calls left",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "balance_cents": {
                      "type": "integer",
                      "description": "the credit left, in cents"
                    },
                    "calls_left": {
                      "type": "integer",
                      "description": "how many paid calls it pays for"
                    },
                    "expires_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time",
                      "description": "when it ends, 12 months after the last top-up; null: no credit"
                    },
                    "low": {
                      "type": "boolean",
                      "description": "true: 50 calls or fewer are left"
                    },
                    "moves": {
                      "description": "the balance's moves, newest last: top-ups, calls, releases, expiry"
                    },
                    "paid_cents": {
                      "type": "integer",
                      "description": "what this call took, in cents"
                    },
                    "test_mode": {
                      "type": "boolean",
                      "description": "true: test credit, bought with test money"
                    },
                    "topup": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "how to top up, when the balance is low",
                      "properties": {
                        "amounts_usd": {
                          "type": "array",
                          "description": "the top-ups on offer, in US dollars",
                          "items": {
                            "type": "integer"
                          }
                        },
                        "calls_per_usd": {
                          "type": "integer",
                          "description": "paid calls a dollar of credit buys"
                        },
                        "max_balance_usd": {
                          "type": "integer",
                          "description": "the most credit an account may hold, in US dollars"
                        },
                        "method": {
                          "type": "string",
                          "description": "the HTTP method of the top-up route"
                        },
                        "url": {
                          "type": "string",
                          "description": "the top-up route"
                        },
                        "valid_months": {
                          "type": "integer",
                          "description": "months credit stays valid after its top-up"
                        }
                      },
                      "required": [
                        "url",
                        "method",
                        "amounts_usd",
                        "calls_per_usd",
                        "max_balance_usd",
                        "valid_months"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "moves",
                    "balance_cents",
                    "calls_left"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "An account with 412 calls left",
                    "value": {
                      "balance_cents": 412,
                      "calls_left": 412,
                      "expires_at": "2027-11-29T09:30:00Z",
                      "moves": [
                        {
                          "at": "2026-11-29T09:30:00Z",
                          "kind": "topup",
                          "units": 500,
                          "balance": 500
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/device_approve": {
      "post": {
        "operationId": "device_approve",
        "summary": "Approves the device sign-in whose user code is given for the calling key's account: the device's next poll gets a key of the account named for its client, which account_key_revoke ends.",
        "description": "Approves the device sign-in whose user code is given for the calling key's account: the device's next poll gets a key of the account named for its client, which account_key_revoke ends. Call it with the session of the person signed in on the device page once they confirm the client it names; a wrong, expired or used code answers user_code_unknown. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_code": {
                    "type": "string",
                    "description": "the code the device shows, such as WDJB-MJHT: any case, with or without its dash",
                    "maxLength": 20
                  }
                },
                "required": [
                  "user_code"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "the code the CLI shows",
                  "value": {
                    "user_code": "WDJB-MJHT"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "approved": {
                      "type": "boolean",
                      "description": "true: its next poll gets a key of the account; false: it is refused"
                    },
                    "asked_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it asked"
                    },
                    "client_id": {
                      "type": "string",
                      "description": "the client that asked for the code, one of the product's, such as its CLI"
                    }
                  },
                  "required": [
                    "client_id",
                    "asked_at",
                    "approved"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the code the CLI shows",
                    "value": {
                      "client_id": "cli",
                      "asked_at": "2026-11-05T18:00:00Z",
                      "approved": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`user_code_unknown`: give the code the device shows within 10 minutes of its asking; a code is approved or denied once, and starting the device's sign-in again gives a new one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "user_code_unknown": {
                    "summary": "user_code_unknown",
                    "value": {
                      "error": "user_code_unknown",
                      "message": "user code unknown",
                      "fix": "give the code the device shows within 10 minutes of its asking; a code is approved or denied once, and starting the device's sign-in again gives a new one",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/device_deny": {
      "post": {
        "operationId": "device_deny",
        "summary": "Refuses the device sign-in whose user code is given: the device's next poll is refused, and it gets no key.",
        "description": "Refuses the device sign-in whose user code is given: the device's next poll is refused, and it gets no key. Call it with the session or a key of the account when the person did not start that sign-in; a wrong, expired or used code answers user_code_unknown. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_code": {
                    "type": "string",
                    "description": "the code the device shows, such as WDJB-MJHT: any case, with or without its dash",
                    "maxLength": 20
                  }
                },
                "required": [
                  "user_code"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "the code the CLI shows",
                  "value": {
                    "user_code": "WDJB-MJHT"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "approved": {
                      "type": "boolean",
                      "description": "true: its next poll gets a key of the account; false: it is refused"
                    },
                    "asked_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it asked"
                    },
                    "client_id": {
                      "type": "string",
                      "description": "the client that asked for the code, one of the product's, such as its CLI"
                    }
                  },
                  "required": [
                    "client_id",
                    "asked_at",
                    "approved"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the code the CLI shows",
                    "value": {
                      "client_id": "cli",
                      "asked_at": "2026-11-05T18:00:00Z",
                      "approved": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`user_code_unknown`: give the code the device shows within 10 minutes of its asking; a code is approved or denied once, and starting the device's sign-in again gives a new one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "user_code_unknown": {
                    "summary": "user_code_unknown",
                    "value": {
                      "error": "user_code_unknown",
                      "message": "user code unknown",
                      "fix": "give the code the device shows within 10 minutes of its asking; a code is approved or denied once, and starting the device's sign-in again gives a new one",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/drive_get": {
      "get": {
        "operationId": "drive_get_get",
        "summary": "Answers a drive we sent by its ref or id: its state as drives_poll last read it, its result whole once it ended, a summary, and the level our rule makes of it where the result holds the rule's inputs.",
        "description": "Answers a drive we sent by its ref or id: its state as drives_poll last read it, its result whole once it ended, a summary, and the level our rule makes of it where the result holds the rule's inputs. Use drive_send to send one; this op asks engine-drive nothing. Access: a key with drives:read or drives:write. Price: free.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "engine-drive's id of the drive, drv_…",
            "required": false,
            "schema": {
              "type": "string",
              "description": "engine-drive's id of the drive, drv_…",
              "maxLength": 100
            }
          },
          {
            "name": "ref",
            "in": "query",
            "description": "the drive's ref, as drive_send was given it",
            "required": false,
            "schema": {
              "type": "string",
              "description": "the drive's ref, as drive_send was given it",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "checked_at": {
                      "type": "string",
                      "description": "when drives_poll last asked engine-drive about it, in UTC (RFC 3339)"
                    },
                    "ended_at": {
                      "type": "string",
                      "description": "when it ended, in UTC (RFC 3339); left out while it runs"
                    },
                    "handoff": {
                      "description": "in state handoff: what the drive waits on, where and since when ({what, where, since})"
                    },
                    "id": {
                      "type": "string",
                      "description": "engine-drive's id of the drive, drv_…"
                    },
                    "kind": {
                      "type": "string",
                      "description": "light or full"
                    },
                    "level": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "the level our level rule gives the drive, L0 to L5, where the result holds every input the rule takes; null otherwise, and the note says why"
                    },
                    "level_note": {
                      "type": "string",
                      "description": "why level is what it is: which of the rule's inputs the result gives and which it lacks"
                    },
                    "ref": {
                      "type": "string",
                      "description": "our name for the drive, unique"
                    },
                    "result": {
                      "description": "engine-drive's drive_result document (format drive-result/v1) whole, as it gave it once the drive ended; null before"
                    },
                    "sent_at": {
                      "type": "string",
                      "description": "when it was sent, in UTC (RFC 3339)"
                    },
                    "slug": {
                      "type": "string",
                      "description": "our slug for the product, when it was given"
                    },
                    "state": {
                      "type": "string",
                      "description": "engine-drive's state as last read: queued, running, handoff (waiting on a person), done, failed or cancelled; lost when engine-drive no longer knows the id"
                    },
                    "step": {
                      "type": "string",
                      "description": "engine-drive's step as last read, while it runs"
                    },
                    "summary": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "what the result says in short, read from it; null before the result",
                      "properties": {
                        "failure_side": {
                          "type": "string",
                          "description": "on a failed drive: ours (the drive's own fault) or product (the product stopped it)"
                        },
                        "judgement": {
                          "type": "string",
                          "description": "the judgement's summary, when the result has one"
                        },
                        "tasks": {
                          "type": "array",
                          "description": "each task the drive tried and how it went",
                          "items": {
                            "type": "object",
                            "properties": {
                              "result": {
                                "type": "string",
                                "description": "done, stopped or unknown"
                              },
                              "task": {
                                "type": "string",
                                "description": "the task, in engine-drive's words"
                              },
                              "why": {
                                "type": "string",
                                "description": "why it stopped or is unknown"
                              }
                            },
                            "required": [
                              "task",
                              "result"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "walls": {
                          "type": "array",
                          "description": "the walls the judgement found, by rank",
                          "items": {
                            "type": "object",
                            "properties": {
                              "effect": {
                                "type": "string",
                                "description": "blocks, slows or misleads"
                              },
                              "rank": {
                                "type": "integer",
                                "description": "its rank, 1 the worst"
                              },
                              "what": {
                                "type": "string",
                                "description": "what stopped or slowed the agent"
                              }
                            },
                            "required": [
                              "rank",
                              "what"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "why": {
                          "type": "string",
                          "description": "why the drive ended as it did, in engine-drive's words"
                        }
                      },
                      "required": [
                        "tasks"
                      ],
                      "additionalProperties": false
                    },
                    "test": {
                      "type": "boolean",
                      "description": "true: a test drive, not evidence"
                    },
                    "url": {
                      "type": "string",
                      "description": "the product's site the drive drives"
                    }
                  },
                  "required": [
                    "result",
                    "level_note",
                    "id",
                    "ref",
                    "url",
                    "kind",
                    "test",
                    "state",
                    "sent_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "A light drive that ended",
                    "value": {
                      "id": "drv_8f2k1q",
                      "ref": "acme-test-2026-11-30",
                      "slug": "acme",
                      "url": "https://acme.example",
                      "kind": "light",
                      "test": true,
                      "state": "done",
                      "sent_at": "2026-11-30T09:00:00Z",
                      "ended_at": "2026-11-30T09:14:00Z",
                      "checked_at": "2026-11-30T09:15:00Z",
                      "result": {
                        "id": "drv_8f2k1q",
                        "state": "done",
                        "format": "drive-result/v1",
                        "tasks": [
                          {
                            "task": "sign up",
                            "result": "done",
                            "evidence": [
                              3
                            ]
                          }
                        ],
                        "judgement": null
                      },
                      "summary": {
                        "tasks": [
                          {
                            "task": "sign up",
                            "result": "done"
                          }
                        ]
                      },
                      "level": null,
                      "level_note": "no level: the rule takes surface, alone, core coverage, leaves and pays, and a light drive's result gives none of them as such: its tasks are free-worded, so getting in alone is not a field; core coverage needs the product's core capabilities scored, which a result does not hold; and a light drive neither leaves nor pays"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: check the id or name; an op that lists them finds the right one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "not found",
                      "fix": "check the id or name; an op that lists them finds the right one",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "drive_get",
        "summary": "Answers a drive we sent by its ref or id: its state as drives_poll last read it, its result whole once it ended, a summary, and the level our rule makes of it where the result holds the rule's inputs.",
        "description": "Answers a drive we sent by its ref or id: its state as drives_poll last read it, its result whole once it ended, a summary, and the level our rule makes of it where the result holds the rule's inputs. Use drive_send to send one; this op asks engine-drive nothing. Access: a key with drives:read or drives:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "engine-drive's id of the drive, drv_…",
                    "maxLength": 100
                  },
                  "ref": {
                    "type": "string",
                    "description": "the drive's ref, as drive_send was given it",
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "A light drive that ended",
                  "value": {
                    "ref": "acme-test-2026-11-30"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "checked_at": {
                      "type": "string",
                      "description": "when drives_poll last asked engine-drive about it, in UTC (RFC 3339)"
                    },
                    "ended_at": {
                      "type": "string",
                      "description": "when it ended, in UTC (RFC 3339); left out while it runs"
                    },
                    "handoff": {
                      "description": "in state handoff: what the drive waits on, where and since when ({what, where, since})"
                    },
                    "id": {
                      "type": "string",
                      "description": "engine-drive's id of the drive, drv_…"
                    },
                    "kind": {
                      "type": "string",
                      "description": "light or full"
                    },
                    "level": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "the level our level rule gives the drive, L0 to L5, where the result holds every input the rule takes; null otherwise, and the note says why"
                    },
                    "level_note": {
                      "type": "string",
                      "description": "why level is what it is: which of the rule's inputs the result gives and which it lacks"
                    },
                    "ref": {
                      "type": "string",
                      "description": "our name for the drive, unique"
                    },
                    "result": {
                      "description": "engine-drive's drive_result document (format drive-result/v1) whole, as it gave it once the drive ended; null before"
                    },
                    "sent_at": {
                      "type": "string",
                      "description": "when it was sent, in UTC (RFC 3339)"
                    },
                    "slug": {
                      "type": "string",
                      "description": "our slug for the product, when it was given"
                    },
                    "state": {
                      "type": "string",
                      "description": "engine-drive's state as last read: queued, running, handoff (waiting on a person), done, failed or cancelled; lost when engine-drive no longer knows the id"
                    },
                    "step": {
                      "type": "string",
                      "description": "engine-drive's step as last read, while it runs"
                    },
                    "summary": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "what the result says in short, read from it; null before the result",
                      "properties": {
                        "failure_side": {
                          "type": "string",
                          "description": "on a failed drive: ours (the drive's own fault) or product (the product stopped it)"
                        },
                        "judgement": {
                          "type": "string",
                          "description": "the judgement's summary, when the result has one"
                        },
                        "tasks": {
                          "type": "array",
                          "description": "each task the drive tried and how it went",
                          "items": {
                            "type": "object",
                            "properties": {
                              "result": {
                                "type": "string",
                                "description": "done, stopped or unknown"
                              },
                              "task": {
                                "type": "string",
                                "description": "the task, in engine-drive's words"
                              },
                              "why": {
                                "type": "string",
                                "description": "why it stopped or is unknown"
                              }
                            },
                            "required": [
                              "task",
                              "result"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "walls": {
                          "type": "array",
                          "description": "the walls the judgement found, by rank",
                          "items": {
                            "type": "object",
                            "properties": {
                              "effect": {
                                "type": "string",
                                "description": "blocks, slows or misleads"
                              },
                              "rank": {
                                "type": "integer",
                                "description": "its rank, 1 the worst"
                              },
                              "what": {
                                "type": "string",
                                "description": "what stopped or slowed the agent"
                              }
                            },
                            "required": [
                              "rank",
                              "what"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "why": {
                          "type": "string",
                          "description": "why the drive ended as it did, in engine-drive's words"
                        }
                      },
                      "required": [
                        "tasks"
                      ],
                      "additionalProperties": false
                    },
                    "test": {
                      "type": "boolean",
                      "description": "true: a test drive, not evidence"
                    },
                    "url": {
                      "type": "string",
                      "description": "the product's site the drive drives"
                    }
                  },
                  "required": [
                    "result",
                    "level_note",
                    "id",
                    "ref",
                    "url",
                    "kind",
                    "test",
                    "state",
                    "sent_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "A light drive that ended",
                    "value": {
                      "id": "drv_8f2k1q",
                      "ref": "acme-test-2026-11-30",
                      "slug": "acme",
                      "url": "https://acme.example",
                      "kind": "light",
                      "test": true,
                      "state": "done",
                      "sent_at": "2026-11-30T09:00:00Z",
                      "ended_at": "2026-11-30T09:14:00Z",
                      "checked_at": "2026-11-30T09:15:00Z",
                      "result": {
                        "id": "drv_8f2k1q",
                        "state": "done",
                        "format": "drive-result/v1",
                        "tasks": [
                          {
                            "task": "sign up",
                            "result": "done",
                            "evidence": [
                              3
                            ]
                          }
                        ],
                        "judgement": null
                      },
                      "summary": {
                        "tasks": [
                          {
                            "task": "sign up",
                            "result": "done"
                          }
                        ]
                      },
                      "level": null,
                      "level_note": "no level: the rule takes surface, alone, core coverage, leaves and pays, and a light drive's result gives none of them as such: its tasks are free-worded, so getting in alone is not a field; core coverage needs the product's core capabilities scored, which a result does not hold; and a light drive neither leaves nor pays"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: check the id or name; an op that lists them finds the right one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "not found",
                      "fix": "check the id or name; an op that lists them finds the right one",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/drive_send": {
      "post": {
        "operationId": "drive_send",
        "summary": "Sends a drive of a product's site to engine-drive, once per ref, and keeps it: drives_poll follows it and keeps its result when it ends.",
        "description": "Sends a drive of a product's site to engine-drive, once per ref, and keeps it: drives_poll follows it and keeps its result when it ends. Read it with drive_get; sending the same ref again answers the drive sent, and engine-drive not ready or full is busy with nothing sent. Access: a key with drives:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "description": "light (the default): getting in and a first use; full: every task, paying and leaving too",
                    "enum": [
                      "light",
                      "full"
                    ]
                  },
                  "ref": {
                    "type": "string",
                    "description": "our name for this drive, as acme-2026-11-30: one drive per ref, and sending a ref again answers the drive it sent",
                    "maxLength": 200
                  },
                  "slug": {
                    "type": "string",
                    "description": "our slug for the product, as acme: lower-case letters, digits and -; left out, none",
                    "maxLength": 64
                  },
                  "test": {
                    "type": "boolean",
                    "description": "true: engine-drive marks the drive a test; its result is not evidence"
                  },
                  "url": {
                    "type": "string",
                    "description": "the product's site to drive, http or https, as https://acme.example",
                    "maxLength": 2048
                  }
                },
                "required": [
                  "url",
                  "ref"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "A light test drive of Acme",
                  "value": {
                    "url": "https://acme.example",
                    "slug": "acme",
                    "ref": "acme-test-2026-11-30",
                    "test": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "checked_at": {
                      "type": "string",
                      "description": "when drives_poll last asked engine-drive about it, in UTC (RFC 3339)"
                    },
                    "ended_at": {
                      "type": "string",
                      "description": "when it ended, in UTC (RFC 3339); left out while it runs"
                    },
                    "handoff": {
                      "description": "in state handoff: what the drive waits on, where and since when ({what, where, since})"
                    },
                    "id": {
                      "type": "string",
                      "description": "engine-drive's id of the drive, drv_…"
                    },
                    "kind": {
                      "type": "string",
                      "description": "light or full"
                    },
                    "limits": {
                      "description": "the limits engine-drive gave the drive ({minutes, model_usd, pay_cap_usd, rails}); left out on a repeat"
                    },
                    "ref": {
                      "type": "string",
                      "description": "our name for the drive, unique"
                    },
                    "repeat": {
                      "type": "boolean",
                      "description": "true: the ref was sent before, and this is that drive; nothing new was sent"
                    },
                    "sent_at": {
                      "type": "string",
                      "description": "when it was sent, in UTC (RFC 3339)"
                    },
                    "slug": {
                      "type": "string",
                      "description": "our slug for the product, when it was given"
                    },
                    "state": {
                      "type": "string",
                      "description": "engine-drive's state as last read: queued, running, handoff (waiting on a person), done, failed or cancelled; lost when engine-drive no longer knows the id"
                    },
                    "step": {
                      "type": "string",
                      "description": "engine-drive's step as last read, while it runs"
                    },
                    "test": {
                      "type": "boolean",
                      "description": "true: a test drive, not evidence"
                    },
                    "url": {
                      "type": "string",
                      "description": "the product's site the drive drives"
                    }
                  },
                  "required": [
                    "repeat",
                    "id",
                    "ref",
                    "url",
                    "kind",
                    "test",
                    "state",
                    "sent_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "A light test drive of Acme",
                    "value": {
                      "id": "drv_8f2k1q",
                      "ref": "acme-test-2026-11-30",
                      "slug": "acme",
                      "url": "https://acme.example",
                      "kind": "light",
                      "test": true,
                      "state": "queued",
                      "sent_at": "2026-11-30T09:00:00Z",
                      "repeat": false,
                      "limits": {
                        "minutes": 20,
                        "model_usd": 2,
                        "pay_cap_usd": 0,
                        "rails": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`conflict`: read the current state again, then call again on it",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "conflict",
                    "value": {
                      "error": "conflict",
                      "message": "conflict",
                      "fix": "read the current state again, then call again on it",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "`engine_drive_failed`: read the message; its request id finds the call in engine-drive's logs; send again once that is fixed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "engine_drive_failed": {
                    "summary": "engine_drive_failed",
                    "value": {
                      "error": "engine_drive_failed",
                      "message": "engine drive failed",
                      "fix": "read the message; its request id finds the call in engine-drive's logs; send again once that is fixed",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again; `not_configured`: set DOOR_ENGINE_DRIVE_URL and DOOR_ENGINE_DRIVE_KEY in the service's env and restart it, then send again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  },
                  "not_configured": {
                    "summary": "not_configured",
                    "value": {
                      "error": "not_configured",
                      "message": "not configured",
                      "fix": "set DOOR_ENGINE_DRIVE_URL and DOOR_ENGINE_DRIVE_KEY in the service's env and restart it, then send again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/file": {
      "get": {
        "operationId": "file_get",
        "summary": "Gives a file the design kit does not build at a data version: a listed path such as /data/\u003cfile\u003e or /.well-known/\u003cfile\u003e, or a logo's or chart's src as the JSON names it.",
        "description": "Gives a file the design kit does not build at a data version: a listed path such as /data/\u003cfile\u003e or /.well-known/\u003cfile\u003e, or a logo's or chart's src as the JSON names it. Text comes as is and bytes in base64; use page for a page the kit builds. Access: a key with publisher:read or publisher:write. Price: free.",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "description": "A listed path the kit does not build, such as /data/\u003cfile\u003e or /.well-known/\u003cfile\u003e, or a logo's or chart's src as the site's or a page's JSON names it.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "A listed path the kit does not build, such as /data/\u003cfile\u003e or /.well-known/\u003cfile\u003e, or a logo's or chart's src as the site's or a page's JSON names it."
            }
          },
          {
            "name": "site",
            "in": "query",
            "description": "The site's id.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The site's id."
            }
          },
          {
            "name": "v",
            "in": "query",
            "description": "The data version urls gave; another one is answered stale.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The data version urls gave; another one is answered stale."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "base64": {
                      "type": "boolean",
                      "description": "Whether body is base64, as for an image."
                    },
                    "body": {
                      "type": "string",
                      "description": "The file's body: text, or base64 when base64 is true."
                    },
                    "content_type": {
                      "type": "string",
                      "description": "The file's Content-Type, such as text/csv or image/png."
                    },
                    "data_version": {
                      "type": "string",
                      "description": "The data version the file is at; checked when given."
                    },
                    "headers": {
                      "type": "object",
                      "description": "Headers the file is served with; Link, Cache-Control, X-Robots-Tag and Location are kept.",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "path": {
                      "type": "string",
                      "description": "The path asked for; checked when given."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The file's HTTP status; 200 when left out."
                    }
                  },
                  "required": [
                    "content_type",
                    "body"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Get a data file",
                    "value": {
                      "content_type": "text/csv",
                      "body": "vendor,fee\nacme,2.9\n"
                    }
                  },
                  "example2": {
                    "summary": "Get a logo",
                    "value": {
                      "content_type": "image/png",
                      "body": "iVBORw0KGgo=",
                      "base64": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "file",
        "summary": "Gives a file the design kit does not build at a data version: a listed path such as /data/\u003cfile\u003e or /.well-known/\u003cfile\u003e, or a logo's or chart's src as the JSON names it.",
        "description": "Gives a file the design kit does not build at a data version: a listed path such as /data/\u003cfile\u003e or /.well-known/\u003cfile\u003e, or a logo's or chart's src as the JSON names it. Text comes as is and bytes in base64; use page for a page the kit builds. Access: a key with publisher:read or publisher:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "string",
                    "description": "A listed path the kit does not build, such as /data/\u003cfile\u003e or /.well-known/\u003cfile\u003e, or a logo's or chart's src as the site's or a page's JSON names it."
                  },
                  "site": {
                    "type": "string",
                    "description": "The site's id."
                  },
                  "v": {
                    "type": "string",
                    "description": "The data version urls gave; another one is answered stale."
                  }
                },
                "required": [
                  "site",
                  "path",
                  "v"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Get a data file",
                  "value": {
                    "site": "guides",
                    "path": "/data/fees.csv",
                    "v": "1187"
                  }
                },
                "example2": {
                  "summary": "Get a logo",
                  "value": {
                    "site": "guides",
                    "path": "logos/acme.png",
                    "v": "1187"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "base64": {
                      "type": "boolean",
                      "description": "Whether body is base64, as for an image."
                    },
                    "body": {
                      "type": "string",
                      "description": "The file's body: text, or base64 when base64 is true."
                    },
                    "content_type": {
                      "type": "string",
                      "description": "The file's Content-Type, such as text/csv or image/png."
                    },
                    "data_version": {
                      "type": "string",
                      "description": "The data version the file is at; checked when given."
                    },
                    "headers": {
                      "type": "object",
                      "description": "Headers the file is served with; Link, Cache-Control, X-Robots-Tag and Location are kept.",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "path": {
                      "type": "string",
                      "description": "The path asked for; checked when given."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The file's HTTP status; 200 when left out."
                    }
                  },
                  "required": [
                    "content_type",
                    "body"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Get a data file",
                    "value": {
                      "content_type": "text/csv",
                      "body": "vendor,fee\nacme,2.9\n"
                    }
                  },
                  "example2": {
                    "summary": "Get a logo",
                    "value": {
                      "content_type": "image/png",
                      "body": "iVBORw0KGgo=",
                      "base64": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/get_agent_surfaces": {
      "get": {
        "operationId": "get_agent_surfaces_get",
        "summary": "Get what an agent can use at one product: its API, MCP server, CLI, SDK, docs and payment.",
        "description": "Get what an agent can use at one product: its API, MCP server, CLI, SDK, docs and payment. Each is tested, documented, none_found or unknown, with the product's own URL and the date we saw it. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "description": "the product's directory slug from search_tools (e.g. 'attio'), or its name or domain",
            "required": true,
            "schema": {
              "type": "string",
              "description": "the product's directory slug from search_tools (e.g. 'attio'), or its name or domain"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "One product's surfaces",
                    "value": {
                      "result": {
                        "level": 3,
                        "slug": "example-mail",
                        "surfaces": {
                          "mcp": {
                            "state": "tested"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "get_agent_surfaces",
        "summary": "Get what an agent can use at one product: its API, MCP server, CLI, SDK, docs and payment.",
        "description": "Get what an agent can use at one product: its API, MCP server, CLI, SDK, docs and payment. Each is tested, documented, none_found or unknown, with the product's own URL and the date we saw it. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "product": {
                    "type": "string",
                    "description": "the product's directory slug from search_tools (e.g. 'attio'), or its name or domain"
                  }
                },
                "required": [
                  "product"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "One product's surfaces",
                  "value": {
                    "product": "example-mail"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "One product's surfaces",
                    "value": {
                      "result": {
                        "level": 3,
                        "slug": "example-mail",
                        "surfaces": {
                          "mcp": {
                            "state": "tested"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/get_category": {
      "get": {
        "operationId": "get_category_get",
        "summary": "Get one category: its name, how many products we drove in it, the best agent level and its top 10 by level.",
        "description": "Get one category: its name, how many products we drove in it, the best agent level and its top 10 by level. The rest come from search_tools with the same category. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "description": "a category id or name from list_categories, e.g. 'crm'",
            "required": true,
            "schema": {
              "type": "string",
              "description": "a category id or name from list_categories, e.g. 'crm'"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "One category",
                    "value": {
                      "result": {
                        "best_level": 4,
                        "category": "email-infrastructure",
                        "tools": 12,
                        "top": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "get_category",
        "summary": "Get one category: its name, how many products we drove in it, the best agent level and its top 10 by level.",
        "description": "Get one category: its name, how many products we drove in it, the best agent level and its top 10 by level. The rest come from search_tools with the same category. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "category": {
                    "type": "string",
                    "description": "a category id or name from list_categories, e.g. 'crm'"
                  }
                },
                "required": [
                  "category"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "One category",
                  "value": {
                    "category": "email-infrastructure"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "One category",
                    "value": {
                      "result": {
                        "best_level": 4,
                        "category": "email-infrastructure",
                        "tools": 12,
                        "top": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/get_provider": {
      "get": {
        "operationId": "get_provider_get",
        "summary": "Get one product's drive result: its agent level, where our agent stopped, what it can and can't do, how it gets in and pays.",
        "description": "Get one product's drive result: its agent level, where our agent stopped, what it can and can't do, how it gets in and pays. The full record unless brief is true. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "brief",
            "in": "query",
            "description": "true: only the headline instead of the full record",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "true: only the headline instead of the full record"
            }
          },
          {
            "name": "slug",
            "in": "query",
            "description": "the product's directory slug from search_tools (e.g. 'attio'), or its name or domain",
            "required": true,
            "schema": {
              "type": "string",
              "description": "the product's directory slug from search_tools (e.g. 'attio'), or its name or domain"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "One product's headline",
                    "value": {
                      "result": {
                        "level": 3,
                        "name": "Example Mail",
                        "page": "https://agentdrives.com/tools/example-mail?via=mcp",
                        "slug": "example-mail"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "get_provider",
        "summary": "Get one product's drive result: its agent level, where our agent stopped, what it can and can't do, how it gets in and pays.",
        "description": "Get one product's drive result: its agent level, where our agent stopped, what it can and can't do, how it gets in and pays. The full record unless brief is true. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "brief": {
                    "type": "boolean",
                    "description": "true: only the headline instead of the full record"
                  },
                  "slug": {
                    "type": "string",
                    "description": "the product's directory slug from search_tools (e.g. 'attio'), or its name or domain"
                  }
                },
                "required": [
                  "slug"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "One product's headline",
                  "value": {
                    "slug": "example-mail",
                    "brief": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "One product's headline",
                    "value": {
                      "result": {
                        "level": 3,
                        "name": "Example Mail",
                        "page": "https://agentdrives.com/tools/example-mail?via=mcp",
                        "slug": "example-mail"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/inbox_new": {
      "post": {
        "operationId": "inbox_new",
        "summary": "Hands a drive a new test address of its own, drive+\u003ctag\u003e@agentdrives.com, whose mail engine-mail takes.",
        "description": "Hands a drive a new test address of its own, drive+\u003ctag\u003e@agentdrives.com, whose mail engine-mail takes. Use it when the drive signs up or needs another address; read its mail with inbox_read, which reads only the addresses handed to that drive. Access: a key with drive:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "drive_id": {
                    "type": "string",
                    "description": "the drive's id, the same on every call of one drive: letters, digits, _ and -",
                    "maxLength": 64
                  },
                  "slug": {
                    "type": "string",
                    "description": "the product's slug, lower-case letters, digits and -: one slug per drive",
                    "maxLength": 64
                  }
                },
                "required": [
                  "drive_id",
                  "slug"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "A drive's test address to sign up with",
                  "value": {
                    "drive_id": "d_7f3a9c",
                    "slug": "acme-mail"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "string",
                      "description": "a test address never handed out before, drive+\u003ctag\u003e@agentdrives.com: sign up with it, then read its mail with inbox_read"
                    }
                  },
                  "required": [
                    "address"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "A drive's test address to sign up with",
                    "value": {
                      "address": "drive+acmemail4k2m9x1q@agentdrives.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`conflict`: read the current state again, then call again on it",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "conflict": {
                    "summary": "conflict",
                    "value": {
                      "error": "conflict",
                      "message": "conflict",
                      "fix": "read the current state again, then call again on it",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/inbox_read": {
      "post": {
        "operationId": "inbox_read",
        "summary": "Reads the mail that came to a test address inbox_new handed this drive, oldest first, waiting up to wait_s seconds (at most 120) for one.",
        "description": "Reads the mail that came to a test address inbox_new handed this drive, oldest first, waiting up to wait_s seconds (at most 120) for one. Use it after a sign-up or any step that mails the address; it answers a timeout with a note when no mail came, and refuses an address handed to another drive. Access: a key with drive:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "an address inbox_new handed this drive",
                    "maxLength": 320
                  },
                  "drive_id": {
                    "type": "string",
                    "description": "the drive's id, as inbox_new was given it",
                    "maxLength": 64
                  },
                  "match": {
                    "type": "string",
                    "description": "a regular expression, case ignored, the mail's from, subject or text must match; one that does not compile is matched as plain text",
                    "maxLength": 500
                  },
                  "since": {
                    "type": "string",
                    "description": "an ISO time (2026-11-27T10:00:00Z): only mail that arrived from then on; left out, all the address's mail",
                    "maxLength": 64
                  },
                  "wait_s": {
                    "type": "number",
                    "description": "seconds to wait for a mail when none is there yet, at most 120; left out: answer at once",
                    "minimum": 0,
                    "maximum": 120
                  }
                },
                "required": [
                  "drive_id",
                  "address"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "A sign-up's confirmation mail",
                  "value": {
                    "drive_id": "d_7f3a9c",
                    "address": "drive+acmemail4k2m9x1q@agentdrives.com",
                    "match": "confirm",
                    "wait_s": 60
                  }
                },
                "example2": {
                  "summary": "No mail within the wait",
                  "value": {
                    "drive_id": "d_7f3a9c",
                    "address": "drive+acmemail4k2m9x1q@agentdrives.com",
                    "wait_s": 30
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "messages": {
                      "type": "array",
                      "description": "the address's mail that fits since and match, oldest first",
                      "items": {
                        "type": "object",
                        "properties": {
                          "attachments": {
                            "type": "array",
                            "description": "its attachments, by name and size; their content is not given",
                            "items": {
                              "type": "object",
                              "properties": {
                                "content_type": {
                                  "type": "string",
                                  "description": "its media type"
                                },
                                "name": {
                                  "type": "string",
                                  "description": "its file name"
                                },
                                "size": {
                                  "type": "integer",
                                  "description": "its size in bytes"
                                }
                              },
                              "required": [
                                "name",
                                "size"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "date": {
                            "type": "string",
                            "description": "when it arrived, as a mail's Date header (Fri, 27 Nov 2026 10:15:00 +0000)"
                          },
                          "from": {
                            "type": "string",
                            "description": "the sender, as Name \u003caddress\u003e"
                          },
                          "links": {
                            "type": "array",
                            "description": "the links in it, each once, in order; at most 40",
                            "items": {
                              "type": "string"
                            }
                          },
                          "received_at": {
                            "type": "string",
                            "description": "when it arrived, in UTC (2026-11-27T10:15:00Z)"
                          },
                          "subject": {
                            "type": "string",
                            "description": "the subject, on one line"
                          },
                          "text": {
                            "type": "string",
                            "description": "its plain text, or its HTML's text when it has none; at most 4000 characters"
                          }
                        },
                        "required": [
                          "from",
                          "subject",
                          "date",
                          "received_at",
                          "text",
                          "links"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "note": {
                      "type": "string",
                      "description": "with a timeout: how long the address has waited, whether our other test addresses got mail meanwhile, and what to do next"
                    },
                    "timeout": {
                      "type": "boolean",
                      "description": "true: no such mail came within wait_s"
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "A sign-up's confirmation mail",
                    "value": {
                      "messages": [
                        {
                          "from": "Acme \u003chello@acme.example\u003e",
                          "subject": "Confirm your email",
                          "date": "Fri, 27 Nov 2026 10:15:00 +0000",
                          "received_at": "2026-11-27T10:15:00Z",
                          "text": "Confirm your address: https://acme.example/confirm?t=abc",
                          "links": [
                            "https://acme.example/confirm?t=abc"
                          ]
                        }
                      ]
                    }
                  },
                  "example2": {
                    "summary": "No mail within the wait",
                    "value": {
                      "timeout": true,
                      "note": "no mail for drive+acmemail4k2m9x1q@agentdrives.com (3 min since it was handed out). Our inbox works: mail reached our other agentdrives.com addresses in the day before and since (the last at 27 Nov 10:02 UTC), so nothing has come from the product to this address yet."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/jobs_summary": {
      "get": {
        "operationId": "jobs_summary_get",
        "summary": "Every job of this department with its schedule, its last run (when it ended, ok or failed, how long it took, the error's first line), its next run, how many of it are queued or running now and its state: ok, failing (its last run failed), late (no success in twice its period) or never run.",
        "description": "Every job of this department with its schedule, its last run (when it ended, ok or failed, how long it took, the error's first line), its next run, how many of it are queued or running now and its state: ok, failing (its last run failed), late (no success in twice its period) or never run. Use it to see whether the background work keeps up. Access: a key with usage:read, usage:write or dashboard:read. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "description": "the items, in the order they are drawn",
                      "items": {
                        "type": "object",
                        "properties": {
                          "at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it happened or is due"
                          },
                          "detail": {
                            "type": "string",
                            "description": "more about it"
                          },
                          "id": {
                            "type": "string",
                            "description": "the item's id"
                          },
                          "signal": {
                            "type": "string",
                            "description": "its state: run, need, done, problem, paused or rest"
                          },
                          "test": {
                            "type": "boolean",
                            "description": "test data, shown apart by the dashboard and never counted in a figure"
                          },
                          "title": {
                            "type": "string",
                            "description": "what the item is, in a line"
                          }
                        },
                        "required": [
                          "id",
                          "title"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "the cursor of the next page; none on the last"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The jobs",
                    "value": {
                      "items": [
                        {
                          "id": "kit_job_prune",
                          "title": "kit_job_prune",
                          "detail": "ok; daily at 04:20 Amsterdam; last run ended 2026-11-29 04:20 UTC, ok in 1.2s; next run 2026-11-30 04:20 UTC; 0 queued, 0 running",
                          "at": "2026-11-29T04:20:01Z",
                          "signal": "done"
                        },
                        {
                          "id": "mail_pull",
                          "title": "mail_pull",
                          "detail": "failing; every 5m; last run ended 2026-11-29 04:20 UTC, failed after 3s: imap down; next run 2026-11-29 04:25 UTC; 1 queued, 0 running",
                          "at": "2026-11-29T04:20:01Z",
                          "signal": "problem"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "jobs_summary",
        "summary": "Every job of this department with its schedule, its last run (when it ended, ok or failed, how long it took, the error's first line), its next run, how many of it are queued or running now and its state: ok, failing (its last run failed), late (no success in twice its period) or never run.",
        "description": "Every job of this department with its schedule, its last run (when it ended, ok or failed, how long it took, the error's first line), its next run, how many of it are queued or running now and its state: ok, failing (its last run failed), late (no success in twice its period) or never run. Use it to see whether the background work keeps up. Access: a key with usage:read, usage:write or dashboard:read. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "The jobs",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "description": "the items, in the order they are drawn",
                      "items": {
                        "type": "object",
                        "properties": {
                          "at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "when it happened or is due"
                          },
                          "detail": {
                            "type": "string",
                            "description": "more about it"
                          },
                          "id": {
                            "type": "string",
                            "description": "the item's id"
                          },
                          "signal": {
                            "type": "string",
                            "description": "its state: run, need, done, problem, paused or rest"
                          },
                          "test": {
                            "type": "boolean",
                            "description": "test data, shown apart by the dashboard and never counted in a figure"
                          },
                          "title": {
                            "type": "string",
                            "description": "what the item is, in a line"
                          }
                        },
                        "required": [
                          "id",
                          "title"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "the cursor of the next page; none on the last"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The jobs",
                    "value": {
                      "items": [
                        {
                          "id": "kit_job_prune",
                          "title": "kit_job_prune",
                          "detail": "ok; daily at 04:20 Amsterdam; last run ended 2026-11-29 04:20 UTC, ok in 1.2s; next run 2026-11-30 04:20 UTC; 0 queued, 0 running",
                          "at": "2026-11-29T04:20:01Z",
                          "signal": "done"
                        },
                        {
                          "id": "mail_pull",
                          "title": "mail_pull",
                          "detail": "failing; every 5m; last run ended 2026-11-29 04:20 UTC, failed after 3s: imap down; next run 2026-11-29 04:25 UTC; 1 queued, 0 running",
                          "at": "2026-11-29T04:20:01Z",
                          "signal": "problem"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/list_agent_payments": {
      "get": {
        "operationId": "list_agent_payments_get",
        "summary": "List the services our agent paid on its own rail (x402, MPP, agent card), with amount, day and proof.",
        "description": "List the services our agent paid on its own rail (x402, MPP, agent card), with amount, day and proof. Then the ones it couldn't pay and why, all rails or one. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "rail",
            "in": "query",
            "description": "only this rail, e.g. x402",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only this rail, e.g. x402"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Payments over x402",
                    "value": {
                      "result": {
                        "counts": {
                          "not_paid": 0,
                          "paid": 1
                        },
                        "rail": "x402"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "list_agent_payments",
        "summary": "List the services our agent paid on its own rail (x402, MPP, agent card), with amount, day and proof.",
        "description": "List the services our agent paid on its own rail (x402, MPP, agent card), with amount, day and proof. Then the ones it couldn't pay and why, all rails or one. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rail": {
                    "type": "string",
                    "description": "only this rail, e.g. x402"
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Payments over x402",
                  "value": {
                    "rail": "x402"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Payments over x402",
                    "value": {
                      "result": {
                        "counts": {
                          "not_paid": 0,
                          "paid": 1
                        },
                        "rail": "x402"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/list_best_providers": {
      "get": {
        "operationId": "list_best_providers_get",
        "summary": "Rank a category's driven products: a confirmed level first, then the higher level, the more core work done from code and the quicker way in.",
        "description": "Rank a category's driven products: a confirmed level first, then the higher level, the more core work done from code and the quicker way in. Under 5 drives it says there aren't enough yet. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "description": "a focus category (payments, email, sign-in, scheduling, data) or any category id or name",
            "required": true,
            "schema": {
              "type": "string",
              "description": "a focus category (payments, email, sign-in, scheduling, data) or any category id or name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The best email products",
                    "value": {
                      "result": {
                        "category": "email",
                        "enough": true,
                        "min_n": 5,
                        "n": 12,
                        "name": "Email"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "list_best_providers",
        "summary": "Rank a category's driven products: a confirmed level first, then the higher level, the more core work done from code and the quicker way in.",
        "description": "Rank a category's driven products: a confirmed level first, then the higher level, the more core work done from code and the quicker way in. Under 5 drives it says there aren't enough yet. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "category": {
                    "type": "string",
                    "description": "a focus category (payments, email, sign-in, scheduling, data) or any category id or name"
                  }
                },
                "required": [
                  "category"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "The best email products",
                  "value": {
                    "category": "email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The best email products",
                    "value": {
                      "result": {
                        "category": "email",
                        "enough": true,
                        "min_n": 5,
                        "n": 12,
                        "name": "Email"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/list_categories": {
      "get": {
        "operationId": "list_categories_get",
        "summary": "List every category with its id, name, number of products and best agent level.",
        "description": "List every category with its id, name, number of products and best agent level. Its id is what the other tools take as category. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Every category",
                    "value": {
                      "result": [
                        {
                          "best_level": 4,
                          "category": "email-infrastructure",
                          "name": "Email infrastructure",
                          "tools": 12
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "list_categories",
        "summary": "List every category with its id, name, number of products and best agent level.",
        "description": "List every category with its id, name, number of products and best agent level. Its id is what the other tools take as category. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Every category",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Every category",
                    "value": {
                      "result": [
                        {
                          "best_level": 4,
                          "category": "email-infrastructure",
                          "name": "Email infrastructure",
                          "tools": 12
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/list_changes": {
      "get": {
        "operationId": "list_changes_get",
        "summary": "List what moved at products in the last days: level moves with the cause and the level now, and the changes a second drive confirmed.",
        "description": "List what moved at products in the last days: level moves with the cause and the level now, and the changes a second drive confirmed. Narrow it with days, category or slug. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "description": "only this category id or name (list_categories)",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only this category id or name (list_categories)"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "days back, 1 to 31 (default 7)",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "days back, 1 to 31 (default 7)",
              "default": 7,
              "minimum": 1,
              "maximum": 31
            }
          },
          {
            "name": "slug",
            "in": "query",
            "description": "only this product",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only this product"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The last week",
                    "value": {
                      "result": {
                        "days": 7,
                        "level_moves": [],
                        "since": "2026-11-21"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "list_changes",
        "summary": "List what moved at products in the last days: level moves with the cause and the level now, and the changes a second drive confirmed.",
        "description": "List what moved at products in the last days: level moves with the cause and the level now, and the changes a second drive confirmed. Narrow it with days, category or slug. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "category": {
                    "type": "string",
                    "description": "only this category id or name (list_categories)"
                  },
                  "days": {
                    "type": "integer",
                    "description": "days back, 1 to 31 (default 7)",
                    "default": 7,
                    "minimum": 1,
                    "maximum": 31
                  },
                  "slug": {
                    "type": "string",
                    "description": "only this product"
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "The last week",
                  "value": {
                    "days": 7
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "description": "the answer"
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The last week",
                    "value": {
                      "result": {
                        "days": 7,
                        "level_moves": [],
                        "since": "2026-11-21"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/oauth_approve": {
      "post": {
        "operationId": "oauth_approve",
        "summary": "Approves the OAuth request whose id is given for the calling key's account: redirect_to sends the browser back to the app with a code, which it trades for tokens of the account that account_apps lists and account_app_revoke ends.",
        "description": "Approves the OAuth request whose id is given for the calling key's account: redirect_to sends the browser back to the app with a code, which it trades for tokens of the account that account_apps lists and account_app_revoke ends. Call it with the session of the person signed in on the authorize page once they confirm the app oauth_request shows. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request": {
                    "type": "string",
                    "description": "the request id the authorize page's URL gives as ?request=",
                    "maxLength": 100
                  }
                },
                "required": [
                  "request"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "the person decides",
                  "value": {
                    "request": "q9Zk4-mX2c8YbTnVfW1aR0eLhJ7sGdPuK3oQiN5yE6A"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "approved": {
                      "type": "boolean",
                      "description": "true: the app gets tokens of the account; false: it is refused"
                    },
                    "redirect_to": {
                      "type": "string",
                      "description": "where to send the person's browser now: the app's redirect_uri with the code, or with error=access_denied"
                    }
                  },
                  "required": [
                    "redirect_to",
                    "approved"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the person decides",
                    "value": {
                      "redirect_to": "https://claude.ai/api/mcp/auth_callback?code=...\u0026iss=https%3A%2F%2Fexample.com\u0026state=...",
                      "approved": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`oauth_request_unknown`: give the request id of the page's URL within 10 minutes of the app's asking; a request is approved or denied once, and connecting the app again gives a new one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "oauth_request_unknown": {
                    "summary": "oauth_request_unknown",
                    "value": {
                      "error": "oauth_request_unknown",
                      "message": "oauth request unknown",
                      "fix": "give the request id of the page's URL within 10 minutes of the app's asking; a request is approved or denied once, and connecting the app again gives a new one",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/oauth_deny": {
      "post": {
        "operationId": "oauth_deny",
        "summary": "Refuses the OAuth request whose id is given: the app gets no tokens, and redirect_to sends the browser back to it with error=access_denied.",
        "description": "Refuses the OAuth request whose id is given: the app gets no tokens, and redirect_to sends the browser back to it with error=access_denied. Call it with the session of the person signed in on the authorize page when they refuse the app oauth_request shows. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request": {
                    "type": "string",
                    "description": "the request id the authorize page's URL gives as ?request=",
                    "maxLength": 100
                  }
                },
                "required": [
                  "request"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "the person decides",
                  "value": {
                    "request": "q9Zk4-mX2c8YbTnVfW1aR0eLhJ7sGdPuK3oQiN5yE6A"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "approved": {
                      "type": "boolean",
                      "description": "true: the app gets tokens of the account; false: it is refused"
                    },
                    "redirect_to": {
                      "type": "string",
                      "description": "where to send the person's browser now: the app's redirect_uri with the code, or with error=access_denied"
                    }
                  },
                  "required": [
                    "redirect_to",
                    "approved"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "the person decides",
                    "value": {
                      "redirect_to": "https://claude.ai/api/mcp/auth_callback?code=...\u0026iss=https%3A%2F%2Fexample.com\u0026state=...",
                      "approved": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`oauth_request_unknown`: give the request id of the page's URL within 10 minutes of the app's asking; a request is approved or denied once, and connecting the app again gives a new one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "oauth_request_unknown": {
                    "summary": "oauth_request_unknown",
                    "value": {
                      "error": "oauth_request_unknown",
                      "message": "oauth request unknown",
                      "fix": "give the request id of the page's URL within 10 minutes of the app's asking; a request is approved or denied once, and connecting the app again gives a new one",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/oauth_request": {
      "get": {
        "operationId": "oauth_request_get",
        "summary": "Shows the OAuth request whose id the authorize page's URL gives: the app asking, the host it sends the browser back to, and the scopes it asks for.",
        "description": "Shows the OAuth request whose id the authorize page's URL gives: the app asking, the host it sends the browser back to, and the scopes it asks for. Call it with the session of the person signed in on the authorize page to show them what they approve; oauth_approve or oauth_deny decides it. Access: a key with account:read or account:write. Price: free.",
        "parameters": [
          {
            "name": "request",
            "in": "query",
            "description": "the request id the authorize page's URL gives as ?request=",
            "required": true,
            "schema": {
              "type": "string",
              "description": "the request id the authorize page's URL gives as ?request=",
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "asked_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it asked"
                    },
                    "client_id": {
                      "type": "string",
                      "description": "the app's client id, as it registered itself"
                    },
                    "client_name": {
                      "type": "string",
                      "description": "the name the app gave itself, which nothing proves; empty: none"
                    },
                    "redirect_host": {
                      "type": "string",
                      "description": "the host the person's browser goes back to, which tells the app apart: show it with the name"
                    },
                    "scopes": {
                      "type": "array",
                      "description": "the scopes the app asks for, which its tokens hold",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "client_id",
                    "client_name",
                    "redirect_host",
                    "scopes",
                    "asked_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "an app asks",
                    "value": {
                      "client_id": "oc_3hY0bVJ9kq2Wm8xTn5RcLg",
                      "client_name": "Claude",
                      "redirect_host": "claude.ai",
                      "scopes": [
                        "deals:read"
                      ],
                      "asked_at": "2026-11-05T18:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`oauth_request_unknown`: give the request id of the page's URL within 10 minutes of the app's asking; a request is approved or denied once, and connecting the app again gives a new one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "oauth_request_unknown": {
                    "summary": "oauth_request_unknown",
                    "value": {
                      "error": "oauth_request_unknown",
                      "message": "oauth request unknown",
                      "fix": "give the request id of the page's URL within 10 minutes of the app's asking; a request is approved or denied once, and connecting the app again gives a new one",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "oauth_request",
        "summary": "Shows the OAuth request whose id the authorize page's URL gives: the app asking, the host it sends the browser back to, and the scopes it asks for.",
        "description": "Shows the OAuth request whose id the authorize page's URL gives: the app asking, the host it sends the browser back to, and the scopes it asks for. Call it with the session of the person signed in on the authorize page to show them what they approve; oauth_approve or oauth_deny decides it. Access: a key with account:read or account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request": {
                    "type": "string",
                    "description": "the request id the authorize page's URL gives as ?request=",
                    "maxLength": 100
                  }
                },
                "required": [
                  "request"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "an app asks",
                  "value": {
                    "request": "q9Zk4-mX2c8YbTnVfW1aR0eLhJ7sGdPuK3oQiN5yE6A"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "asked_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it asked"
                    },
                    "client_id": {
                      "type": "string",
                      "description": "the app's client id, as it registered itself"
                    },
                    "client_name": {
                      "type": "string",
                      "description": "the name the app gave itself, which nothing proves; empty: none"
                    },
                    "redirect_host": {
                      "type": "string",
                      "description": "the host the person's browser goes back to, which tells the app apart: show it with the name"
                    },
                    "scopes": {
                      "type": "array",
                      "description": "the scopes the app asks for, which its tokens hold",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "client_id",
                    "client_name",
                    "redirect_host",
                    "scopes",
                    "asked_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "an app asks",
                    "value": {
                      "client_id": "oc_3hY0bVJ9kq2Wm8xTn5RcLg",
                      "client_name": "Claude",
                      "redirect_host": "claude.ai",
                      "scopes": [
                        "deals:read"
                      ],
                      "asked_at": "2026-11-05T18:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`oauth_request_unknown`: give the request id of the page's URL within 10 minutes of the app's asking; a request is approved or denied once, and connecting the app again gives a new one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "oauth_request_unknown": {
                    "summary": "oauth_request_unknown",
                    "value": {
                      "error": "oauth_request_unknown",
                      "message": "oauth request unknown",
                      "fix": "give the request id of the page's URL within 10 minutes of the app's asking; a request is approved or denied once, and connecting the app again gives a new one",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/page": {
      "get": {
        "operationId": "page_get",
        "summary": "Gives a listed page's JSON for the design kit at a data version.",
        "description": "Gives a listed page's JSON for the design kit at a data version. The publishing engine calls it for each path urls lists with a page type; use file for any other path. Access: a key with publisher:read or publisher:write. Price: free.",
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "description": "The page's path, as urls lists it with a page type.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The page's path, as urls lists it with a page type."
            }
          },
          {
            "name": "site",
            "in": "query",
            "description": "The site's id.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The site's id."
            }
          },
          {
            "name": "v",
            "in": "query",
            "description": "The data version urls gave; another one is answered stale.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The data version urls gave; another one is answered stale."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {},
                "examples": {
                  "example1": {
                    "summary": "Get a page's JSON",
                    "value": {
                      "type": "vendor-profile",
                      "path": "/pricing",
                      "title": "Pricing"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "page",
        "summary": "Gives a listed page's JSON for the design kit at a data version.",
        "description": "Gives a listed page's JSON for the design kit at a data version. The publishing engine calls it for each path urls lists with a page type; use file for any other path. Access: a key with publisher:read or publisher:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "string",
                    "description": "The page's path, as urls lists it with a page type."
                  },
                  "site": {
                    "type": "string",
                    "description": "The site's id."
                  },
                  "v": {
                    "type": "string",
                    "description": "The data version urls gave; another one is answered stale."
                  }
                },
                "required": [
                  "site",
                  "path",
                  "v"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Get a page's JSON",
                  "value": {
                    "site": "guides",
                    "path": "/pricing",
                    "v": "1187"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {},
                "examples": {
                  "example1": {
                    "summary": "Get a page's JSON",
                    "value": {
                      "type": "vendor-profile",
                      "path": "/pricing",
                      "title": "Pricing"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/page_list": {
      "get": {
        "operationId": "page_list_get",
        "summary": "Lists the written pages of agentdrives.com, the carried ones and those page_put stored, with each one's title and lastmod.",
        "description": "Lists the written pages of agentdrives.com, the carried ones and those page_put stored, with each one's title and lastmod. Use it before page_put to see whether a path is taken. Access: a key with content:read or content:write. Price: free.",
        "parameters": [
          {
            "name": "prefix",
            "in": "query",
            "description": "only the pages whose path starts with this, as /research/; left out, every written page",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only the pages whose path starts with this, as /research/; left out, every written page",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pages": {
                      "type": "array",
                      "description": "the written pages, by path",
                      "items": {
                        "type": "object",
                        "properties": {
                          "lastmod": {
                            "type": "string",
                            "description": "its lastmod in the site door, in UTC (RFC 3339)"
                          },
                          "origin": {
                            "type": "string",
                            "description": "import: carried from the old site; put: stored through page_put"
                          },
                          "path": {
                            "type": "string",
                            "description": "the page's path"
                          },
                          "title": {
                            "type": "string",
                            "description": "its title as served"
                          },
                          "type": {
                            "type": "string",
                            "description": "its page type: study, article or listing"
                          }
                        },
                        "required": [
                          "path",
                          "type",
                          "title",
                          "lastmod",
                          "origin"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "pages"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The research pieces",
                    "value": {
                      "pages": [
                        {
                          "path": "/research/agent-payments",
                          "type": "study",
                          "title": "How AI agents pay for software",
                          "lastmod": "2026-11-27T00:00:00Z",
                          "origin": "import"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "page_list",
        "summary": "Lists the written pages of agentdrives.com, the carried ones and those page_put stored, with each one's title and lastmod.",
        "description": "Lists the written pages of agentdrives.com, the carried ones and those page_put stored, with each one's title and lastmod. Use it before page_put to see whether a path is taken. Access: a key with content:read or content:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prefix": {
                    "type": "string",
                    "description": "only the pages whose path starts with this, as /research/; left out, every written page",
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "The research pieces",
                  "value": {
                    "prefix": "/research/"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pages": {
                      "type": "array",
                      "description": "the written pages, by path",
                      "items": {
                        "type": "object",
                        "properties": {
                          "lastmod": {
                            "type": "string",
                            "description": "its lastmod in the site door, in UTC (RFC 3339)"
                          },
                          "origin": {
                            "type": "string",
                            "description": "import: carried from the old site; put: stored through page_put"
                          },
                          "path": {
                            "type": "string",
                            "description": "the page's path"
                          },
                          "title": {
                            "type": "string",
                            "description": "its title as served"
                          },
                          "type": {
                            "type": "string",
                            "description": "its page type: study, article or listing"
                          }
                        },
                        "required": [
                          "path",
                          "type",
                          "title",
                          "lastmod",
                          "origin"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "pages"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The research pieces",
                    "value": {
                      "pages": [
                        {
                          "path": "/research/agent-payments",
                          "type": "study",
                          "title": "How AI agents pay for software",
                          "lastmod": "2026-11-27T00:00:00Z",
                          "origin": "import"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/page_put": {
      "post": {
        "operationId": "page_put",
        "summary": "Stores a written page of agentdrives.com from its Markdown: a new research piece or guide, or a new version of a written page.",
        "description": "Stores a written page of agentdrives.com from its Markdown: a new research piece or guide, or a new version of a written page. It converts and checks the page first and stores nothing when it fails; test:true only checks, and the next site release publishes what was stored. Access: a key with content:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "markdown": {
                    "type": "string",
                    "description": "the page as Markdown: a # title (at most 65 characters) on the first line, the description (50 to 160 characters), an Updated: YYYY-MM-DD line, then its ## sections",
                    "maxLength": 200000
                  },
                  "path": {
                    "type": "string",
                    "description": "the page's path on agentdrives.com, as /research/\u003cslug\u003e or /guides/\u003cslug\u003e, or an existing written page's path to replace it",
                    "maxLength": 200
                  },
                  "test": {
                    "type": "boolean",
                    "description": "true: convert and check only, store nothing, and answer what a put would do"
                  }
                },
                "required": [
                  "path",
                  "markdown"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "A new guide stored",
                  "value": {
                    "path": "/guides/agent-sign-up-walls",
                    "markdown": "# The sign-up walls agents meet most\n\nWhich steps of a sign-up stop an AI agent most often, counted over every product we drove.\n\nUpdated: 2026-11-30\n\n## The walls\n\nA phone check stops more drives than any other step.\n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "description": "new: a page that was not there; updated: its Markdown changed; unchanged: the same Markdown was stored before, nothing written"
                    },
                    "lastmod": {
                      "type": "string",
                      "description": "its lastmod in the site door, in UTC (RFC 3339)"
                    },
                    "path": {
                      "type": "string",
                      "description": "the page's path"
                    },
                    "stored": {
                      "type": "boolean",
                      "description": "false on a test, true when the row is written or already held these bytes"
                    },
                    "type": {
                      "type": "string",
                      "description": "the page type it is built as: study, article or listing"
                    },
                    "url": {
                      "type": "string",
                      "description": "where it is served once the site is released"
                    }
                  },
                  "required": [
                    "path",
                    "kind",
                    "type",
                    "url",
                    "lastmod",
                    "stored"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "A new guide stored",
                    "value": {
                      "path": "/guides/agent-sign-up-walls",
                      "kind": "new",
                      "type": "article",
                      "url": "https://agentdrives.com/guides/agent-sign-up-walls",
                      "lastmod": "2026-11-30T00:00:00Z",
                      "stored": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/prices": {
      "get": {
        "operationId": "prices_get",
        "summary": "Every op of this door with what a call of it costs, in cents of the door's currency; it needs no key.",
        "description": "Every op of this door with what a call of it costs, in cents of the door's currency; it needs no key. Use it to learn the prices before calling; each tool's description, /llms.txt and /openapi.json give the same prices. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "description": "the currency of every price, ISO 4217 in lower case"
                    },
                    "ops": {
                      "type": "array",
                      "description": "every op of the door, in the order it lists them",
                      "items": {
                        "type": "object",
                        "properties": {
                          "op": {
                            "type": "string",
                            "description": "the op's name, as at /api/\u003cop\u003e and as an MCP tool"
                          },
                          "price_cents": {
                            "type": "integer",
                            "description": "what a call costs, in the currency's smallest unit; 0: free"
                          }
                        },
                        "required": [
                          "op",
                          "price_cents"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "currency",
                    "ops"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Every op's price",
                    "value": {
                      "currency": "usd",
                      "ops": [
                        {
                          "op": "deal_get",
                          "price_cents": 0
                        },
                        {
                          "op": "deal_summary",
                          "price_cents": 2
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "prices",
        "summary": "Every op of this door with what a call of it costs, in cents of the door's currency; it needs no key.",
        "description": "Every op of this door with what a call of it costs, in cents of the door's currency; it needs no key. Use it to learn the prices before calling; each tool's description, /llms.txt and /openapi.json give the same prices. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Every op's price",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "description": "the currency of every price, ISO 4217 in lower case"
                    },
                    "ops": {
                      "type": "array",
                      "description": "every op of the door, in the order it lists them",
                      "items": {
                        "type": "object",
                        "properties": {
                          "op": {
                            "type": "string",
                            "description": "the op's name, as at /api/\u003cop\u003e and as an MCP tool"
                          },
                          "price_cents": {
                            "type": "integer",
                            "description": "what a call costs, in the currency's smallest unit; 0: free"
                          }
                        },
                        "required": [
                          "op",
                          "price_cents"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "currency",
                    "ops"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Every op's price",
                    "value": {
                      "currency": "usd",
                      "ops": [
                        {
                          "op": "deal_get",
                          "price_cents": 0
                        },
                        {
                          "op": "deal_summary",
                          "price_cents": 2
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/search_tools": {
      "get": {
        "operationId": "search_tools_get",
        "summary": "Search the products we drove by name, domain or kind, with filters for category, agent level, access or payment.",
        "description": "Search the products we drove by name, domain or kind, with filters for category, agent level, access or payment. Every word must match; the product the query names comes first. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "access",
            "in": "query",
            "description": "only products an agent gets into this way (signup_without_human: any way without a person; person: a person set it up)",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only products an agent gets into this way (signup_without_human: any way without a person; person: a person set it up)",
              "enum": [
                "signup_without_human",
                "keyless",
                "local",
                "try_first",
                "no_account",
                "pay_per_call",
                "key_by_api",
                "mcp_signin",
                "email_signup",
                "browser_signup",
                "by_name",
                "person"
              ]
            }
          },
          {
            "name": "agent_can_buy",
            "in": "query",
            "description": "true: only products our agent paid over x402, MPP or the like",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "true: only products our agent paid over x402, MPP or the like"
            }
          },
          {
            "name": "agent_can_leave",
            "in": "query",
            "description": "true: only products our agent cancelled and deleted on its own",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "true: only products our agent cancelled and deleted on its own"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "only this category id or name (list_categories)",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only this category id or name (list_categories)"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "products per page, 1 to 100 (default 25)",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "products per page, 1 to 100 (default 25)",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "min_level",
            "in": "query",
            "description": "only products at this agent level (0-5) or higher",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "description": "only products at this agent level (0-5) or higher",
              "minimum": 0,
              "maximum": 5
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "skip this many matches: the last answer's next_offset",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "skip this many matches: the last answer's next_offset",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "pays_with",
            "in": "query",
            "description": "only products that take x402, mpp or card; a comma list takes any, e.g. x402,mpp",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only products that take x402, mpp or card; a comma list takes any, e.g. x402,mpp"
            }
          },
          {
            "name": "query",
            "in": "query",
            "description": "name, domain or what it does, e.g. 'stripe.com' or 'invoicing'; every word must match",
            "required": false,
            "schema": {
              "type": "string",
              "description": "name, domain or what it does, e.g. 'stripe.com' or 'invoicing'; every word must match"
            }
          },
          {
            "name": "surface",
            "in": "query",
            "description": "only products an agent can work by api, mcp, cli or sdk; a comma list wants all, e.g. mcp,cli",
            "required": false,
            "schema": {
              "type": "string",
              "description": "only products an agent can work by api, mcp, cli or sdk; a comma list wants all, e.g. mcp,cli"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "more": {
                      "type": "string",
                      "description": "how many more match and how to get them"
                    },
                    "next_offset": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "the offset of the next page, null when this is the last"
                    },
                    "no_match": {
                      "description": "when nothing matches: what was searched and what to do"
                    },
                    "offset": {
                      "type": "integer",
                      "description": "the matches skipped"
                    },
                    "result": {
                      "type": "array",
                      "description": "the products on this page, each its search line",
                      "items": {}
                    },
                    "total": {
                      "type": "integer",
                      "description": "how many products match"
                    },
                    "try": {
                      "type": "string",
                      "description": "when nothing matches: the next search to try"
                    }
                  },
                  "required": [
                    "result",
                    "total",
                    "offset"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "A product by its domain",
                    "value": {
                      "result": [
                        {
                          "level": 3,
                          "name": "Example Mail",
                          "slug": "example-mail",
                          "url": "https://agentdrives.com/tools/example-mail?via=mcp"
                        }
                      ],
                      "total": 1,
                      "offset": 0,
                      "next_offset": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "search_tools",
        "summary": "Search the products we drove by name, domain or kind, with filters for category, agent level, access or payment.",
        "description": "Search the products we drove by name, domain or kind, with filters for category, agent level, access or payment. Every word must match; the product the query names comes first. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "access": {
                    "type": "string",
                    "description": "only products an agent gets into this way (signup_without_human: any way without a person; person: a person set it up)",
                    "enum": [
                      "signup_without_human",
                      "keyless",
                      "local",
                      "try_first",
                      "no_account",
                      "pay_per_call",
                      "key_by_api",
                      "mcp_signin",
                      "email_signup",
                      "browser_signup",
                      "by_name",
                      "person"
                    ]
                  },
                  "agent_can_buy": {
                    "type": "boolean",
                    "description": "true: only products our agent paid over x402, MPP or the like"
                  },
                  "agent_can_leave": {
                    "type": "boolean",
                    "description": "true: only products our agent cancelled and deleted on its own"
                  },
                  "category": {
                    "type": "string",
                    "description": "only this category id or name (list_categories)"
                  },
                  "limit": {
                    "type": "integer",
                    "description": "products per page, 1 to 100 (default 25)",
                    "default": 25,
                    "minimum": 1,
                    "maximum": 100
                  },
                  "min_level": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "only products at this agent level (0-5) or higher",
                    "minimum": 0,
                    "maximum": 5
                  },
                  "offset": {
                    "type": "integer",
                    "description": "skip this many matches: the last answer's next_offset",
                    "default": 0,
                    "minimum": 0
                  },
                  "pays_with": {
                    "type": "string",
                    "description": "only products that take x402, mpp or card; a comma list takes any, e.g. x402,mpp"
                  },
                  "query": {
                    "type": "string",
                    "description": "name, domain or what it does, e.g. 'stripe.com' or 'invoicing'; every word must match"
                  },
                  "surface": {
                    "type": "string",
                    "description": "only products an agent can work by api, mcp, cli or sdk; a comma list wants all, e.g. mcp,cli"
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "A product by its domain",
                  "value": {
                    "query": "example-mail.test"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "more": {
                      "type": "string",
                      "description": "how many more match and how to get them"
                    },
                    "next_offset": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "the offset of the next page, null when this is the last"
                    },
                    "no_match": {
                      "description": "when nothing matches: what was searched and what to do"
                    },
                    "offset": {
                      "type": "integer",
                      "description": "the matches skipped"
                    },
                    "result": {
                      "type": "array",
                      "description": "the products on this page, each its search line",
                      "items": {}
                    },
                    "total": {
                      "type": "integer",
                      "description": "how many products match"
                    },
                    "try": {
                      "type": "string",
                      "description": "when nothing matches: the next search to try"
                    }
                  },
                  "required": [
                    "result",
                    "total",
                    "offset"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "A product by its domain",
                    "value": {
                      "result": [
                        {
                          "level": 3,
                          "name": "Example Mail",
                          "slug": "example-mail",
                          "url": "https://agentdrives.com/tools/example-mail?via=mcp"
                        }
                      ],
                      "total": 1,
                      "offset": 0,
                      "next_offset": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/sign_in_finish": {
      "post": {
        "operationId": "sign_in_finish",
        "summary": "Signs in with the code sign_in_start mailed, or the code of its link, answering a session of the address's account, made now, its address proven, for an address that had none.",
        "description": "Signs in with the code sign_in_start mailed, or the code of its link, answering a session of the address's account, made now, its address proven, for an address that had none. Call it with no key; a wrong, used or expired code answers sign_in_failed, and after 5 wrong codes a sign-in is dead. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "the 6-digit code from the mail, with email",
                    "maxLength": 12
                  },
                  "email": {
                    "type": "string",
                    "description": "the email address sign_in_start mailed, with code",
                    "maxLength": 254
                  },
                  "token": {
                    "type": "string",
                    "description": "the code in the mail's link, the code= of its URL, instead of email and code",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "sign in with the mailed code",
                  "value": {
                    "email": "ada@example.com",
                    "code": "481920"
                  }
                },
                "example2": {
                  "summary": "sign in with the link",
                  "value": {
                    "token": "x7Kp2-VdQ0aYbL5eN3sR9uWm1cFgHjTzA4oIqE6iU8w"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "integer",
                      "description": "the signed-in account's id"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when the session ends, however much it is used; signing in again gives another"
                    },
                    "session": {
                      "type": "string",
                      "description": "the session, shown only now: send it as X-Api-Key, or as Authorization: Bearer, until expires_at"
                    }
                  },
                  "required": [
                    "account",
                    "session",
                    "expires_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "sign in with the mailed code",
                    "value": {
                      "account": 42,
                      "session": "mk_Q2x-8rT...",
                      "expires_at": "2026-12-02T09:30:00Z"
                    }
                  },
                  "example2": {
                    "summary": "sign in with the link",
                    "value": {
                      "account": 42,
                      "session": "mk_Q2x-8rT...",
                      "expires_at": "2026-12-02T09:30:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`sign_in_failed`: ask for a new code with sign_in_start and give it to sign_in_finish within 10 minutes; `unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "sign_in_failed": {
                    "summary": "sign_in_failed",
                    "value": {
                      "error": "sign_in_failed",
                      "message": "sign in failed",
                      "fix": "ask for a new code with sign_in_start and give it to sign_in_finish within 10 minutes",
                      "request": "r_0123456789abcdef"
                    }
                  },
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/sign_in_start": {
      "post": {
        "operationId": "sign_in_start",
        "summary": "Mails a 6-digit code and a sign-in link to an email address, both working once, for 10 minutes: finishing it signs in to the address's account, or makes one, its address proven, for an address with none.",
        "description": "Mails a 6-digit code and a sign-in link to an email address, both working once, for 10 minutes: finishing it signs in to the address's account, or makes one, its address proven, for an address with none. A blocked account gets no mail and the same answer. Call it with no key to sign in or up, then give the code, or the code in the link, to sign_in_finish, which answers a session. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "the account's email address",
                    "maxLength": 254
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "mail a code",
                  "value": {
                    "email": "ada@example.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sent": {
                      "type": "boolean",
                      "description": "always true, whether or not the address has an account, so that the answer tells no one which addresses have one"
                    }
                  },
                  "required": [
                    "sent"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "mail a code",
                    "value": {
                      "sent": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/sign_out": {
      "post": {
        "operationId": "sign_out",
        "summary": "Ends the calling session at once: the door refuses it from now on.",
        "description": "Ends the calling session at once: the door refuses it from now on. Call it with a session a sign-in gave; a key that is no session is revoked by account_key_revoke instead. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "sign out",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session": {
                      "type": "integer",
                      "description": "the ended session's id"
                    },
                    "signed_out_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when it ended"
                    }
                  },
                  "required": [
                    "session",
                    "signed_out_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "sign out",
                    "value": {
                      "session": 9,
                      "signed_out_at": "2026-11-05T18:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/sign_out_all": {
      "post": {
        "operationId": "sign_out_all",
        "summary": "Ends every session of the calling key's account at once, on every device; its keys stay.",
        "description": "Ends every session of the calling key's account at once, on every device; its keys stay. Call it when a device is lost or a session may be another's; account_session_revoke ends one. Access: a key with account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "sign out everywhere",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessions": {
                      "type": "integer",
                      "description": "how many sessions it ended, the calling one among them when it is one"
                    },
                    "signed_out_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "when they ended"
                    }
                  },
                  "required": [
                    "sessions",
                    "signed_out_at"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "sign out everywhere",
                    "value": {
                      "sessions": 3,
                      "signed_out_at": "2026-11-05T18:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/sign_up": {
      "post": {
        "operationId": "sign_up",
        "summary": "Makes an account for an agent, with no person and no address, and answers its key, shown only once, its limits and a claim link for the person it works for.",
        "description": "Makes an account for an agent, with no person and no address, and answers its key, shown only once, its limits and a claim link for the person it works for. Call it with no key to start; with email, the claim code and link are mailed to that person too. Access: no key, at most 60 calls a minute per client IP. Price: free.",
        "security": [
          {},
          {
            "bearer": []
          },
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "agent": {
                    "type": "string",
                    "description": "your name as an agent, shown to the person who claims the account; letters, digits and . @ : / + - _ kept, at most 60",
                    "maxLength": 100
                  },
                  "email": {
                    "type": "string",
                    "description": "the address of the person who should get the claim link, mailed now; never the account's own address",
                    "maxLength": 254
                  },
                  "name": {
                    "type": "string",
                    "description": "the same as agent, when agent is not given",
                    "maxLength": 100
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "An agent signs up and has the claim link mailed to its person",
                  "value": {
                    "agent": "research-bot",
                    "email": "ada@example.com"
                  }
                },
                "example2": {
                  "summary": "An agent signs up on its own",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "object",
                      "description": "the new account",
                      "properties": {
                        "claimed": {
                          "type": "boolean",
                          "description": "whether a person claimed it; false at sign-up"
                        },
                        "id": {
                          "type": "string",
                          "description": "the account's id"
                        },
                        "type": {
                          "type": "string",
                          "description": "agent: an account an agent made, until a person claims it",
                          "enum": [
                            "agent"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "claimed"
                      ],
                      "additionalProperties": false
                    },
                    "api_key": {
                      "type": "string",
                      "description": "the account's key, shown only now: send it as x-api-key"
                    },
                    "claim": {
                      "type": "object",
                      "description": "how a person makes the account theirs",
                      "properties": {
                        "expires_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "when the claim token ends; claim_link gives a new one"
                        },
                        "how": {
                          "type": "string",
                          "description": "what claiming does"
                        },
                        "mailed": {
                          "type": [
                            "boolean",
                            "null"
                          ],
                          "description": "with email, whether the mail went out; false: give your person the url yourself"
                        },
                        "mailed_to": {
                          "type": "string",
                          "description": "with email, the address the claim code and link were mailed to"
                        },
                        "token": {
                          "type": "string",
                          "description": "the claim token, shown only now: claim_preview and claim_start take it"
                        },
                        "url": {
                          "type": "string",
                          "description": "the claim page with the claim token, to give your person"
                        }
                      },
                      "required": [
                        "url",
                        "token",
                        "expires_at",
                        "how"
                      ],
                      "additionalProperties": false
                    },
                    "key": {
                      "type": "object",
                      "description": "what the key is",
                      "properties": {
                        "header": {
                          "type": "string",
                          "description": "the header to send it in (Authorization: Bearer works too)",
                          "enum": [
                            "x-api-key"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "description": "the key's id, which account_key_revoke takes"
                        },
                        "shown_once": {
                          "type": "boolean",
                          "description": "true: the key is shown only in this answer"
                        },
                        "start": {
                          "type": "string",
                          "description": "the key's first characters, to tell it from others"
                        }
                      },
                      "required": [
                        "id",
                        "start",
                        "header",
                        "shown_once"
                      ],
                      "additionalProperties": false
                    },
                    "limits": {
                      "type": "object",
                      "description": "what the account may do until a person claims it",
                      "properties": {
                        "free_checks_per_day": {
                          "type": "integer",
                          "description": "the free checks a day the account may order, once orders are served here"
                        },
                        "key_requests_per_hour": {
                          "type": "integer",
                          "description": "the calls an hour the key may make"
                        },
                        "lifted_by": {
                          "type": "string",
                          "description": "what lifts these limits"
                        },
                        "orders": {
                          "type": "array",
                          "description": "the products the account may order; none are served here yet",
                          "items": {
                            "type": "string"
                          }
                        },
                        "pay": {
                          "type": "string",
                          "description": "how the account pays for what it orders"
                        }
                      },
                      "required": [
                        "key_requests_per_hour",
                        "free_checks_per_day",
                        "orders",
                        "pay",
                        "lifted_by"
                      ],
                      "additionalProperties": false
                    },
                    "next": {
                      "type": "array",
                      "description": "what to call next",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "account",
                    "api_key",
                    "key",
                    "limits",
                    "claim",
                    "next"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "An agent signs up and has the claim link mailed to its person",
                    "value": {
                      "account": {
                        "id": "42",
                        "type": "agent",
                        "claimed": false
                      },
                      "api_key": "sd_3q2-7wE…",
                      "key": {
                        "id": "57",
                        "start": "sd_3q2",
                        "header": "x-api-key",
                        "shown_once": true
                      },
                      "limits": {
                        "key_requests_per_hour": 600,
                        "free_checks_per_day": 1,
                        "orders": [],
                        "pay": "Paid searches (POST https://agentdrives.com/api/paid/find-tools, $0.01 a call) take the account's credit; POST https://agentdrives.com/api/credits/topup buys it.",
                        "lifted_by": "a person claiming the account (claim.url)"
                      },
                      "claim": {
                        "url": "https://agentdrives.com/claim?claim=claim_Xk2…",
                        "token": "claim_Xk2…",
                        "expires_at": "2026-12-06T09:30:00Z",
                        "how": "Your person opens the link, gives their own address and confirms with the code mailed to it. This account becomes theirs; this key stops working, and they get a new key, shown to them once, to give you.",
                        "mailed_to": "ada@example.com",
                        "mailed": true
                      },
                      "next": [
                        "POST /api/whoami with the x-api-key header: your account",
                        "POST /api/choose_provider_for_task {\"task\":\"…\"} or search_tools {\"query\":\"…\"}: the directory, with this key or none",
                        "Send your person claim.url: they see what comes with the account (POST /api/claim_preview {\"claim_token\":\"…\"}), give their address to claim_start and the mailed code to claim_finish",
                        "POST /api/claim_link {}: a new claim token when this one is lost or expired; the old one stops working",
                        "POST /api/account_keys {} lists your keys; account_key_add makes another, account_key_revoke ends one",
                        "POST /api/account_delete {}: deletes the account and its keys"
                      ]
                    }
                  },
                  "example2": {
                    "summary": "An agent signs up on its own",
                    "value": {
                      "account": {
                        "id": "42",
                        "type": "agent",
                        "claimed": false
                      },
                      "api_key": "sd_3q2-7wE…",
                      "key": {
                        "id": "57",
                        "start": "sd_3q2",
                        "header": "x-api-key",
                        "shown_once": true
                      },
                      "limits": {
                        "key_requests_per_hour": 600,
                        "free_checks_per_day": 1,
                        "orders": [],
                        "pay": "Paid searches (POST https://agentdrives.com/api/paid/find-tools, $0.01 a call) take the account's credit; POST https://agentdrives.com/api/credits/topup buys it.",
                        "lifted_by": "a person claiming the account (claim.url)"
                      },
                      "claim": {
                        "url": "https://agentdrives.com/claim?claim=claim_Xk2…",
                        "token": "claim_Xk2…",
                        "expires_at": "2026-12-06T09:30:00Z",
                        "how": "Your person opens the link, gives their own address and confirms with the code mailed to it. This account becomes theirs; this key stops working, and they get a new key, shown to them once, to give you."
                      },
                      "next": [
                        "POST /api/whoami with the x-api-key header: your account",
                        "POST /api/choose_provider_for_task {\"task\":\"…\"} or search_tools {\"query\":\"…\"}: the directory, with this key or none",
                        "Send your person claim.url: they see what comes with the account (POST /api/claim_preview {\"claim_token\":\"…\"}), give their address to claim_start and the mailed code to claim_finish",
                        "POST /api/claim_link {}: a new claim token when this one is lost or expired; the old one stops working",
                        "POST /api/account_keys {} lists your keys; account_key_add makes another, account_key_revoke ends one",
                        "POST /api/account_delete {}: deletes the account and its keys"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_email`: email is optional: the address of the person who should get the claim link, or leave it out.; `invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_email": {
                    "summary": "invalid_email",
                    "value": {
                      "error": "invalid_email",
                      "message": "invalid email",
                      "fix": "email is optional: the address of the person who should get the claim link, or leave it out.",
                      "request": "r_0123456789abcdef"
                    }
                  },
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again; `signup_budget_reached`: Today's agent sign-ups are used up. Try again after the Retry-After seconds.",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  },
                  "signup_budget_reached": {
                    "summary": "signup_budget_reached",
                    "value": {
                      "error": "signup_budget_reached",
                      "message": "signup budget reached",
                      "fix": "Today's agent sign-ups are used up. Try again after the Retry-After seconds.",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/site_kit": {
      "get": {
        "operationId": "site_kit_get",
        "summary": "Gives a site's site.json for the design kit at a data version.",
        "description": "Gives a site's site.json for the design kit at a data version. The publishing engine calls it once per pull after urls; use page for a page's JSON. Access: a key with publisher:read or publisher:write. Price: free.",
        "parameters": [
          {
            "name": "site",
            "in": "query",
            "description": "The site's id.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The site's id."
            }
          },
          {
            "name": "v",
            "in": "query",
            "description": "The data version urls gave; another one is answered stale.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The data version urls gave; another one is answered stale."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {},
                "examples": {
                  "example1": {
                    "summary": "Get a site's site.json",
                    "value": {
                      "name": "Guides",
                      "url": "https://guides.example"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "site_kit",
        "summary": "Gives a site's site.json for the design kit at a data version.",
        "description": "Gives a site's site.json for the design kit at a data version. The publishing engine calls it once per pull after urls; use page for a page's JSON. Access: a key with publisher:read or publisher:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "site": {
                    "type": "string",
                    "description": "The site's id."
                  },
                  "v": {
                    "type": "string",
                    "description": "The data version urls gave; another one is answered stale."
                  }
                },
                "required": [
                  "site",
                  "v"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Get a site's site.json",
                  "value": {
                    "site": "guides",
                    "v": "1187"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {},
                "examples": {
                  "example1": {
                    "summary": "Get a site's site.json",
                    "value": {
                      "name": "Guides",
                      "url": "https://guides.example"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/spend_week": {
      "get": {
        "operationId": "spend_week_get",
        "summary": "Show, per work (job, op or binary), what its model, service and other door calls cost over the last 7 days (Amsterdam): calls, dollars, the share of each model, escalations to another model, the results it counted and the dollars per result.",
        "description": "Show, per work (job, op or binary), what its model, service and other door calls cost over the last 7 days (Amsterdam): calls, dollars, the share of each model, escalations to another model, the results it counted and the dollars per result. Use it to see which work costs what it brings; counts are kept 400 days. Test work is left out of every work's figures and summed on its own last line, (test). Access: a key with spend:read, spend:write or dashboard:read. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "columns": {
                      "type": "array",
                      "description": "the columns, in the order they are drawn",
                      "items": {
                        "type": "object",
                        "properties": {
                          "currency": {
                            "type": "string",
                            "description": "for money: the currency, ISO 4217 in lower case"
                          },
                          "key": {
                            "type": "string",
                            "description": "the key of its cells in each row"
                          },
                          "label": {
                            "type": "string",
                            "description": "its heading"
                          },
                          "unit": {
                            "type": "string",
                            "description": "what its numbers count: count, percent, ms, bytes or money"
                          }
                        },
                        "required": [
                          "key",
                          "label"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "the cursor of the next page; none on the last"
                    },
                    "rows": {
                      "type": "array",
                      "description": "the rows: a column's key to its cell, a string, a number or null; _test true marks a row of test data, shown apart by the dashboard and never counted in a figure",
                      "items": {
                        "type": "object",
                        "additionalProperties": {}
                      }
                    }
                  },
                  "required": [
                    "columns",
                    "rows"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "This week's work",
                    "value": {
                      "columns": [
                        {
                          "key": "work",
                          "label": "Work"
                        },
                        {
                          "key": "calls",
                          "label": "Calls",
                          "unit": "count"
                        },
                        {
                          "key": "usd",
                          "label": "Spent",
                          "unit": "money",
                          "currency": "usd"
                        },
                        {
                          "key": "models",
                          "label": "Models"
                        },
                        {
                          "key": "escalations",
                          "label": "Escalations",
                          "unit": "count"
                        },
                        {
                          "key": "results",
                          "label": "Results"
                        },
                        {
                          "key": "per_result",
                          "label": "Per result"
                        }
                      ],
                      "rows": [
                        {
                          "calls": 1500,
                          "escalations": 12,
                          "models": "haiku 80%, opus 20%",
                          "per_result": "$0.0034",
                          "results": "page_read 1200",
                          "usd": 412,
                          "work": "page_read"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "spend_week",
        "summary": "Show, per work (job, op or binary), what its model, service and other door calls cost over the last 7 days (Amsterdam): calls, dollars, the share of each model, escalations to another model, the results it counted and the dollars per result.",
        "description": "Show, per work (job, op or binary), what its model, service and other door calls cost over the last 7 days (Amsterdam): calls, dollars, the share of each model, escalations to another model, the results it counted and the dollars per result. Use it to see which work costs what it brings; counts are kept 400 days. Test work is left out of every work's figures and summed on its own last line, (test). Access: a key with spend:read, spend:write or dashboard:read. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "This week's work",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "columns": {
                      "type": "array",
                      "description": "the columns, in the order they are drawn",
                      "items": {
                        "type": "object",
                        "properties": {
                          "currency": {
                            "type": "string",
                            "description": "for money: the currency, ISO 4217 in lower case"
                          },
                          "key": {
                            "type": "string",
                            "description": "the key of its cells in each row"
                          },
                          "label": {
                            "type": "string",
                            "description": "its heading"
                          },
                          "unit": {
                            "type": "string",
                            "description": "what its numbers count: count, percent, ms, bytes or money"
                          }
                        },
                        "required": [
                          "key",
                          "label"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": "string",
                      "description": "the cursor of the next page; none on the last"
                    },
                    "rows": {
                      "type": "array",
                      "description": "the rows: a column's key to its cell, a string, a number or null; _test true marks a row of test data, shown apart by the dashboard and never counted in a figure",
                      "items": {
                        "type": "object",
                        "additionalProperties": {}
                      }
                    }
                  },
                  "required": [
                    "columns",
                    "rows"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "This week's work",
                    "value": {
                      "columns": [
                        {
                          "key": "work",
                          "label": "Work"
                        },
                        {
                          "key": "calls",
                          "label": "Calls",
                          "unit": "count"
                        },
                        {
                          "key": "usd",
                          "label": "Spent",
                          "unit": "money",
                          "currency": "usd"
                        },
                        {
                          "key": "models",
                          "label": "Models"
                        },
                        {
                          "key": "escalations",
                          "label": "Escalations",
                          "unit": "count"
                        },
                        {
                          "key": "results",
                          "label": "Results"
                        },
                        {
                          "key": "per_result",
                          "label": "Per result"
                        }
                      ],
                      "rows": [
                        {
                          "calls": 1500,
                          "escalations": 12,
                          "models": "haiku 80%, opus 20%",
                          "per_result": "$0.0034",
                          "results": "page_read 1200",
                          "usd": 412,
                          "work": "page_read"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/urls": {
      "get": {
        "operationId": "urls_get",
        "summary": "Lists every URL a site serves at its current data version, with each page's type, lastmod and indexability, and the site's redirects and gone paths.",
        "description": "Lists every URL a site serves at its current data version, with each page's type, lastmod and indexability, and the site's redirects and gone paths. The publishing engine calls it first on each pull; the other three ops then name the data version it gives. Access: a key with publisher:read or publisher:write. Price: free.",
        "parameters": [
          {
            "name": "site",
            "in": "query",
            "description": "The site's id, as the engine's source names it.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The site's id, as the engine's source names it."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data_version": {
                      "type": "string",
                      "description": "The version of the site's data every later call names as v; it moves whenever any page's bytes may change."
                    },
                    "redirects": {
                      "type": "array",
                      "description": "The site's redirects and gone paths, none of which is in urls.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "string",
                            "description": "The path that moved or is gone; ending in /* (as /img/*), every path under the prefix before the * that no URL or exact redirect takes, the longest prefix first."
                          },
                          "status": {
                            "type": "integer",
                            "description": "301 or 308 for a move, 410 for a gone path or prefix."
                          },
                          "to": {
                            "type": "string",
                            "description": "Where it moved: a path of the site, or an https URL of at most 2000 characters; left out for a 410. For a prefix rule, ending in /* to append the rest of the path after the prefix (as /media/*), else every path goes to the one target."
                          }
                        },
                        "required": [
                          "from",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "site": {
                      "type": "string",
                      "description": "The site's id, as asked for."
                    },
                    "template": {
                      "type": "string",
                      "description": "The commit of the product's templates the pages are made with, when it versions them."
                    },
                    "urls": {
                      "type": "array",
                      "description": "Every path the site serves, each once.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "indexable": {
                            "type": "boolean",
                            "description": "Whether search engines may index the page; false adds noindex."
                          },
                          "lastmod": {
                            "type": "string",
                            "description": "When the page last changed, as the sitemap shows it; it moves exactly when the page's bytes do."
                          },
                          "page_type": {
                            "type": "string",
                            "description": "The design kit's page type the page's JSON is in; left out for a twin, a file or a page the kit does not build."
                          },
                          "path": {
                            "type": "string",
                            "description": "The path from /, with no query or fragment, at most 2048 bytes."
                          },
                          "type": {
                            "type": "string",
                            "description": "The route's name, '\u003croute\u003e twin' for a page's Markdown twin, or icon, stylesheet, indexnow-key, card, asset or build-asset."
                          }
                        },
                        "required": [
                          "path",
                          "type",
                          "lastmod",
                          "indexable"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "site",
                    "data_version",
                    "urls"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "List a site's URLs",
                    "value": {
                      "site": "guides",
                      "data_version": "1187",
                      "urls": [
                        {
                          "path": "/pricing",
                          "type": "page",
                          "page_type": "vendor-profile",
                          "lastmod": "2026-11-02",
                          "indexable": true
                        }
                      ],
                      "redirects": [
                        {
                          "from": "/old",
                          "to": "/pricing",
                          "status": 301
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "urls",
        "summary": "Lists every URL a site serves at its current data version, with each page's type, lastmod and indexability, and the site's redirects and gone paths.",
        "description": "Lists every URL a site serves at its current data version, with each page's type, lastmod and indexability, and the site's redirects and gone paths. The publishing engine calls it first on each pull; the other three ops then name the data version it gives. Access: a key with publisher:read or publisher:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "site": {
                    "type": "string",
                    "description": "The site's id, as the engine's source names it."
                  }
                },
                "required": [
                  "site"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "List a site's URLs",
                  "value": {
                    "site": "guides"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data_version": {
                      "type": "string",
                      "description": "The version of the site's data every later call names as v; it moves whenever any page's bytes may change."
                    },
                    "redirects": {
                      "type": "array",
                      "description": "The site's redirects and gone paths, none of which is in urls.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "string",
                            "description": "The path that moved or is gone; ending in /* (as /img/*), every path under the prefix before the * that no URL or exact redirect takes, the longest prefix first."
                          },
                          "status": {
                            "type": "integer",
                            "description": "301 or 308 for a move, 410 for a gone path or prefix."
                          },
                          "to": {
                            "type": "string",
                            "description": "Where it moved: a path of the site, or an https URL of at most 2000 characters; left out for a 410. For a prefix rule, ending in /* to append the rest of the path after the prefix (as /media/*), else every path goes to the one target."
                          }
                        },
                        "required": [
                          "from",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "site": {
                      "type": "string",
                      "description": "The site's id, as asked for."
                    },
                    "template": {
                      "type": "string",
                      "description": "The commit of the product's templates the pages are made with, when it versions them."
                    },
                    "urls": {
                      "type": "array",
                      "description": "Every path the site serves, each once.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "indexable": {
                            "type": "boolean",
                            "description": "Whether search engines may index the page; false adds noindex."
                          },
                          "lastmod": {
                            "type": "string",
                            "description": "When the page last changed, as the sitemap shows it; it moves exactly when the page's bytes do."
                          },
                          "page_type": {
                            "type": "string",
                            "description": "The design kit's page type the page's JSON is in; left out for a twin, a file or a page the kit does not build."
                          },
                          "path": {
                            "type": "string",
                            "description": "The path from /, with no query or fragment, at most 2048 bytes."
                          },
                          "type": {
                            "type": "string",
                            "description": "The route's name, '\u003croute\u003e twin' for a page's Markdown twin, or icon, stylesheet, indexnow-key, card, asset or build-asset."
                          }
                        },
                        "required": [
                          "path",
                          "type",
                          "lastmod",
                          "indexable"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "site",
                    "data_version",
                    "urls"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "List a site's URLs",
                    "value": {
                      "site": "guides",
                      "data_version": "1187",
                      "urls": [
                        {
                          "path": "/pricing",
                          "type": "page",
                          "page_type": "vendor-profile",
                          "lastmod": "2026-11-02",
                          "indexable": true
                        }
                      ],
                      "redirects": [
                        {
                          "from": "/old",
                          "to": "/pricing",
                          "status": 301
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/usage_summary": {
      "get": {
        "operationId": "usage_summary_get",
        "summary": "This door's usage over UTC days, from and to included: calls, errors, units, money spent and model tokens, per key and op, and the total.",
        "description": "This door's usage over UTC days, from and to included: calls, errors, units, money spent and model tokens, per key and op, and the total. Use it to see who calls what and what it costs; the calls of the last ten seconds may not be counted yet. Access: a key with usage:read or usage:write. Price: free.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "the first UTC day, YYYY-MM-DD",
            "required": true,
            "schema": {
              "type": "string",
              "description": "the first UTC day, YYYY-MM-DD"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "the last UTC day, YYYY-MM-DD, included; at most 366 days after from",
            "required": true,
            "schema": {
              "type": "string",
              "description": "the last UTC day, YYYY-MM-DD, included; at most 366 days after from"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "description": "the currency of spent_cents, ISO 4217 in lower case"
                    },
                    "department": {
                      "type": "string",
                      "description": "the department whose door this is"
                    },
                    "from": {
                      "type": "string",
                      "description": "the first UTC day counted, YYYY-MM-DD"
                    },
                    "rows": {
                      "type": "array",
                      "description": "one row per key, account and op that was called; empty: no calls",
                      "items": {
                        "type": "object",
                        "properties": {
                          "account": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "the key's account; null: a staff key"
                          },
                          "calls": {
                            "type": "integer",
                            "description": "every call, its errors too"
                          },
                          "client_errors": {
                            "type": "integer",
                            "description": "calls answered 4xx (an isError result in MCP), but for a 499: closed by the caller"
                          },
                          "key": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "the key's id; 0: the root key or the owner; null: no key"
                          },
                          "op": {
                            "type": "string",
                            "description": "the op called"
                          },
                          "server_errors": {
                            "type": "integer",
                            "description": "calls answered 5xx"
                          },
                          "spent_cents": {
                            "type": "integer",
                            "description": "taken from accounts' balances, in the currency's smallest unit"
                          },
                          "tokens_in": {
                            "type": "integer",
                            "description": "model tokens read, cached ones included"
                          },
                          "tokens_out": {
                            "type": "integer",
                            "description": "model tokens written"
                          },
                          "units": {
                            "type": "integer",
                            "description": "what the ops counted of their work, such as pages read"
                          }
                        },
                        "required": [
                          "op",
                          "calls",
                          "client_errors",
                          "server_errors",
                          "units",
                          "spent_cents",
                          "tokens_in",
                          "tokens_out"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "to": {
                      "type": "string",
                      "description": "the last UTC day counted, YYYY-MM-DD, included"
                    },
                    "total": {
                      "type": "object",
                      "description": "the sums of every row",
                      "properties": {
                        "calls": {
                          "type": "integer",
                          "description": "every call, its errors too"
                        },
                        "client_errors": {
                          "type": "integer",
                          "description": "calls answered 4xx (an isError result in MCP), but for a 499: closed by the caller"
                        },
                        "server_errors": {
                          "type": "integer",
                          "description": "calls answered 5xx"
                        },
                        "spent_cents": {
                          "type": "integer",
                          "description": "taken from accounts' balances, in the currency's smallest unit"
                        },
                        "tokens_in": {
                          "type": "integer",
                          "description": "model tokens read, cached ones included"
                        },
                        "tokens_out": {
                          "type": "integer",
                          "description": "model tokens written"
                        },
                        "units": {
                          "type": "integer",
                          "description": "what the ops counted of their work, such as pages read"
                        }
                      },
                      "required": [
                        "calls",
                        "client_errors",
                        "server_errors",
                        "units",
                        "spent_cents",
                        "tokens_in",
                        "tokens_out"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "department",
                    "from",
                    "to",
                    "currency",
                    "rows",
                    "total"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "One day's usage",
                    "value": {
                      "department": "sales",
                      "from": "2026-11-02",
                      "to": "2026-11-02",
                      "currency": "usd",
                      "rows": [
                        {
                          "key": 3,
                          "account": null,
                          "op": "deal_get",
                          "calls": 120,
                          "client_errors": 4,
                          "server_errors": 0,
                          "units": 310,
                          "spent_cents": 0,
                          "tokens_in": 52000,
                          "tokens_out": 3100
                        }
                      ],
                      "total": {
                        "calls": 120,
                        "client_errors": 4,
                        "server_errors": 0,
                        "units": 310,
                        "spent_cents": 0,
                        "tokens_in": 52000,
                        "tokens_out": 3100
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "usage_summary",
        "summary": "This door's usage over UTC days, from and to included: calls, errors, units, money spent and model tokens, per key and op, and the total.",
        "description": "This door's usage over UTC days, from and to included: calls, errors, units, money spent and model tokens, per key and op, and the total. Use it to see who calls what and what it costs; the calls of the last ten seconds may not be counted yet. Access: a key with usage:read or usage:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "the first UTC day, YYYY-MM-DD"
                  },
                  "to": {
                    "type": "string",
                    "description": "the last UTC day, YYYY-MM-DD, included; at most 366 days after from"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "One day's usage",
                  "value": {
                    "from": "2026-11-02",
                    "to": "2026-11-02"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "description": "the currency of spent_cents, ISO 4217 in lower case"
                    },
                    "department": {
                      "type": "string",
                      "description": "the department whose door this is"
                    },
                    "from": {
                      "type": "string",
                      "description": "the first UTC day counted, YYYY-MM-DD"
                    },
                    "rows": {
                      "type": "array",
                      "description": "one row per key, account and op that was called; empty: no calls",
                      "items": {
                        "type": "object",
                        "properties": {
                          "account": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "the key's account; null: a staff key"
                          },
                          "calls": {
                            "type": "integer",
                            "description": "every call, its errors too"
                          },
                          "client_errors": {
                            "type": "integer",
                            "description": "calls answered 4xx (an isError result in MCP), but for a 499: closed by the caller"
                          },
                          "key": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "the key's id; 0: the root key or the owner; null: no key"
                          },
                          "op": {
                            "type": "string",
                            "description": "the op called"
                          },
                          "server_errors": {
                            "type": "integer",
                            "description": "calls answered 5xx"
                          },
                          "spent_cents": {
                            "type": "integer",
                            "description": "taken from accounts' balances, in the currency's smallest unit"
                          },
                          "tokens_in": {
                            "type": "integer",
                            "description": "model tokens read, cached ones included"
                          },
                          "tokens_out": {
                            "type": "integer",
                            "description": "model tokens written"
                          },
                          "units": {
                            "type": "integer",
                            "description": "what the ops counted of their work, such as pages read"
                          }
                        },
                        "required": [
                          "op",
                          "calls",
                          "client_errors",
                          "server_errors",
                          "units",
                          "spent_cents",
                          "tokens_in",
                          "tokens_out"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "to": {
                      "type": "string",
                      "description": "the last UTC day counted, YYYY-MM-DD, included"
                    },
                    "total": {
                      "type": "object",
                      "description": "the sums of every row",
                      "properties": {
                        "calls": {
                          "type": "integer",
                          "description": "every call, its errors too"
                        },
                        "client_errors": {
                          "type": "integer",
                          "description": "calls answered 4xx (an isError result in MCP), but for a 499: closed by the caller"
                        },
                        "server_errors": {
                          "type": "integer",
                          "description": "calls answered 5xx"
                        },
                        "spent_cents": {
                          "type": "integer",
                          "description": "taken from accounts' balances, in the currency's smallest unit"
                        },
                        "tokens_in": {
                          "type": "integer",
                          "description": "model tokens read, cached ones included"
                        },
                        "tokens_out": {
                          "type": "integer",
                          "description": "model tokens written"
                        },
                        "units": {
                          "type": "integer",
                          "description": "what the ops counted of their work, such as pages read"
                        }
                      },
                      "required": [
                        "calls",
                        "client_errors",
                        "server_errors",
                        "units",
                        "spent_cents",
                        "tokens_in",
                        "tokens_out"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "department",
                    "from",
                    "to",
                    "currency",
                    "rows",
                    "total"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "One day's usage",
                    "value": {
                      "department": "sales",
                      "from": "2026-11-02",
                      "to": "2026-11-02",
                      "currency": "usd",
                      "rows": [
                        {
                          "key": 3,
                          "account": null,
                          "op": "deal_get",
                          "calls": 120,
                          "client_errors": 4,
                          "server_errors": 0,
                          "units": 310,
                          "spent_cents": 0,
                          "tokens_in": 52000,
                          "tokens_out": 3100
                        }
                      ],
                      "total": {
                        "calls": 120,
                        "client_errors": 4,
                        "server_errors": 0,
                        "units": 310,
                        "spent_cents": 0,
                        "tokens_in": 52000,
                        "tokens_out": 3100
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/views": {
      "get": {
        "operationId": "views_get",
        "summary": "The views this door shows on the company's dashboard: each one's title, kind and the read op that answers it, in the order they are declared.",
        "description": "The views this door shows on the company's dashboard: each one's title, kind and the read op that answers it, in the order they are declared. Use it to draw the door's dashboard; a key with dashboard:read may call every view's op, and dashboard:write the decide op of an actions view. Access: a key with dashboard:read or dashboard:write. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "views": {
                      "type": "array",
                      "description": "the door's views, in the order their ops are declared",
                      "items": {
                        "type": "object",
                        "properties": {
                          "about": {
                            "type": "string",
                            "description": "what it shows: its op's text"
                          },
                          "decide": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "description": "for actions: where a choice is sent",
                            "properties": {
                              "choices": {
                                "type": "array",
                                "description": "the choices offered on each item",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "label": {
                                      "type": "string",
                                      "description": "its button's label"
                                    },
                                    "needs_text": {
                                      "type": "boolean",
                                      "description": "the owner writes a text with it"
                                    },
                                    "value": {
                                      "type": "string",
                                      "description": "what the decision sends as its choice"
                                    }
                                  },
                                  "required": [
                                    "value",
                                    "label"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "op": {
                                "type": "string",
                                "description": "the write op a choice is sent to, as a Decision: {id, version, choice, text, request, by}"
                              }
                            },
                            "required": [
                              "op",
                              "choices"
                            ],
                            "additionalProperties": false
                          },
                          "id": {
                            "type": "string",
                            "description": "the view's id, its op's name"
                          },
                          "kind": {
                            "type": "string",
                            "description": "figures, table, series, list, actions or mail"
                          },
                          "op": {
                            "type": "string",
                            "description": "the read op that answers it, called with {} or a cursor"
                          },
                          "open": {
                            "type": "string",
                            "description": "for mail: the read op that answers one thread, called with {id: \u003cthread\u003e}"
                          },
                          "place": {
                            "type": "string",
                            "description": "the dashboard's place it is drawn in, such as mail; none: the door's own page"
                          },
                          "refresh_s": {
                            "type": "integer",
                            "description": "how often to read it again, in seconds; none: when opened"
                          },
                          "title": {
                            "type": "string",
                            "description": "its title on the dashboard"
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "about",
                          "kind",
                          "op"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "views"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Every view of a door",
                    "value": {
                      "views": [
                        {
                          "id": "notes_today",
                          "title": "Notes",
                          "about": "Counts today's notes and yesterday's. Use it to see whether notes keep coming.",
                          "kind": "figures",
                          "op": "notes_today",
                          "refresh_s": 300
                        },
                        {
                          "id": "drafts",
                          "title": "Drafts to approve",
                          "about": "The drafts waiting for the owner. Use it to approve or reject them.",
                          "kind": "actions",
                          "op": "drafts",
                          "decide": {
                            "op": "draft_decide",
                            "choices": [
                              {
                                "value": "publish",
                                "label": "Publish"
                              },
                              {
                                "value": "reject",
                                "label": "Reject",
                                "needs_text": true
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "views",
        "summary": "The views this door shows on the company's dashboard: each one's title, kind and the read op that answers it, in the order they are declared.",
        "description": "The views this door shows on the company's dashboard: each one's title, kind and the read op that answers it, in the order they are declared. Use it to draw the door's dashboard; a key with dashboard:read may call every view's op, and dashboard:write the decide op of an actions view. Access: a key with dashboard:read or dashboard:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "Every view of a door",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "views": {
                      "type": "array",
                      "description": "the door's views, in the order their ops are declared",
                      "items": {
                        "type": "object",
                        "properties": {
                          "about": {
                            "type": "string",
                            "description": "what it shows: its op's text"
                          },
                          "decide": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "description": "for actions: where a choice is sent",
                            "properties": {
                              "choices": {
                                "type": "array",
                                "description": "the choices offered on each item",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "label": {
                                      "type": "string",
                                      "description": "its button's label"
                                    },
                                    "needs_text": {
                                      "type": "boolean",
                                      "description": "the owner writes a text with it"
                                    },
                                    "value": {
                                      "type": "string",
                                      "description": "what the decision sends as its choice"
                                    }
                                  },
                                  "required": [
                                    "value",
                                    "label"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "op": {
                                "type": "string",
                                "description": "the write op a choice is sent to, as a Decision: {id, version, choice, text, request, by}"
                              }
                            },
                            "required": [
                              "op",
                              "choices"
                            ],
                            "additionalProperties": false
                          },
                          "id": {
                            "type": "string",
                            "description": "the view's id, its op's name"
                          },
                          "kind": {
                            "type": "string",
                            "description": "figures, table, series, list, actions or mail"
                          },
                          "op": {
                            "type": "string",
                            "description": "the read op that answers it, called with {} or a cursor"
                          },
                          "open": {
                            "type": "string",
                            "description": "for mail: the read op that answers one thread, called with {id: \u003cthread\u003e}"
                          },
                          "place": {
                            "type": "string",
                            "description": "the dashboard's place it is drawn in, such as mail; none: the door's own page"
                          },
                          "refresh_s": {
                            "type": "integer",
                            "description": "how often to read it again, in seconds; none: when opened"
                          },
                          "title": {
                            "type": "string",
                            "description": "its title on the dashboard"
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "about",
                          "kind",
                          "op"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "views"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "Every view of a door",
                    "value": {
                      "views": [
                        {
                          "id": "notes_today",
                          "title": "Notes",
                          "about": "Counts today's notes and yesterday's. Use it to see whether notes keep coming.",
                          "kind": "figures",
                          "op": "notes_today",
                          "refresh_s": 300
                        },
                        {
                          "id": "drafts",
                          "title": "Drafts to approve",
                          "about": "The drafts waiting for the owner. Use it to approve or reject them.",
                          "kind": "actions",
                          "op": "drafts",
                          "decide": {
                            "op": "draft_decide",
                            "choices": [
                              {
                                "value": "publish",
                                "label": "Publish"
                              },
                              {
                                "value": "reject",
                                "label": "Reject",
                                "needs_text": true
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    },
    "/api/whoami": {
      "get": {
        "operationId": "whoami_get",
        "summary": "Use when you need your account: its claimed domains and its orders.",
        "description": "Use when you need your account: its claimed domains and its orders. Needs your API key, and answers the account that key belongs to. Access: a key with account:read or account:write. Price: free.",
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "description": "your account, its claimed domains and its orders",
                      "properties": {
                        "claims": {
                          "type": "array",
                          "description": "its domain claims, each with its status; none yet",
                          "items": {}
                        },
                        "orders": {
                          "type": "array",
                          "description": "its orders, newest first; none yet",
                          "items": {}
                        },
                        "user": {
                          "type": "object",
                          "description": "the calling account",
                          "properties": {
                            "created_at": {
                              "type": "string",
                              "format": "date-time",
                              "description": "when the account was made"
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "its email address, lower-cased; null for an agent's account no person claimed"
                            },
                            "emailVerified": {
                              "type": "boolean",
                              "description": "whether the email address is proven"
                            },
                            "has_password": {
                              "type": "boolean",
                              "description": "always false: sign-in is by a mailed code or a passkey"
                            },
                            "id": {
                              "type": "string",
                              "description": "the account's id"
                            }
                          },
                          "required": [
                            "id",
                            "emailVerified",
                            "created_at",
                            "has_password"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "user",
                        "claims",
                        "orders"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The calling key's account",
                    "value": {
                      "result": {
                        "user": {
                          "id": "42",
                          "email": "ada@example.com",
                          "emailVerified": false,
                          "created_at": "2026-11-02T09:30:00Z",
                          "has_password": false
                        },
                        "claims": [],
                        "orders": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      },
      "post": {
        "operationId": "whoami",
        "summary": "Use when you need your account: its claimed domains and its orders.",
        "description": "Use when you need your account: its claimed domains and its orders. Needs your API key, and answers the account that key belongs to. Access: a key with account:read or account:write. Price: free.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              },
              "examples": {
                "example1": {
                  "summary": "The calling key's account",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "the op's output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "description": "your account, its claimed domains and its orders",
                      "properties": {
                        "claims": {
                          "type": "array",
                          "description": "its domain claims, each with its status; none yet",
                          "items": {}
                        },
                        "orders": {
                          "type": "array",
                          "description": "its orders, newest first; none yet",
                          "items": {}
                        },
                        "user": {
                          "type": "object",
                          "description": "the calling account",
                          "properties": {
                            "created_at": {
                              "type": "string",
                              "format": "date-time",
                              "description": "when the account was made"
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "its email address, lower-cased; null for an agent's account no person claimed"
                            },
                            "emailVerified": {
                              "type": "boolean",
                              "description": "whether the email address is proven"
                            },
                            "has_password": {
                              "type": "boolean",
                              "description": "always false: sign-in is by a mailed code or a passkey"
                            },
                            "id": {
                              "type": "string",
                              "description": "the account's id"
                            }
                          },
                          "required": [
                            "id",
                            "emailVerified",
                            "created_at",
                            "has_password"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "user",
                        "claims",
                        "orders"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "result"
                  ],
                  "additionalProperties": false
                },
                "examples": {
                  "example1": {
                    "summary": "The calling key's account",
                    "value": {
                      "result": {
                        "user": {
                          "id": "42",
                          "email": "ada@example.com",
                          "emailVerified": false,
                          "created_at": "2026-11-02T09:30:00Z",
                          "has_password": false
                        },
                        "claims": [],
                        "orders": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_input`: correct the input as the message says, then call again; the op's input schema names each field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_input": {
                    "summary": "invalid_input",
                    "value": {
                      "error": "invalid_input",
                      "message": "invalid input",
                      "fix": "correct the input as the message says, then call again; the op's input schema names each field",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unauthorized": {
                    "summary": "unauthorized",
                    "value": {
                      "error": "unauthorized",
                      "message": "unauthorized",
                      "fix": "send a valid key as Authorization: Bearer \u003ckey\u003e or X-Api-Key: \u003ckey\u003e",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`forbidden`: ask the key's issuer for a key whose scopes and sites allow this",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "forbidden": {
                    "summary": "forbidden",
                    "value": {
                      "error": "forbidden",
                      "message": "forbidden",
                      "fix": "ask the key's issuer for a key whose scopes and sites allow this",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: send a body of at most 1048576 bytes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "summary": "too_large",
                    "value": {
                      "error": "too_large",
                      "message": "too large",
                      "fix": "send a body of at most 1048576 bytes",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate_limited",
                    "value": {
                      "error": "rate_limited",
                      "message": "rate limited",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`internal`: try once more; if it fails again, report the request id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal": {
                    "summary": "internal",
                    "value": {
                      "error": "internal",
                      "message": "internal",
                      "fix": "try once more; if it fails again, report the request id",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`busy`: wait the seconds of Retry-After, then call again",
            "headers": {
              "Retry-After": {
                "description": "the seconds to wait before calling again",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "busy": {
                    "summary": "busy",
                    "value": {
                      "error": "busy",
                      "message": "busy",
                      "fix": "wait the seconds of Retry-After, then call again",
                      "request": "r_0123456789abcdef"
                    }
                  }
                }
              }
            }
          }
        },
        "x-price-cents": 0
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "the error's code, stable: what a program tells errors apart by"
          },
          "fix": {
            "type": "string",
            "description": "what to do next: follow it, then call again"
          },
          "message": {
            "type": "string",
            "description": "what went wrong, for a person or a model"
          },
          "request": {
            "type": "string",
            "description": "the request's id, under which the door logged the call"
          }
        },
        "required": [
          "error",
          "message",
          "fix",
          "request"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "apiKey": {
        "description": "the same key, sent as X-Api-Key: \u003ckey\u003e instead",
        "in": "header",
        "name": "X-Api-Key",
        "type": "apiKey"
      },
      "bearer": {
        "description": "a key the department's owner issues, sent as Authorization: Bearer \u003ckey\u003e",
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}