> ## 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.

# Inspect the current authenticated user or API key session.



## OpenAPI

````yaml /openapi/v1.yaml get /auth/me
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:
  /auth/me:
    get:
      summary: Inspect the current authenticated user or API key session.
      operationId: getCurrentAuth
      responses:
        '200':
          description: Current authentication context.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthMeResponse'
components:
  schemas:
    AuthMeResponse:
      type: object
      required:
        - authType
        - organisation
        - scopes
      properties:
        authType:
          type: string
          enum:
            - session
            - api_key
        user:
          type: object
          properties:
            id:
              type: string
              format: uuid
            email:
              type: string
            name:
              type: string
        organisation:
          type: object
          required:
            - id
            - name
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
        role:
          type: string
        scopes:
          type: array
          items:
            type: string
  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.