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

# Associate a wallet address with an agent.



## OpenAPI

````yaml /openapi/v1.yaml post /agents/{agentId}/wallets
openapi: 3.1.0
info:
  title: Attexra API
  version: 0.1.0
  description: >-
    Identity, scoped authorization, and auditable action evidence for autonomous
    agents. The MVP is non-custodial and does not execute payments.
servers:
  - url: /v1
    description: Current API server
  - url: https://api.attexra.example/v1
    description: Production example
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /agents/{agentId}/wallets:
    post:
      summary: Associate a wallet address with an agent.
      operationId: addAgentWallet
      parameters:
        - $ref: '#/components/parameters/AgentId'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWalletRequest'
      responses:
        '201':
          description: Wallet associated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Wallet'
        '400':
          $ref: '#/components/responses/ValidationError'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    AgentId:
      in: path
      name: agentId
      required: true
      schema:
        type: string
        format: uuid
    IdempotencyKey:
      in: header
      name: Idempotency-Key
      required: true
      description: Unique key ensuring safe retries on write endpoints.
      schema:
        type: string
        minLength: 1
        maxLength: 255
  schemas:
    CreateWalletRequest:
      type: object
      required:
        - chainNamespace
        - address
      properties:
        chainNamespace:
          type: string
        address:
          type: string
    Wallet:
      type: object
      required:
        - id
        - agentId
        - chainNamespace
        - address
      properties:
        id:
          type: string
          format: uuid
        agentId:
          type: string
          format: uuid
        chainNamespace:
          type: string
        address:
          type: string
  responses:
    ValidationError:
      description: The request failed validation.
    NotFound:
      description: The requested resource does not exist in this tenant.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Console session token (also supported via attexra_session HttpOnly
        cookie).

````

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