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

# Set wallet address

> Sets the EVM wallet address for the agent. Call once after registration if the address was not provided at registration time, or to update it.



## OpenAPI

````yaml /openapi.json post /api/activate
openapi: 3.1.0
info:
  title: Mandate API
  version: 1.2.0
  description: >-
    Non-custodial agent wallet policy layer. Enforces spend limits, allowlists,
    and approval workflows for AI agent transactions without ever receiving
    private keys.
  contact:
    name: Mandate
    url: https://mandate.md
    email: support@mandate.md
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://app.mandate.md
    description: Production
security: []
tags:
  - name: Registration
    description: >-
      Agent registration and claiming. No auth required for register; Sanctum
      auth for claim.
  - name: Agent API
    description: >-
      Endpoints authenticated with a runtime key (Bearer mndt_live_... or
      mndt_test_...). Used by agents to validate transactions, post events, and
      poll status.
  - name: Intent Lifecycle
    description: >-
      Post transaction hashes after broadcast and poll intent status until
      confirmed.
  - name: Dashboard
    description: >-
      Dashboard endpoints for human operators. Authenticated via Sanctum
      (cookie-based session).
  - name: Policies
    description: >-
      Policy management for agents. List, create, and view policy
      configurations.
  - name: Approvals
    description: Approval queue for transactions that require human review.
paths:
  /api/activate:
    post:
      tags:
        - Agent API
      summary: Set wallet address
      description: >-
        Sets the EVM wallet address for the agent. Call once after registration
        if the address was not provided at registration time, or to update it.
      operationId: activateAgent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateRequest'
            example:
              evmAddress: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F'
      responses:
        '200':
          description: Agent activated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivateResponse'
              example:
                activated: true
                agentId: 9e5f1a2b-3c4d-5e6f-7a8b-9c0d1e2f3a4b
                evmAddress: '0x71c7656ec7ab88b098defb751b7401b5f6d8976f'
                onboardingUrl: https://app.mandate.md/dashboard?onboarding=1
                message: >-
                  Agent activated. Tell your human to visit:
                  https://app.mandate.md/dashboard?onboarding=1
        '401':
          description: Invalid or missing runtime key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Invalid address format.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      security:
        - RuntimeKeyAuth: []
components:
  schemas:
    ActivateRequest:
      type: object
      required:
        - evmAddress
      properties:
        evmAddress:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
          description: EVM wallet address to set for this agent.
    ActivateResponse:
      type: object
      required:
        - activated
        - agentId
        - evmAddress
        - onboardingUrl
      properties:
        activated:
          type: boolean
          enum:
            - true
        agentId:
          type: string
          format: uuid
        evmAddress:
          type: string
          description: Normalized lowercase EVM address.
        onboardingUrl:
          type: string
          format: uri
          description: Dashboard URL with onboarding flag.
        message:
          type: string
          description: Human-readable activation message.
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
    ValidationError:
      type: object
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: Summary error message.
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Per-field validation errors.
  securitySchemes:
    RuntimeKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Runtime key issued at agent registration. Prefixed with `mndt_live_`
        (mainnet) or `mndt_test_` (testnet). Pass as `Authorization: Bearer
        mndt_test_...`.

````