{
  "openapi": "3.1.0",
  "info": {
    "title": "Dauntless Agent Directory",
    "version": "0.1.0",
    "description": "Public static read-only records. No account, API key or payment is required to read the directory. No search, submission or payment operation is implemented."
  },
  "paths": {
    "/catalog.json": {
      "get": {
        "operationId": "getCatalog",
        "summary": "Retrieve all service records",
        "responses": {
          "200": {
            "description": "Catalog record and scoped evidence",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "services"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Service"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/services/{id}.json": {
      "get": {
        "operationId": "getService",
        "summary": "Retrieve a service record",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "crossref",
                "osv",
                "httpbin",
                "brave-search",
                "exa",
                "hookdeck-console",
                "ntfy",
                "open-meteo"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Catalog record and scoped evidence",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Service"
                }
              }
            }
          },
          "404": {
            "description": "Unknown service ID"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Service": {
        "type": "object",
        "required": [
          "id",
          "name",
          "auth",
          "auth_basis",
          "docs",
          "evidence",
          "constraints"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "auth": {
            "type": "string",
            "enum": [
              "none",
              "api_key",
              "unknown"
            ]
          },
          "auth_basis": {
            "type": "string"
          },
          "docs": {
            "type": "string",
            "format": "uri"
          },
          "evidence": {
            "type": "object",
            "description": "Documentation review or scoped observation"
          },
          "constraints": {
            "type": "object",
            "description": "Null means unknown, not zero or unlimited."
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://agents.dauntless.systems"
    }
  ]
}
