openapi: 3.1.0
info:
  title: Ezniek Provenance API
  version: 0.2.0
  description: Machine-readable positive provenance for human-authorship claims. Provenance, not guessing.
servers:
  - url: https://ezniek.com/api.php
paths:
  /:
    post:
      summary: Verify or register provenance using the action query parameter.
      description: Use ?action=verify for public verification. Registration is intended for the Ezniek client.
      parameters:
        - in: query
          name: action
          required: true
          schema: {type: string, enum: [verify, register, legacy-url]}
      requestBody:
        required: true
        content:
          application/json:
            schema: {type: object}
      responses:
        '200': {description: Verification result}
        '201': {description: Registration created}
