Nhảy tới nội dung

Generate Session ID

API to generate a new session.

Request

  • Endpoint: /v1/api/ekyc-verify/session

  • Method: POST

  • Header

    NameTypeRequiredDescription
    api_keystringyesThe API key associated with your account to authenticate requests (for development, check the Credentials section).
  • Parameters

    NameTypeRequiredDescriptionDefault
    enable_id_doc_fraudbooleannoEnable ID doc fraud checkingtrue
    enable_selfie_livenessbooleannoEnable selfie liveness checkingtrue
    only_face_matchingbooleannoOnly use face matching featurefalse
  • Body

    • Type: application/json

    • Data:

      NameTypeRequiredDescription
      consent_infojsonyes

      Consent information from user. It includes:

      • uid (string): User Identifier
      • timestamp (int - unix timestamp in milliseconds): Specific time when user accepts consent
      • ip (string): IP address of user device

Response

  • Status: 200 OK

  • Body: JSON

    {
    "code": 0,
    "message": "Successful",
    "data": "<ENCRYPTED_DATA_IN_BASE64>"
    }
    • Field “data”: Decrypt the “data” field as described in the Decrypt response data section to get the JSON object with following fields.

      NameTypeDescription
      session_idstringNewly generated session ID, expired in 30 minutes.