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

# Get current authenticated user information

> Resolves the identity behind the bearer token, including the role it grants. API keys authenticate as their service account user, so this is how a caller discovers the effective role of a key.



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json get /v1/auth/me
openapi: 3.0.0
info:
  title: Wirespeed API
  description: The public Wirespeed API. v1 is the first stable contract.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.wirespeed.co
security: []
tags: []
paths:
  /v1/auth/me:
    get:
      tags:
        - Authentication
      summary: Get current authenticated user information
      description: >-
        Resolves the identity behind the bearer token, including the role it
        grants. API keys authenticate as their service account user, so this is
        how a caller discovers the effective role of a key.
      operationId: AuthController_getPublicMe
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicAuthMeResponseDto'
        '401':
          description: ''
      security:
        - bearer: []
components:
  schemas:
    PublicAuthMeResponseDto:
      type: object
      properties:
        email:
          type: string
          description: User email address
        displayName:
          type: string
          description: 'Display name: first (+ optional last) if set, otherwise email'
        id:
          type: string
          description: User ID
        role:
          type: string
          enum:
            - ADMIN
            - ANALYST
            - VIEWER
          description: User role for current team
        teamId:
          type: string
          description: Currently active team ID
        parentTeamId:
          type: string
          description: Parent team ID
        serviceProvider:
          type: boolean
          description: Service provider flag
        completedOnboarding:
          type: boolean
          description: Onboarding completion status
        hasServiceProviderParent:
          type: boolean
          description: Whether the user belongs to a service provider parent team
      required:
        - email
        - displayName
        - id
        - role
        - teamId
        - parentTeamId
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Team API key sent as a Bearer token. Create a key in Wirespeed under
        Settings → Team. See
        https://docs.wirespeed.co/api-reference/authentication.

````