{
  "openapi": "3.1.0",
  "info": {
    "title": "Unmuddle API",
    "version": "0.1.0",
    "description": "Voice interpretation with versioned profiles, scoped business records, evidence and clarification. Browser owner operations use a passkey session. Application operations use a scoped project key."
  },
  "security": [
    {
      "projectKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "projectKey": {
        "type": "http",
        "scheme": "bearer"
      },
      "ownerSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "__Host-nsi-session"
      },
      "csrf": {
        "type": "apiKey",
        "in": "header",
        "name": "x-csrf-token"
      }
    },
    "schemas": {
      "Source": {
        "type": "object",
        "required": [
          "id",
          "role",
          "media_type"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "role": {
            "enum": [
              "input",
              "reference"
            ]
          },
          "media_type": {
            "type": "string"
          },
          "asset": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "data": {},
          "language": {
            "type": "string"
          }
        }
      },
      "RunInput": {
        "type": "object",
        "required": [
          "profile",
          "sources"
        ],
        "properties": {
          "profile": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            },
            "minItems": 1,
            "maxItems": 8
          },
          "context": {
            "type": "object",
            "properties": {
              "scope_ref": {
                "type": "string"
              },
              "bindings": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "as_of": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "request_id"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "paths": {
    "/v1/capabilities": {
      "get": {
        "summary": "Discover supported media and runtime",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Discover supported media and runtime"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/v1/profile-templates": {
      "get": {
        "summary": "List starter profiles",
        "parameters": [],
        "responses": {
          "200": {
            "description": "List starter profiles"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/v1/profiles": {
      "get": {
        "summary": "List private profiles",
        "parameters": [],
        "responses": {
          "200": {
            "description": "List private profiles"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Publish a private profile version",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Publish a private profile version"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v1/assets": {
      "post": {
        "summary": "Upload audio",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Upload audio"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "audio/ogg": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      }
    },
    "/v1/assets/{id}": {
      "get": {
        "summary": "Read asset metadata",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read asset metadata"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete an asset",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Delete an asset"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/interpretations": {
      "post": {
        "summary": "Submit an interpretation",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Submit an interpretation"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunInput"
              }
            }
          }
        }
      }
    },
    "/v1/interpretations/{id}": {
      "get": {
        "summary": "Read the current revision",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read the current revision"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Revoke all revisions and schedule erasure",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Revoke all revisions and schedule erasure"
          }
        }
      }
    },
    "/v1/interpretations/{id}/revisions": {
      "post": {
        "summary": "Append evidence",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Append evidence"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v1/interpretations/{id}/revisions/{revision}": {
      "get": {
        "summary": "Read one revision",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "revision",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read one revision"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/context-bindings": {
      "post": {
        "summary": "Register a customer context endpoint",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Register a customer context endpoint"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v1/context-bindings/{id}/verify": {
      "post": {
        "summary": "Verify endpoint ownership",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verify endpoint ownership"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v1/datasets": {
      "post": {
        "summary": "Import a project-private fixture suite",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Import a project-private fixture suite"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v1/evaluations": {
      "post": {
        "summary": "Queue a private profile comparison",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "202": {
            "description": "Accepted evaluation"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "dataset",
                  "candidates"
                ],
                "properties": {
                  "dataset": {
                    "type": "string"
                  },
                  "candidates": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 3,
                    "items": {
                      "type": "string"
                    }
                  },
                  "split": {
                    "enum": [
                      "development",
                      "holdout"
                    ]
                  },
                  "budget_micro_usd": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Required for hosted inference. Covers all selected case and candidate pairs."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/evaluations/{id}": {
      "get": {
        "summary": "Read case grades and paired outcome changes by language relative to the first candidate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read case grades and paired outcome changes by language relative to the first candidate"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/connections/openrouter/key": {
      "put": {
        "summary": "Set customer OpenRouter key",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Set customer OpenRouter key"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/v1/connections/openrouter": {
      "delete": {
        "summary": "Disconnect OpenRouter",
        "parameters": [],
        "responses": {
          "204": {
            "description": "Disconnect OpenRouter"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ]
      },
      "get": {
        "summary": "Read connection status for this project",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Read connection status for this project",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connected": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "connected"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "ownerSession": []
          }
        ]
      }
    },
    "/v1/usage": {
      "get": {
        "summary": "Read the project usage ledger",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Read the project usage ledger"
          },
          "default": {
            "description": "Structured error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/connections/openrouter/start": {
      "post": {
        "summary": "Start browser-bound OpenRouter authorization",
        "responses": {
          "200": {
            "description": "Customer authorization URL and state cookie"
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/v1/profiles/{domain}/{name}/promotions": {
      "post": {
        "summary": "Move production alias after held-out evaluation",
        "parameters": [
          {
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "evaluation",
                  "expected_current",
                  "version"
                ],
                "properties": {
                  "evaluation": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer"
                  },
                  "expected_current": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "gate": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Alias change receipt"
          },
          "409": {
            "description": "Alias or quality gate conflict"
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/v1/webhooks": {
      "get": {
        "summary": "List project subscriptions",
        "parameters": [],
        "responses": {
          "200": {
            "description": "List project subscriptions"
          }
        }
      },
      "post": {
        "summary": "Create a subscription and receive its signing secret once",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Create a subscription and receive its signing secret once"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "events"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "events": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/verify": {
      "post": {
        "summary": "Prove ownership of the webhook endpoint",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Prove ownership of the webhook endpoint"
          }
        }
      }
    },
    "/v1/webhooks/{id}": {
      "delete": {
        "summary": "Disable the subscription",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Disable the subscription"
          }
        }
      }
    },
    "/v1/webhook-deliveries": {
      "get": {
        "summary": "Inspect delivery attempts",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Inspect delivery attempts"
          }
        }
      }
    },
    "/v1/webhook-deliveries/{id}/redeliver": {
      "post": {
        "summary": "Redeliver the same event ID",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Redeliver the same event ID"
          }
        }
      }
    },
    "/auth/session": {
      "get": {
        "summary": "Read signed-in project, role and CSRF token",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Read signed-in project, role and CSRF token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "project": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string"
                    },
                    "csrf": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ownerSession": []
          }
        ]
      }
    },
    "/auth/project": {
      "post": {
        "summary": "Switch to a project the signed-in member owns or belongs to",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Switch to a project the signed-in member owns or belongs to"
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project": {
                    "type": "string"
                  }
                },
                "required": [
                  "project"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/projects": {
      "post": {
        "summary": "Create a project for the freshly verified user",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Create a project for the freshly verified user"
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys": {
      "post": {
        "summary": "Issue a scoped application key with a freshly verified owner session",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Issue a scoped application key with a freshly verified owner session",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scopes"
                ],
                "properties": {
                  "scopes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys/{id}": {
      "delete": {
        "summary": "Revoke an application key",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Revoke an application key"
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/v1/members": {
      "get": {
        "summary": "List project members",
        "parameters": [],
        "responses": {
          "200": {
            "description": "List project members",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ownerSession": []
          }
        ]
      }
    },
    "/v1/member-invites": {
      "post": {
        "summary": "Create a one-use private member invite",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Create a one-use private member invite",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invite_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "developer",
                      "viewer"
                    ]
                  }
                },
                "required": [
                  "label",
                  "role"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/members/{id}": {
      "patch": {
        "summary": "Change a project member role",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Change a project member role"
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string",
                    "enum": [
                      "developer",
                      "viewer"
                    ]
                  }
                },
                "required": [
                  "role"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Remove a member",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Remove a member"
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/v1/profiles/{domain}/{name}/versions/{version}": {
      "get": {
        "summary": "Read a private profile version",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Read a private profile version"
          }
        }
      }
    },
    "/v1/datasets/{id}": {
      "delete": {
        "summary": "Revoke a private dataset and schedule its erasure",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Revoke a private dataset and schedule its erasure"
          }
        },
        "security": [
          {
            "ownerSession": [],
            "csrf": []
          }
        ]
      }
    },
    "/v1/evaluations/{id}/cancel": {
      "post": {
        "summary": "Cancel pending evaluation work",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Cancel pending evaluation work",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/usage.csv": {
      "get": {
        "summary": "Export usage for one UTC month",
        "parameters": [
          {
            "name": "month",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^20[0-9]{2}-(0[1-9]|1[0-2])$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Export usage for one UTC month",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/demo/cases": {
      "get": {
        "summary": "Read the scripted multilingual scenarios and context snapshots",
        "security": [],
        "responses": {
          "200": {
            "description": "Public example data. No inference charge.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "mode",
                    "scenarios",
                    "development_dataset"
                  ],
                  "properties": {
                    "scenarios": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/demo/quality": {
      "get": {
        "summary": "Read deterministic resolver scores by profile and case",
        "security": [],
        "responses": {
          "200": {
            "description": "Public example data. No inference charge.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "protocol",
                    "input",
                    "baseline",
                    "held_out_audio_cases",
                    "scenarios"
                  ],
                  "properties": {
                    "scenarios": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
