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

# List agents

> Retrieve a paginated list of agents, optionally filtered by customer.



## OpenAPI

````yaml openapi.json get /agents
openapi: 3.0.3
info:
  title: Proxy API
  description: >-
    Card issuance and transaction management API for AI agents and automation.
    Proxy enables customers to issue virtual cards with policy-based spending
    controls.
  version: 1.0.0
  contact:
    name: Proxy Support
    url: https://useproxy.ai
servers:
  - url: https://api.useproxy.ai/v1
    description: Production API
security:
  - BearerAuth: []
tags:
  - name: KYC
    description: Know Your Customer application management
  - name: Customers
    description: Manage customers who own agents and cards
  - name: Agents
    description: Manage autonomous agents that can spend on behalf of customers
  - name: Cards
    description: Manage virtual spending cards with policy controls
  - name: Intents
    description: Pre-transaction declarations for spend approval workflows
  - name: Spend
    description: Spend policy evaluation
  - name: Access Events
    description: Card credential access grants with attestation windows
  - name: Transactions
    description: View and manage transaction records
  - name: Balances
    description: View customer balances and funding instructions
  - name: Webhooks
    description: Configure outbound webhook subscriptions
paths:
  /agents:
    get:
      tags:
        - Agents
      summary: List agents
      description: Retrieve a paginated list of agents, optionally filtered by customer.
      operationId: listAgents
      parameters:
        - name: customerId
          in: query
          description: Filter by customer ID
          schema:
            type: string
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: List of agents
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Agent'
                  nextCursor:
                    type: string
                    nullable: true
                required:
                  - data
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  parameters:
    Limit:
      name: limit
      in: query
      description: 'Maximum number of results to return (default: 50)'
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Cursor:
      name: cursor
      in: query
      description: Pagination cursor for fetching the next page
      schema:
        type: string
  schemas:
    Agent:
      type: object
      properties:
        id:
          type: string
          description: Unique agent ID
        customerId:
          type: string
          nullable: true
          description: Parent customer ID
        externalId:
          type: string
          nullable: true
          description: External identifier for the agent
        name:
          type: string
          description: Agent name
        status:
          type: string
          enum:
            - active
            - paused
            - disabled
          description: Agent status
        limits:
          $ref: '#/components/schemas/SpendingLimit'
        policy:
          $ref: '#/components/schemas/Policy'
        metadata:
          type: object
          additionalProperties: true
        createdAt:
          type: string
          format: date-time
          nullable: true
      required:
        - id
        - name
        - status
    SpendingLimit:
      type: object
      properties:
        amount:
          type: number
          description: Limit amount in cents
        currency:
          type: string
          description: Currency code (e.g., usd)
        interval:
          type: string
          nullable: true
          description: >-
            Limit interval (e.g., daily, weekly, monthly, all_time,
            per_authorization)
      required:
        - amount
        - currency
    Policy:
      type: object
      description: Spending policy controls
      properties:
        requireIntent:
          type: boolean
          description: Require an intent before card access
        requireAttestation:
          type: boolean
          description: Require attestation for card access
        requireApproval:
          type: boolean
          description: Require manual approval for intents
        autoApproveBelow:
          type: number
          description: Auto-approve intents below this amount (in cents)
        attestationWindowMinutes:
          type: number
          description: Minutes that access credentials remain valid
        cooldownMinutes:
          type: number
          description: Minimum minutes between transactions
        ttlMinutes:
          type: number
          description: Card time-to-live in minutes
        ttlDays:
          type: number
          description: Card time-to-live in days
        limits:
          type: object
          properties:
            perAuth:
              type: number
              description: Maximum amount per authorization (in cents)
            perDay:
              type: number
              description: Maximum daily spend (in cents)
            perMonth:
              type: number
              description: Maximum monthly spend (in cents)
        allowedMccs:
          type: array
          items:
            type: string
          description: Allowed merchant category codes
        blockedMccs:
          type: array
          items:
            type: string
          description: Blocked merchant category codes
        allowedMerchants:
          type: array
          items:
            type: string
          description: Allowed merchant names
        lockToFirstMerchant:
          type: boolean
          description: Lock card to first merchant used
    Error:
      type: object
      properties:
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
                details:
                  type: object
                  nullable: true
              required:
                - code
                - message
      required:
        - error
  responses:
    Unauthorized:
      description: Unauthorized - missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: unauthorized
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication. Include your API key in the Authorization header
        as `Bearer <api_key>`.

````