Obtain an authorization token for H5 native number verification. The response includes an AccessToken and a JwtToken.
Operation description
Preparations
You can register an Alibaba Cloud account, obtain an AccessKey pair, and create an authentication plan before you begin. For more information, see H5 Native Number Verification Integration Flow.
QPS limit
The per-user QPS limit for this operation is 1000 calls per second. Exceeding this limit triggers rate limiting, which may affect your business. Call this operation only as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dypns:GetAuthToken |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Url |
string |
Yes |
URL of the request page. Enter the URL you specified when creating the authentication plan in the console. Format: protocol + // + domain name + /. Note
For testing, you can temporarily use a public IP address. Use a domain name for production. |
https://www.aliyundoc.com/ |
| Origin |
string |
Yes |
Origin URL. Enter the origin URL you specified when creating the authentication plan in the console. Format: protocol + // + domain name. |
https://www.aliyundoc.com |
| SceneCode |
string |
No |
Authentication plan code. Note
This parameter is required due to plan upgrades. After creating an authentication plan in the console, pass its code. For details, see Plan Management. |
FC10000010643**** |
| BizType |
integer |
No |
Business type. Valid values:
Note
This parameter is required due to flow optimizations that reduce client-side authentication calls. |
|
| CmApiCode |
integer |
No |
||
| CuApiCode |
integer |
No |
||
| CtApiCode |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Status code.
|
OK |
| Message |
string |
Description of the status code. |
请求成功 |
| RequestId |
string |
Request ID. |
8906582E-6722 |
| TokenInfo |
object |
Struct. |
|
| AccessToken |
string |
Business authentication token. Note
An AccessToken is valid for 10 minutes. You can reuse it during this period. |
agag**** |
| JwtToken |
string |
API authentication token. Note
A JwtToken is valid for 1 hour. You can reuse it during this period. |
aweghd**** |
Examples
Success response
JSON format
{
"Code": "OK",
"Message": "请求成功",
"RequestId": "8906582E-6722",
"TokenInfo": {
"AccessToken": "agag****",
"JwtToken": "aweghd****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.