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

# Retrieve the caller's own profile

> Returns a REDUCED projection of the authenticated user's own record: id, name, username, email, phone and country code. Groups, roles, permissions and MFA state are deliberately omitted — a member reads their MFA state from GET /v1/users/{id}/mfa, and the full record (including group membership) is the administrative GET /v1/users/{id}. Authorized on the "own-profile" resource, which every authenticated user holds, and confined to the caller's own account: an {id} other than the token subject is refused with 403 / IDE-0057.



## OpenAPI

````yaml /es/openapi/v3-current/AM-identity.yaml get /v1/users/{id}/profile
openapi: 3.0.1
info:
  contact: {}
  description: This is a swagger documentation for the Identity API
  termsOfService: http://swagger.io/terms/
  title: Identity API
  version: 1.0.0
servers:
  - url: //localhost:4001/
security: []
paths:
  /v1/users/{id}/profile:
    get:
      tags:
        - Users
      summary: Retrieve the caller's own profile
      description: >-
        Returns a REDUCED projection of the authenticated user's own record: id,
        name, username, email, phone and country code. Groups, roles,
        permissions and MFA state are deliberately omitted — a member reads
        their MFA state from GET /v1/users/{id}/mfa, and the full record
        (including group membership) is the administrative GET /v1/users/{id}.
        Authorized on the "own-profile" resource, which every authenticated user
        holds, and confined to the caller's own account: an {id} other than the
        token subject is refused with 403 / IDE-0057.
      parameters:
        - description: Caller's own User ID
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OwnProfileResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: The requested ID is not the authenticated user (IDE-0057)
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    OwnProfileResponse:
      description: OwnProfileResponse payload — the caller's own profile, reduced
      example:
        firstName: John
        lastName: Doe
        phone: 5511998888777
        countryCode: BR
        id: 123e4567-e89b-12d3-a456-426614174000
        email: john@example.com
        username: johndoe
      properties:
        countryCode:
          example: BR
          type: string
        email:
          example: john@example.com
          type: string
        firstName:
          example: John
          type: string
        id:
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
        lastName:
          example: Doe
          type: string
        phone:
          example: 5511998888777
          type: string
        username:
          example: johndoe
          type: string
      type: object
    pkg.HTTPError:
      properties:
        code:
          type: string
        entityType:
          type: string
        err:
          type: object
        message:
          type: string
        title:
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer authentication. Send Authorization: Bearer <token>.'
      in: header
      name: Authorization
      type: apiKey

````