This topic describes the credential detection API operation. This service analyzes credential images to detect risks, such as forgery, tampering, screen captures, and recaptures.
API description
Operation name: CredentialVerifyIntl
Description: Analyzes credential images to detect risks, such as forgery, tampering, screen captures, and recaptures.
Request method: POST
Transport protocol: HTTPS
This API operation has a dedicated QPS limit. For more information, see QPS limits for ID Verification server-side API operations.
Endpoints:
NoteBenefits of internal network access: An internal network is a private communication network between Alibaba Cloud products within the same region. If your business server is deployed in the corresponding Alibaba Cloud region, you can use the internal same-region endpoint to access the ID Verification service. This provides more secure and stable communication.
Optimization suggestions for access from outside China: Network environments outside China can be complex. To optimize your integration solution, reduce network latency, and minimize request failures, see Server-side network latency analysis and optimization.
Singapore
Public network:
cloudauth-intl.ap-southeast-1.aliyuncs.comInternal network:
cloudauth-intl-vpc.ap-southeast-1.aliyuncs.com
Credential detection is an AI-based prediction product. It achieves an accuracy rate of 90% on our internal test dataset. The actual accuracy may vary based on the scenario.
Detecting edits in digitally synthesized images is more difficult. The service is more effective for images taken with a native camera than for digitally synthesized images.
Do not rely solely on the credential detection result to verify the authenticity of a credential. Use it to supplement your review process or to make manual reviews more efficient.
Credential detection is widely used in scenarios that require electronic document review, such as finance, payment acquiring, and E-commerce merchant onboarding, because it effectively improves the efficiency of manual review. If you have requirements for other scenarios, contact your account manager.
Online debugging and integration
Before you debug and integrate an API operation, see Debug and integrate server-side API operations using OpenAPI Explorer for information about how to call API operations and obtain SDKs and sample code in OpenAPI Explorer.
You can debug this operation directly in OpenAPI Explorer. You can also generate SDK sample code for this operation.
Request parameters
The image specified by the ImageUrl or ImageFileObject parameter must meet the following requirements:
Image format: PNG, JPG, JPEG, BMP, and WebP.
Image dimensions: The height and width must be greater than 15 pixels and less than 8192 pixels. The aspect ratio must be less than 50.
NoteFor best detection results, use an image with a height and width both greater than 500 pixels.
Image size: If you use a URL, the image cannot exceed 10 MB. If you use
ImageFileObject, the image cannot exceed 3 MB.NoteLarge images can increase the API response time. Use an image that is smaller than 3 MB.
Name | Type | Required | Description | Example |
CredType | String | Yes | Credential type:
| 03 |
CredName | String | Yes | Credential name (use the numeric code):
Note To support more credential types, contact your account manager. | 0301 |
ProductCode | String | Yes | Call mode:
| ANTI_FAKE_CHECK |
ImageUrl | String | Yes Important Specify either imageUrl or ImageFileObject. | The URL of the image. | https://example.com/test.jpg |
ImageFileObject | InputStream | The image file stream. To upload an image this way, call the Advance operation provided by the cloud product and pass a valid InputStream object. For more information, see Special scenario: Configure the Advance operation for file uploads. | The InputStream object of the image |
Response parameters
Name | Type | Description | Example | |
RequestId | String | The request ID. | 130A2C10-B9EE-4D84-88E3-5384******** | |
Code | String | Important
| Success | |
Message | String | A detailed description of the return code. | success | |
ResultObject | Result | String |
| 1 |
RiskTag | String | Risk tags. Multiple tags are separated by commas (,). Valid values:
| PS | |
RiskScore | Map<String,String> | The risk score predicted by the algorithm for the hit tag. The value ranges from 0 to 1. A value of 1 means a risk was detected. A value of 0 means no risk was detected. | | |
MaterialInfo | String | Other information. This is a reserved field. | ||
Return codes
HTTP status code | Code | Description |
200 | Success | The request was successful. |
400 | MissingParameter | A parameter cannot be empty. |
400 | Forbidden.ExceptionRepeatedInvoke | The call was repeated abnormally. |
401 | InvalidParameter | The parameter is invalid. |
401 | UnqualifiedPhoto | The provided image is not usable. |
401 | ToolargeImage | The provided image is too large. |
401 | DataDuplication | The data is duplicate. |
403 | Forbidden.AccountAccessDenied | Make sure that you have activated ID Verification and your account has no overdue payments. |
403 | Forbidden.RAMUserAccessDenied | The Resource Access Management (RAM) user needs the AliyunAntCloudAuthFullAccess permission. |
500 | Forbidden.ExceptionDataSource | The authoritative data source service is abnormal. |
500 | InternalError | An internal system error occurred. Contact engineers for troubleshooting. |