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

# Read the account holder's profile

> Read the DigiLocker account holder's profile for a consented session.



## OpenAPI

````yaml /suite/api-reference/openapi.json get /digilocker-simple/v1/sessions/{session_id}/user/profile
openapi: 3.1.0
info:
  title: Privue API Suite
  description: >-
    Identity and account verification against government and banking sources.


    **Authentication.** Every request takes your API key as a bearer token:
    `Authorization: Bearer <your-key>`. A successful call to a billed endpoint
    deducts one credit; a call that fails is not charged.


    **Versioning.** Each endpoint is versioned on its own, directly in its path.
    A new version of one endpoint never moves another, so no release requires
    migrating every integration at once.


    **Retention.** Nothing you send and nothing we return is stored. Documents
    are returned as the issuer's own download links, and the response is the
    only copy, so retrieve what you need when you receive it. We record that a
    call happened, for billing and audit, never what it was about.
  version: 1.0.0
servers:
  - url: https://api.privue.ai
    description: Production
security: []
paths:
  /digilocker-simple/v1/sessions/{session_id}/user/profile:
    get:
      tags:
        - DigiLocker Simple
      summary: Read the account holder's profile
      description: Read the DigiLocker account holder's profile for a consented session.
      operationId: digilocker_user_profile
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9_-]{8,64}$
            description: session_id from the initiate-session response
            title: Session Id
          description: session_id from the initiate-session response
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfileResponse'
        default:
          description: The request failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    UserProfileResponse:
      properties:
        code:
          type: integer
          title: Code
          description: HTTP status code of the response
        timestamp:
          type: integer
          title: Timestamp
          description: Unix millisecond timestamp of when the response was produced
        transaction_id:
          type: string
          title: Transaction Id
          description: Identifier for this call. Quote it when raising a query about one
        data:
          $ref: '#/components/schemas/UserProfile'
      type: object
      required:
        - code
        - timestamp
        - transaction_id
        - data
      title: UserProfileResponse
      description: Response to reading an account holder's profile.
    ErrorResponse:
      properties:
        code:
          type: integer
          title: Code
          description: HTTP status code of the response
        timestamp:
          type: integer
          title: Timestamp
          description: Unix millisecond timestamp of when the response was produced
        message:
          type: string
          title: Message
          description: What went wrong, in one sentence
        transaction_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Transaction Id
          description: >-
            Identifier for the call, present when it reached the source. Quote
            it when raising a query
      type: object
      required:
        - code
        - timestamp
        - message
      title: ErrorResponse
      description: Why a request failed.
    UserProfile:
      properties:
        id:
          type: string
          title: Id
          description: The holder's DigiLocker account identifier
        name:
          type: string
          title: Name
        date_of_birth:
          type: string
          title: Date Of Birth
          description: As held by DigiLocker, in DD/MM/YYYY
        gender:
          type: string
          title: Gender
        mobile:
          type: string
          title: Mobile
        email:
          type: string
          title: Email
        eaadhaar:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Eaadhaar
          description: Whether the account has an Aadhaar linked to it
      type: object
      required:
        - id
        - name
        - date_of_birth
        - gender
        - mobile
        - email
      title: UserProfile
      description: The DigiLocker account holder's profile.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````