> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aegisintent.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute x402 Micropayment

> Autonomously executes a payment to a service endpoint using the agent's USDC wallet on the Arc Network.



## OpenAPI

````yaml POST /v1/actions/pay
openapi: 3.1.0
info:
  title: Aegis Secure API
  description: >-
    Zero-trust API for Developer-Controlled Wallets (DCW) and programmatic
    Policy Engine controls.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.aegisintent.xyz
    description: Production API Server
security: []
paths:
  /v1/actions/pay:
    post:
      tags:
        - Actions
      summary: Execute x402 Micropayment
      description: >-
        Autonomously executes a payment to a service endpoint using the agent's
        USDC wallet on the Arc Network.
      operationId: payForService
      parameters:
        - name: X-Aegis-Email
          in: header
          required: true
          schema:
            type: string
          description: Agent email address
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
          description: Unique UUID for financial idempotency
        - name: X-Aegis-Nonce
          in: header
          required: true
          schema:
            type: integer
          description: Current agent nonce
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - serviceUrl
                - maxAmount
              properties:
                serviceUrl:
                  type: string
                  example: https://api.circle.com/v2/x402/discovery/resources
                maxAmount:
                  type: string
                  example: '1.50'
                method:
                  type: string
                  example: GET
                data:
                  type: object
                headers:
                  type: array
                  items:
                    type: string
                    example: 'Accept: application/json'
      responses:
        '200':
          description: Payment successful or free service accessed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  result:
                    type: object
                    properties:
                      status:
                        type: string
                        example: completed
                      paymentProtocol:
                        type: string
                        example: x402
                      chargedUsdc:
                        type: string
                        example: '1.00'
      security:
        - bearerAuth: []
components: {}

````