{
  "openapi": "3.1.0",
  "info": {
    "title": "AffixIO Verification API",
    "version": "1.8.0",
    "description": "Public /v1 and /api surface of the AffixIO verification API (ML-DSA-65 signed yes/no results, Noir/Barretenberg circuits, Merkle audit, spent registry, gates, Agent Trust). Generated from the live MCP endpoint catalogue and the Postman collection at https://api.affix-io.com/openapi.postman.json. Account, key, OAuth, Hub and webhook administration are intentionally omitted. A successful verify spends the proof digest; presenting it again returns 409 double_spend_detected. Send Idempotency-Key on prove/verify to retry safely.  Public copy for discovery. Protected operations still require an authorised AffixIO credential. Account administration routes remain omitted. Additional circuit identifiers may be available through the live API beyond bundled SDK circuits.",
    "contact": {
      "name": "AffixIO",
      "url": "https://www.affix-io.com/contact/"
    }
  },
  "servers": [
    {
      "url": "https://api.affix-io.com",
      "description": "AffixIO verification API"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      },
      "Bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "CarrierIssueRequest": {
        "type": "object",
        "description": "Every presentment carrier must be bound to a proof you created with this API key. Send proof_digest (64 hex) or proof_ref (the proof_id from prove). Empty, unknown, someone else's or already spent proofs are refused.",
        "properties": {
          "proof_digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "description": "proof_digest returned by prove."
          },
          "proof_ref": {
            "type": "string",
            "description": "proof_id returned by prove (e.g. pf_...). Used when proof_digest is omitted."
          },
          "circuit_id": {
            "type": "string"
          },
          "gate_id": {
            "type": "string",
            "maxLength": 64
          },
          "label": {
            "type": "string",
            "maxLength": 64,
            "description": "Your label. Not shown on the public status page."
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2592000
          },
          "meta": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "CarrierVerifyResponse": {
        "type": "object",
        "properties": {
          "allow": {
            "type": "boolean"
          },
          "reason_code": {
            "type": "string",
            "description": "VALID when allowed. Otherwise e.g. used, expired, not_found."
          },
          "spent": {
            "type": "boolean",
            "description": "True once the bound proof has been consumed at a gate or the carrier was consumed."
          },
          "carrier": {
            "type": "object",
            "additionalProperties": true
          },
          "policy_version": {
            "type": "string"
          }
        }
      }
    }
  },
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "affix_health",
        "summary": "AffixIO API health",
        "description": "Check that the AffixIO verification API is up and get its version.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/aamva/parse": {
      "post": {
        "operationId": "affix_aamva_parse",
        "summary": "Parse AAMVA barcode",
        "description": "Parse a US driving licence AAMVA PDF417 barcode payload (POST /v1/aamva/parse).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/agent-trust/audit": {
      "post": {
        "operationId": "affix_agent_trust_audit",
        "summary": "Audit an agent credential",
        "description": "Read the recent trust events for an agent credential so Medusa can explain what happened and when (POST /v1/agent-trust/audit).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/agent-trust/authorise": {
      "post": {
        "operationId": "affix_agent_trust_authorise",
        "summary": "Authorise an agent action",
        "description": "Check whether a verified AI agent is allowed to run a specific action against a named resource, with optional attestation output (POST /v1/agent-trust/authorise).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/agent-trust/badge": {
      "post": {
        "operationId": "affix_agent_trust_badge",
        "summary": "Render an agent trust badge",
        "description": "Render an Agent Trust badge for a credential.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Badge."
          }
        }
      }
    },
    "/v1/agent-trust/enrol": {
      "post": {
        "operationId": "affix_agent_trust_enrol",
        "summary": "Enrol an agent credential",
        "description": "Create or refresh an AffixIO agent-trust credential for an AI agent before it acts for a user or merchant (POST /v1/agent-trust/enrol).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/agent-trust/verify": {
      "post": {
        "operationId": "affix_agent_trust_verify",
        "summary": "Verify an agent credential",
        "description": "Verify an AffixIO agent-trust credential and return its current scope, subject and expiry state (POST /v1/agent-trust/verify).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/aggregate/verify": {
      "post": {
        "operationId": "affix_aggregate_verify",
        "summary": "Aggregate verify",
        "description": "Run multiple verifications in one aggregate call (POST /v1/aggregate/verify).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/attestation/public-key": {
      "get": {
        "operationId": "affix_attestation_public_key",
        "summary": "Get attestation public key",
        "description": "Get the public key used to verify ML-DSA-65 attestations, for offline verification.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/carriers": {
      "get": {
        "operationId": "affix_list_carriers",
        "summary": "List carriers",
        "description": "List the supported proof carriers (token, link, nfc, wallet, otp, ble, emv, magstripe, claim).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/circuits": {
      "get": {
        "operationId": "affix_list_circuits",
        "summary": "List zk circuits",
        "description": "List the available AffixIO zero-knowledge circuits with their ids and metadata.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/circuits/{circuitId}/prove": {
      "post": {
        "operationId": "affix_circuit_prove",
        "summary": "Generate zk circuit proof",
        "description": "Generate a zero-knowledge proof for a circuit (POST /v1/circuits/:circuitId/prove). Recommended shape: credential + context; the server builds the witness. Every witness value must be a number: send numeric fields (claim_value, valid_from, valid_until, min_value, max_value) as JSON numbers, and id fields (schema_id, issuer_pubkey_hash, credential_id, context.secret, context.context_id) as strings holding a decimal or 0x hex number. Hash any text (an order id, an email) to a field element first; plain text is rejected with 400 invalid_fields and invalid_witness_fields. issuer_id may be any string. Range circuits such as ticket_age_entry take context.min_value and context.max_value, so a ticket age check works over REST: decision yes when claim_value is in range. The simple fields shape (condition_greater1..3) only applies to the yesno circuit.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "circuitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "examples": {
                "ticket_age_entry": {
                  "summary": "Ticket age check (18+), circuitId=ticket_age_entry",
                  "value": {
                    "credential": {
                      "schema_id": "0x01",
                      "issuer_id": "box-office",
                      "issuer_pubkey_hash": "0x0a",
                      "credential_id": "0x0b",
                      "claim_value": 30,
                      "valid_from": 0,
                      "valid_until": 4000000000
                    },
                    "context": {
                      "secret": "0x01",
                      "context_id": "0x02",
                      "min_value": 18,
                      "max_value": 120
                    }
                  }
                },
                "simple_yesno": {
                  "summary": "Yes/no credential, circuitId=simple_yesno",
                  "value": {
                    "credential": {
                      "schema_id": "0x01",
                      "issuer_id": "issuer",
                      "issuer_pubkey_hash": "0x0a",
                      "credential_id": "0x0b",
                      "claim_value": 1,
                      "valid_from": 0,
                      "valid_until": 4000000000
                    },
                    "context": {
                      "secret": "0x01",
                      "context_id": "0x02"
                    }
                  }
                },
                "yesno_fields": {
                  "summary": "Simple fields, circuitId=yesno only",
                  "value": {
                    "fields": {
                      "condition_greater1": true,
                      "condition_greater2": true,
                      "condition_greater3": true
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/circuits/{circuitId}/verify": {
      "post": {
        "operationId": "affix_circuit_verify",
        "summary": "Verify zk circuit proof",
        "description": "Verify a zero-knowledge proof for a circuit (POST /v1/circuits/:circuitId/verify).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "circuitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "proof": "pf_<proof_id from prove>",
                "requestAttestation": true
              }
            }
          }
        }
      }
    },
    "/v1/delegate/issue": {
      "post": {
        "operationId": "affix_delegate_issue",
        "summary": "Issue delegation",
        "description": "Issue a delegated-authority proof (POST /v1/delegate/issue).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/delegate/verify": {
      "post": {
        "operationId": "affix_delegate_verify",
        "summary": "Verify delegation",
        "description": "Verify a delegated-authority proof (POST /v1/delegate/verify).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/gate/multifactor/start": {
      "post": {
        "operationId": "affix_gate_multifactor_start",
        "summary": "Start multifactor gate",
        "description": "Start a multifactor gate session (POST /v1/gate/multifactor/start).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/gate/multifactor/{id}": {
      "get": {
        "operationId": "affix_gate_multifactor_get",
        "summary": "Get multifactor gate session",
        "description": "Fetch the current state of a multifactor gate session by id.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/gate/multifactor/{id}/complete": {
      "post": {
        "operationId": "affix_gate_multifactor_complete",
        "summary": "Complete multifactor gate",
        "description": "Complete a multifactor gate session (POST /v1/gate/multifactor/:id/complete).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/gate/multifactor/{id}/factor": {
      "post": {
        "operationId": "affix_gate_multifactor_factor",
        "summary": "Add multifactor gate factor",
        "description": "Submit a factor to a multifactor gate session (POST /v1/gate/multifactor/:id/factor).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/gate/quorum/start": {
      "post": {
        "operationId": "affix_gate_quorum_start",
        "summary": "Start quorum gate",
        "description": "Start a quorum approval gate session (POST /v1/gate/quorum/start).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/gate/quorum/{id}": {
      "get": {
        "operationId": "affix_gate_quorum_get",
        "summary": "Get quorum gate session",
        "description": "Fetch the current state of a quorum approval gate session by id.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/gate/quorum/{id}/approve": {
      "post": {
        "operationId": "affix_gate_quorum_approve",
        "summary": "Approve quorum gate",
        "description": "Approve a pending quorum gate session (POST /v1/gate/quorum/:id/approve).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/gate/verify": {
      "post": {
        "operationId": "affix_gate_verify",
        "summary": "Gate verify",
        "description": "Run the permission-circuit gate verification (POST /v1/gate/verify).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "circuit_id": "{{circuitId}}",
                "proof": "{{proof}}",
                "mode": "consume",
                "gate_id": "{{gateId}}",
                "entry_point": "main",
                "requestAttestation": true
              }
            }
          }
        }
      }
    },
    "/v1/keys": {
      "get": {
        "operationId": "affix_keys",
        "summary": "List attestation public keys",
        "description": "Published ML-DSA-65 attestation public keys (schema affix.keys.v1) used to check AffixIO signatures.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Key set."
          }
        }
      }
    },
    "/v1/merkle/audit": {
      "post": {
        "operationId": "affix_merkle_audit",
        "summary": "Audit a receipt",
        "description": "Audit a single verification receipt against the Merkle audit tree (POST /v1/merkle/audit).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "digest": "{{proofDigest}}",
                "circuit_id": "{{circuitId}}",
                "event": "verified"
              }
            }
          }
        }
      }
    },
    "/v1/merkle/audit/batch": {
      "post": {
        "operationId": "affix_merkle_audit_batch",
        "summary": "Audit receipts in batch",
        "description": "Audit multiple verification receipts against the Merkle audit tree (POST /v1/merkle/audit/batch).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "entries": [
                  {
                    "digest": "{{proofDigest}}",
                    "circuit_id": "{{circuitId}}",
                    "event": "verified"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/merkle/leaves": {
      "get": {
        "operationId": "affix_merkle_leaves",
        "summary": "List Merkle audit leaves",
        "description": "List leaves of the Merkle audit tree. Supports pagination query parameters.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/merkle/proof/{digest}": {
      "get": {
        "operationId": "affix_merkle_proof",
        "summary": "Get Merkle proof for digest",
        "description": "Get the Merkle inclusion proof for a specific receipt digest.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "digest",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/merkle/root": {
      "get": {
        "operationId": "affix_merkle_root",
        "summary": "Get Merkle audit root",
        "description": "Get the current Merkle audit-tree root for the account's proof receipts.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/merkle/verify-proof": {
      "post": {
        "operationId": "affix_merkle_verify_proof",
        "summary": "Verify a Merkle proof",
        "description": "Verify a Merkle inclusion proof against the audit root (POST /v1/merkle/verify-proof).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "digest": "{{proofDigest}}",
                "leaf_hash": "",
                "siblings": [],
                "index": 0,
                "root": ""
              }
            }
          }
        }
      }
    },
    "/v1/mrz/parse": {
      "post": {
        "operationId": "affix_mrz_parse",
        "summary": "Parse MRZ",
        "description": "Parse a machine-readable zone (passport / ID card MRZ) string (POST /v1/mrz/parse).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/proof-ref/verify": {
      "post": {
        "operationId": "affix_proof_ref_verify",
        "summary": "Verify proof reference",
        "description": "Verify a proof by its reference instead of its full payload (POST /v1/proof-ref/verify).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/spent/revoke": {
      "post": {
        "operationId": "affix_spent_revoke",
        "summary": "Revoke spent proof",
        "description": "Revoke / mark spent a proof digest (POST /v1/spent/revoke).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "digest": "{{proofDigest}}",
                "circuit_id": "{{circuitId}}",
                "gate_id": "{{gateId}}"
              }
            }
          }
        }
      }
    },
    "/v1/spent/{digest}": {
      "get": {
        "operationId": "affix_spent_status",
        "summary": "Check proof spent status",
        "description": "Check whether a proof digest has already been spent (single-use enforcement).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "parameters": [
          {
            "name": "digest",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/token/issue": {
      "post": {
        "operationId": "affix_token_issue",
        "summary": "Issue verification token",
        "description": "Issue a verification token carrier (POST /v1/token/issue).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/token/verify": {
      "post": {
        "operationId": "affix_token_verify",
        "summary": "Verify verification token",
        "description": "Verify a verification token carrier (POST /v1/token/verify).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/trial/quota": {
      "get": {
        "operationId": "affix_trial_quota",
        "summary": "Check trial quota",
        "description": "Check remaining trial quota for a registered trial.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/verify": {
      "post": {
        "operationId": "affix_verify",
        "summary": "Verify an attribute",
        "description": "Run an eligibility verification (e.g. over-18) against the AffixIO API and get a signed binary result with a proof receipt. Uses POST /v1/verify \u2014 see /v1/verify/policies for policy values.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "identifier": "demo-subject",
                "sector": "healthcare",
                "requestAttestation": true
              }
            }
          }
        }
      }
    },
    "/v1/verify/policies": {
      "get": {
        "operationId": "affix_verify_policies",
        "summary": "List verify policies",
        "description": "List the supported verification policies usable in POST /v1/verify.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/verify/reason-codes": {
      "get": {
        "operationId": "affix_verify_reason_codes",
        "summary": "List verify reason codes",
        "description": "List the reason codes the /v1/verify endpoint can return, with explanations.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/verify/receipts": {
      "get": {
        "operationId": "affix_verify_receipts",
        "summary": "List verify receipts",
        "description": "List recent verification receipts issued to the account. Supports pagination query parameters.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        }
      }
    },
    "/v1/witness/prepare": {
      "post": {
        "operationId": "affix_witness_prepare",
        "summary": "Prepare circuit witness",
        "description": "Prepare a witness for a zero-knowledge circuit proof (POST /v1/witness/prepare).",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success (JSON)."
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "409": {
            "description": "Conflict, e.g. double_spend_detected on a spent proof."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              },
              "example": {
                "circuit_id": "{{circuitId}}",
                "credential": {
                  "schema_id": "0x1",
                  "issuer_id": "issuer-demo",
                  "issuer_pubkey_hash": "0x1",
                  "credential_id": "0x1",
                  "claim_value": "approved",
                  "valid_from": 1700000000,
                  "valid_until": 1900000000
                },
                "context": {
                  "secret": "0x1",
                  "context_id": "0x1",
                  "required_claim_hash": "approved"
                }
              }
            }
          }
        }
      }
    },
    "/v1/link/issue": {
      "post": {
        "operationId": "affix_link_issue",
        "summary": "Issue a single-use QR link",
        "description": "Issue a link carrier for a QR code. The response includes https_link (https://www.affix-io.com/v/<token>), deep_link (affix://v/<token>), token, expires_at and carrier. Opening https_link shows a privacy-safe pass status page. Verifying a link does not spend it: call /v1/gate/verify with circuit_id, proof (the proof_id), gate_id and mode consume to admit once; a second consume returns 409 double_spend_detected.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Carrier issued."
          },
          "400": {
            "description": "proof_required (no proof_digest or proof_ref), unknown_proof, or invalid_request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "403": {
            "description": "proof_not_owned: the proof was created with a different API key."
          },
          "409": {
            "description": "already_used: the proof has already been consumed."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarrierIssueRequest"
              },
              "example": {
                "proof_ref": "pf_00000000-0000-0000-0000-000000000000",
                "gate_id": "main-door",
                "label": "door-1",
                "ttl_seconds": 45
              }
            }
          }
        }
      }
    },
    "/v1/link/verify": {
      "post": {
        "operationId": "affix_link_verify",
        "summary": "Verify a QR link",
        "description": "Check a scanned link or token. Returns 409 reason_code used once the ticket has been admitted.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Valid. allow is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Not valid (expired, not_found, invalid).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "409": {
            "description": "used: the carrier or its bound proof has already been spent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key missing or not accepted."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "link": {
                    "type": "string",
                    "description": "Full https or affix:// link; the token is extracted."
                  }
                }
              },
              "example": {
                "link": "https://www.affix-io.com/v/0123456789abcdef0123456789abcdef"
              }
            }
          }
        }
      }
    },
    "/v1/otp/issue": {
      "post": {
        "operationId": "affix_otp_issue",
        "summary": "Issue a six-digit door code",
        "description": "Issue a short-lived six-digit code bound to a proof, for staffed doors. The response includes code and expires_at.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Carrier issued."
          },
          "400": {
            "description": "proof_required (no proof_digest or proof_ref), unknown_proof, or invalid_request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "403": {
            "description": "proof_not_owned: the proof was created with a different API key."
          },
          "409": {
            "description": "already_used: the proof has already been consumed."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarrierIssueRequest"
              },
              "example": {
                "proof_ref": "pf_00000000-0000-0000-0000-000000000000",
                "gate_id": "main-door",
                "label": "door-1",
                "ttl_seconds": 60
              }
            }
          }
        }
      }
    },
    "/v1/otp/verify": {
      "post": {
        "operationId": "affix_otp_verify",
        "summary": "Verify a door code",
        "description": "Verify and consume a six-digit door code. A code works once. Returns 409 used if its proof has already been spent.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Valid. allow is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Not valid (expired, not_found, invalid).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "409": {
            "description": "used: the carrier or its bound proof has already been spent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key missing or not accepted."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "otp": {
                    "type": "string",
                    "pattern": "^[0-9]{6}$"
                  },
                  "proof_digest": {
                    "type": "string",
                    "description": "Optional. When given, the code must belong to this proof."
                  }
                }
              },
              "example": {
                "otp": "123456"
              }
            }
          }
        }
      }
    },
    "/v1/wallet/pass": {
      "post": {
        "operationId": "affix_wallet_pass",
        "summary": "Issue a wallet pass token",
        "description": "Issue a token for an Apple or Google Wallet barcode. Put the returned token or https_link in the pass barcode and admit with /v1/gate/verify mode consume.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Carrier issued."
          },
          "400": {
            "description": "proof_required (no proof_digest or proof_ref), unknown_proof, or invalid_request."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "403": {
            "description": "proof_not_owned: the proof was created with a different API key."
          },
          "409": {
            "description": "already_used: the proof has already been consumed."
          },
          "429": {
            "description": "Rate limited; see Retry-After."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarrierIssueRequest"
              },
              "example": {
                "proof_ref": "pf_00000000-0000-0000-0000-000000000000",
                "gate_id": "main-door",
                "label": "door-1",
                "ttl_seconds": 45
              }
            }
          }
        }
      }
    },
    "/v1/wallet/verify": {
      "post": {
        "operationId": "affix_wallet_verify",
        "summary": "Verify a wallet pass token",
        "description": "Check a wallet pass token. Returns 409 used once the ticket has been admitted.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Valid. allow is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Not valid (expired, not_found, invalid).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "409": {
            "description": "used: the carrier or its bound proof has already been spent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierVerifyResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key missing or not accepted."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  }
                }
              },
              "example": {
                "token": "0123456789abcdef0123456789abcdef"
              }
            }
          }
        }
      }
    },
    "/v1/carriers/{id}/consume": {
      "post": {
        "operationId": "affix_carrier_consume",
        "summary": "Consume a carrier",
        "description": "Mark one of your carriers as used. Only the API key that issued the carrier can consume it.",
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "carrier id, e.g. lin_..., otp_..."
          }
        ],
        "responses": {
          "200": {
            "description": "Consumed."
          },
          "401": {
            "description": "API key missing or not accepted."
          },
          "404": {
            "description": "carrier_not_found, or not issued by this API key."
          }
        }
      }
    },
    "/v1/pass/status": {
      "get": {
        "operationId": "affix_pass_status",
        "summary": "Public pass status",
        "description": "Keyless and privacy-safe. Returns only status (valid, used, expired or unknown), expires_at, product and kind. No label, gate, owner, proof or personal data. Used by the https://www.affix-io.com/v/<token> page. Does not spend the pass.",
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Link token or full https_link."
          }
        ],
        "responses": {
          "200": {
            "description": "Status.",
            "content": {
              "application/json": {
                "example": {
                  "status": "valid",
                  "expires_at": "2026-10-19T16:00:00.000Z",
                  "product": "ticket-pass",
                  "kind": "link"
                }
              }
            }
          },
          "400": {
            "description": "invalid_token."
          }
        }
      }
    }
  }
}
