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

# Get Agent Profile

> Get the authenticated AI agent profile by wallet address — returns registration details, USDC balance, and x402 payment history summary.

<RequestExample>
  ```bash theme={null}
  curl https://xenarch.dev/v1/agents/me \
    -H "X-Wallet-Address: 0x1234...abcd"
  ```
</RequestExample>

## Notes

* Also available via `GET /v1/agents/wallet/{wallet_address}` (public lookup)


## OpenAPI

````yaml GET /v1/agents/me
openapi: 3.1.0
info:
  title: Xenarch Platform
  version: 0.1.0
servers: []
security: []
paths:
  /v1/agents/me:
    get:
      tags:
        - agents
      summary: Get Current Agent
      description: Get the current agent's profile by wallet address header.
      operationId: get_current_agent_v1_agents_me_get
      parameters:
        - name: x-wallet-address
          in: header
          required: true
          schema:
            type: string
            pattern: ^0x[0-9a-fA-F]{40}$
            title: X-Wallet-Address
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        wallet_address:
          type: string
          title: Wallet Address
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - wallet_address
        - name
        - created_at
      title: AgentResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````