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

# Get v1agents mandates



## OpenAPI

````yaml /openapi/platform.json get /v1/agents/{agentId}/mandates
openapi: 3.1.0
info:
  title: GOL Platform API
  description: >-
    Versioned GOL developer and consumer API. Consumer routes are mounted when
    their runtime integrations are configured.
  version: 0.8.0-rc.1
servers:
  - url: http://localhost:4100
    description: Local development
security: []
tags:
  - name: system
  - name: authentication
  - name: projects
  - name: api-keys
  - name: audit
  - name: gas-executions
  - name: gas-policies
  - name: webhooks
paths:
  /v1/agents/{agentId}/mandates:
    get:
      tags:
        - Mandates
      operationId: listAgentMandates
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
        - name: accountId
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Mandates and versions.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgentMandate'
        '400':
          description: invalid_request response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '401':
          description: unauthorized response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '403':
          description: forbidden response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '404':
          description: not_found response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '429':
          description: rate_limited response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '500':
          description: internal_error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
      security:
        - bearerAuth: []
components:
  schemas:
    AgentMandate:
      type: object
      properties:
        id:
          type: string
        accountId:
          type: string
        agentId:
          type: string
        label:
          type: string
        createdAt:
          format: date-time
          type: string
        versions:
          type: array
          items:
            $ref: '#/components/schemas/MandateVersion'
      required:
        - id
        - accountId
        - agentId
        - label
        - createdAt
        - versions
    ConsumerError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - invalid_request
                - unauthorized
                - forbidden
                - not_found
                - rate_limited
                - service_unavailable
                - internal_error
                - capability_unavailable
                - conflict
            message:
              type: string
            correlationId:
              type: string
          required:
            - code
            - message
            - correlationId
      required:
        - error
    MandateVersion:
      type: object
      properties:
        version:
          type: integer
        bounds:
          $ref: '#/components/schemas/MandateBounds'
        boundsHash:
          type: string
        frozenAt:
          oneOf:
            - format: date-time
              type: string
            - type: 'null'
        status:
          type: string
          enum:
            - draft
            - granted
      required:
        - version
        - bounds
        - boundsHash
        - frozenAt
        - status
    MandateBounds:
      type: object
      properties:
        budgets:
          type: array
          items:
            type: object
            properties:
              symbol:
                type: string
              amount:
                type: string
              period:
                type: string
                enum:
                  - total
                  - day
                  - week
                  - month
            required:
              - symbol
              - amount
              - period
        perActionMax:
          oneOf:
            - type: object
              properties:
                symbol:
                  oneOf:
                    - type: string
                    - type: 'null'
                amount:
                  type: string
              required:
                - symbol
                - amount
            - type: 'null'
        recipients:
          type: array
          items:
            type: string
        venues:
          type: array
          items:
            type: string
        allowedContract:
          oneOf:
            - type: string
            - type: 'null'
        maxActions:
          oneOf:
            - type: integer
            - type: 'null'
        expiresAt:
          oneOf:
            - format: date-time
              type: string
            - type: 'null'
        swapVenue:
          oneOf:
            - type: object
              properties:
                router:
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                symbol:
                  type: string
                maxAllowance:
                  type: string
              required:
                - router
                - symbol
                - maxAllowance
            - type: 'null'
      required:
        - budgets
        - perActionMax
        - recipients
        - venues
        - allowedContract
        - maxActions
        - expiresAt
        - swapVenue
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Opaque owner, CLI, or agent session token. Agent tokens are accepted
        only where marked.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.