# Current user information GET https://docs.example.com/api/fern-docs/whoami Get authentication information for the current user, including their name, email, and roles. Reference: https://buildwithfern.com/learn/docs/fern-api-reference/whoami ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Current user information version: endpoint_.whoami paths: /api/fern-docs/whoami: get: operationId: whoami summary: Current user information description: >- Get authentication information for the current user, including their name, email, and roles. tags: - [] parameters: - name: FERN_TOKEN in: header description: Header authentication of the form `undefined ` required: true schema: type: string responses: '200': description: Successfully retrieved user information content: application/json: schema: $ref: '#/components/schemas/whoami_Response_200' '400': description: Bad request (authentication not accessible in local preview mode) content: {} '401': description: Unauthorized (user not authenticated or invalid/expired token) content: {} '500': description: >- Internal server error (authentication configuration not found or server error) content: {} components: schemas: ApiFernDocsWhoamiGetResponsesContentApplicationJsonSchemaUserInfo: type: object properties: name: type: string description: User's display name email: type: string description: User's email address roles: type: array items: type: string description: User's assigned roles required: - name - email - roles whoami_Response_200: type: object properties: fern_token: type: string description: JWT token for the authenticated user user_info: $ref: >- #/components/schemas/ApiFernDocsWhoamiGetResponsesContentApplicationJsonSchemaUserInfo required: - fern_token - user_info ```