tencent cloud

All product documents
Quick API Run
Last updated: 2025-01-14 19:41:38
Quick API Run
Last updated: 2025-01-14 19:41:38

Overview

This document describes how to call Tencent Cloud eKYC APIs through API 3.0 Explorer and integrate SDKs in the corresponding programming language into your project after you purchase the eKYC service. You can access eKYC APIs quickly in the following steps.

Prerequisites

You have entered the API 3.0 Explorer page.

Directions

The following steps use the calling of the ApplySdkVerificationToken API as an example.

Step 1.

On the API 3.0 Explorer page, select ApplySdkVerificationToken from the left sidebar, enter required parameters, initiate the call, and get the response.
ApplySdkVerificationToken


Region: This is a required parameter that specifies the region information in the domain name and determines the access point. For example, ap-hongkong means accessing the Hong Kong access point. APIs may support different regions. For details, see the "Region List" section in the API document of the API you are calling. For example, for ApplySdkVerificationToken, see the "Region List" section in Common Params.
parameters


NeedVerifyIdCard: This is a required parameter that specifies whether to perform identity card authentication. If this parameter is not selected, only document OCR will be performed. You can select this parameter only when the value of IdCardType is HK.

Step 2.

Select the corresponding backend language, generate the code, and integrate it into your project. Take Java as an example.
1. To integrate the code into your project, you need to import the SDK dependencies (see Java in the top right corner of the figure below), get key information, and enter the SecretId and SecretKey in the code for successful calling.
2. Part of the field information in the generated code is subject to the entered content. To adjust an input parameter, modify its value on the left and generate the code again.

api



Notes

To generate a SecretId and a SecretKey, visit https://console.tencentcloud.com/cam/capi.
To upload Base64-encoded images or videos for input parameters, remove the data:image/jpg;base64, prefix and the \n line break.
If the following information is returned, manually configure the signature type:
[TencentCloudSDKException]message:AuthFailure.SignatureFailure-The provided credentials
could not be validated because of exceeding request size limit, please use new signature
method `TC3-HMAC-SHA256`. requestId:719970d4-5814-4dd9-9757-a3f11ecc9b20
​Configuring signature type:
`clientProfile.setSignMethod("TC3-HMAC-SHA256"); // Specify the signature algorithm, which is HmacSHA256 by default`

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon