• Console

›Identity Verification Premium

FaceID service introduction

  • FaceID
  • FaceID-Pro

Identity Verification Basic

  • App-GetBizToken
  • App-Verify
  • App-Authentication
  • H5-Raw-UploadVideo
  • H5-Raw-Verify

Identity Verification Premium

  • APP_Pro-Access-Guide
  • APP_Pro-Authentication
  • APP_Pro-Encrption-Guide
  • APP_Pro-GetBiztoken
  • APP_Pro-Liveness
  • APP_Pro-Verify
  • H5-Lite_Pro-Access-Guide
  • H5-Lite_Pro-GetToken
  • H5-Lite_Pro-Redirect-To-Liveness-URL
  • H5-Lite_Pro-Callbacks
  • H5-Lite_Pro-GetResult
  • H5-Lite_Pro-UsinginAnApp
  • H5-Lite_Pro-UI-Customization
  • H5-Lite_Pro-RTC-Compatibility

OCR

  • Indonesian_ID_Card
APP_Pro-GetBiztoken

Version

5.0.0

Describe

This interface is used to generate a verification request identifier. The application party transmits the configuration related to this live body to the FaceID server through the server. After verification, the biz_token of this business is returned, which is used to initialize the FaceID MegLiveStill SDK.

Call URL

Singapore :https://api-sgp.megvii.com/faceid/v5/sdk/get_biz_token

Indonesia region :https://api-idn.megvii.com/faceid/v5/sdk/get_biz_token

Note : In a production environment, please use HTTPS communication method. HTTP communication is an unsafe link and involves security risks. Please do not use it in a production environment. If you use HTTP in a production environment, service reliability cannot be guaranteed.

call method

POST Note: Use form-data format to request

Permissions

Only when the user accesses the FaceID product can the FaceID Web APIs be called. Please consult FaceID business personnel for the process of accessing FaceID.

parameter

Required/optionalparametertypeParameter Description
requiredsignString[Authentication Guide] document for the specific signature generation method.
requiredsign_versionStringSignature algorithm version, please pass: hmac_sha1
requiredliveness_idStringLiving scene ID: The relevant configuration of this living body request can be set in the console, and the generated ID number will be used in the interface.

Return value description

Fieldtypeillustrate
request_idStringA unique string used to distinguish each request. This string can be used for subsequent data retrieval. This field must return
time_usedIntThe time spent on the entire request, in milliseconds, this field must be returned
biz_tokenStringString, information passed in when calling SDK, biz_token validity period defaults to 1 hour
errorStringThis string will be returned only when the request fails. For the specific return content, see the subsequent error information section. Otherwise this field does not exist

Return value example

Correct request return example

{
   "biz_token":"1531397038,f0b9eea0-6a2d-486c-a1ba-42fdf843e8cc",
   "time_used":18,
   "request_id":"1531397037,c1223c5b-c2f6-4bb7-8cbb-8993497ddbe0"
}

Failed request return example

{
    "error": "BAD_ARGUMENTS: sign_version"
}

Error code list

HTTP status codeerror messageillustrate
400MISSING_ARGUMENTS: <key>A required parameter is missing
400BAD_ARGUMENTS: <key>There is an error in parsing a certain parameter (for example, it must be a number, but the input is a non-numeric string, or the length is too long)
403AUTHENTICATION_ERRORInvalid signature
403AUTHORIZATION_ERROR: <reason>api_key is disabled, the number of calls has exceeded the limit, there is no permission to call this API, or there is no permission to call this API in the current way. value:
  • API_KEY_BE_DISCONTINUED:api_key is disabled
  • IP_NOT_ALLOWED:IP that is not allowed to be accessed (reserved design)
  • LIMIT_REACHED:The number of calls made by this api_key to the current API has reached the upper limit. Only when api_key is the test key
  • DENIED:No permission to call the current API
  • EXPIRED_SIGN:The signature has expired
  • INVALID_SIGN:Invalid signature
  • For other possible error codes, please reserve a solution.
  • 403CONCURRENCY_LIMIT_EXCEEDEDThe number of concurrency exceeds the limit
    404API_NOT_FOUNDThe API being called does not exist
    500INTERNAL_ERRORInternal server error. When such an error occurs, please request again. If such errors continue to occur, please contact FaceID customer service or business in time.

    © 2012-2021 北京旷视科技有限公司 版权所有 | 京ICP备12036813号-6

    京公网安备 11010802025957号