openapi: 3.2.0 info: title: AAAA Nexus Payments API version: 0.5.1 description: Formally verified AI safety APIs for autonomous agents. Supports REST, MCP, A2A (Google protocol), and x402 micropayment protocol. contact: email: atomadic69@gmail.com url: https://github.com/atomadictech/aaaa-nexus servers: - url: https://atomadic.tech description: Production security: [] tags: - name: Payments description: Stripe payment sessions, price listing, and payment verification paths: /v1/payments/stripe/session: post: operationId: createStripeSession summary: Create Stripe Checkout session description: Create a Stripe Checkout session for purchasing credit or prompt packs. No authentication required. tags: - Payments requestBody: required: true content: application/json: schema: type: object required: - price_id properties: price_id: type: string description: Stripe price ID success_url: type: string cancel_url: type: string responses: '200': description: Stripe Checkout session content: application/json: schema: type: object properties: session_id: type: string url: type: string '400': $ref: '#/components/responses/BadRequest' /v1/payments/stripe/prices: get: operationId: getStripePrices summary: List active Stripe prices description: List all active Stripe prices for credit and prompt packs. No authentication required. tags: - Payments responses: '200': description: Active Stripe prices content: application/json: schema: type: object properties: prices: type: array items: type: object properties: id: type: string name: type: string amount: type: integer currency: type: string credits: type: integer /v1/pay/verify: post: operationId: verifyPayment summary: Verify payment and retrieve API key description: Verify a completed payment and retrieve the associated API key. No authentication required. tags: - Payments requestBody: required: true content: application/json: schema: type: object required: - session_id properties: session_id: type: string description: Stripe Checkout session ID responses: '200': description: Payment verified, API key returned content: application/json: schema: type: object properties: verified: type: boolean api_key: type: string credits: type: integer '400': $ref: '#/components/responses/BadRequest' components: responses: BadRequest: description: Invalid request body or missing required fields. content: application/json: schema: type: object properties: error: type: string securitySchemes: ApiKeyAuth: type: apiKey in: header name: X-API-Key description: API key obtained from https://atomadic.tech/pay X402PaymentProof: type: apiKey in: header name: X-Payment-Proof description: Base64-encoded USDC payment proof for x402 autonomous payment flow (Base L2, Polygon, or Solana) AdminTokenAuth: type: apiKey in: header name: X-Admin-Token description: Admin token for privileged operations