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

# Get User Profile

> Gets the User Profile Details from Digilocker like Name, Date of Birth, Gender, Mobile Number, Email Id.

<Card title="Run in Postman" icon="https://mintcdn.com/sandboxfinancialtechnologiesprivatelimited/gviqebbpT5NUt_6i/static/svg/Postman.svg?fit=max&auto=format&n=gviqebbpT5NUt_6i&q=85&s=da47f2b7e10d87befec951aed9468de3" horizontal arrow="true" href="https://www.postman.com/in-co-sandbox/workspace/sandbox-api/request/29708799-bff85a46-2e23-4988-89cc-d8418ee6663b?action=share&source=copy-link&creator=29708799&ctx=documentation" width="2030" height="2031" data-path="static/svg/Postman.svg" />

<Info>
  User profile details can only be fetched if the user has provided consent for it.
</Info>


## OpenAPI

````yaml api-reference/kyc/openapi.json GET /kyc/digilocker/sessions/{session_id}/user/profile
openapi: 3.1.0
info:
  title: in-co-sandbox-kyc
  description: ''
  version: 1.0.0
servers:
  - url: https://test-api.sandbox.co.in
    description: test
  - url: https://api.sandbox.co.in
    description: prod
security: []
tags:
  - name: kyc
  - name: digilocker-sdk
  - name: digilocker
  - name: aadhaar
  - name: bank
  - name: pan
  - name: mca
  - name: entitylocker
  - name: entitylocker-sdk
paths:
  /kyc/digilocker/sessions/{session_id}/user/profile:
    get:
      tags:
        - kyc
        - digilocker
      summary: Get User Profile
      description: Gets the User Profile Details from Digilocker.
      operationId: getUserProfile
      parameters:
        - name: session_id
          in: path
          description: >-
            Session identifier generated during DigiLocker [Initiate Session
            API](https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/initiate_session)
            .
          required: true
          example: b5522c8f-2321-577b-8e73-ae1366d9c591
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            JWT access token. For token-generation steps, refer to the
            [Quickstart
            Guide](https://developer.sandbox.co.in/guides/get-started/quickstart).
          required: true
          example: '{{access_token}}'
          schema:
            type: string
        - name: x-api-key
          in: header
          description: API key used to identify and authenticate the client.
          required: true
          example: '{{api_key}}'
          schema:
            type: string
        - name: x-api-version
          in: header
          description: Specifies the API version for the request.
          required: false
          example: 1.0.0
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    description: >-
                      Unix timestamp (in milliseconds) indicating when the
                      server generated the response.
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Digilocker Id
                      '@entity':
                        type: string
                        description: >-
                          Entity identifier that specifies the type of response
                          being returned.
                      date_of_birth:
                        type: integer
                        description: Date of Birth of User
                      mobile:
                        type: string
                        description: Mobile Number of User
                      name:
                        type: string
                        description: Full Name of User
                      gender:
                        type: string
                        description: Gender of User
                      eaadhaar:
                        type: boolean
                        description: Boolean indicating eaadhaar status of User
                      email:
                        type: string
                        description: Email Address of User
                    required:
                      - '@entity'
                      - id
                      - name
                      - date_of_birth
                      - gender
                      - eaadhaar
                      - mobile
                      - email
                    description: >-
                      Response payload containing the requested data or error
                      details.
                  transaction_id:
                    type: string
                    description: Unique identifier for tracking the request across systems.
                required:
                  - code
                  - timestamp
                  - data
                  - transaction_id
              example:
                code: 200
                timestamp: 1744874068219
                data:
                  id: b5522c8f-2321-577b-8e73-ae1366d9c591
                  '@entity': in.co.sandbox.kyc.digilocker.user.profile
                  date_of_birth: 1071145000000
                  mobile: '9825013730'
                  name: Kaival Mehta
                  gender: male
                  eaadhaar: true
                transaction_id: 0793c784-fcaa-44d9-b8fc-f6a382a67f70
          headers: {}
      deprecated: false
      security: []

````