Refreshes model authentication tokens.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LicenseKeys |
string |
No |
The list of license keys. |
lk-abcdef1234567890,lk-abcdef1234567891 |
| InstanceIds |
string |
No |
The list of instance IDs. |
acp-2zef0gov2nh2l3xxx,acp-2zef0gov2nh2l3yyy |
| ExpireSeconds |
integer |
No |
The validity period in seconds. |
600 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResult |
||
| RequestId |
string |
The request ID. |
9A51B1DF-96FF-3BCC-B08C-783161D3**** |
| Data |
object |
The token data. |
|
| BaseUrl |
string |
The model gateway access URL. |
https://ai-gateway.example.com/v1 |
| Tokens |
array<object> |
The list of tokens. |
|
|
object |
|||
| AuthToken |
string |
JWT Token 或 API Key 明文 |
cp******lp |
| ExpireSeconds |
integer |
有效期(秒) |
600 |
| ExpireAt |
integer |
过期时间(Unix 时间戳,秒) |
1719648600 |
| IssuedAt |
integer |
签发时间(Unix 时间戳,秒) |
1719648000 |
| InstanceId |
string |
实例 ID |
acp-2zef0gov2nh2l3xxx |
| LicenseKey |
string |
授权密钥 |
lk-abcdef1234567890 |
Examples
Success response
JSON format
{
"RequestId": "9A51B1DF-96FF-3BCC-B08C-783161D3****",
"Data": {
"BaseUrl": "https://ai-gateway.example.com/v1",
"Tokens": [
{
"AuthToken": "cp******lp",
"ExpireSeconds": 600,
"ExpireAt": 1719648600,
"IssuedAt": 1719648000,
"InstanceId": "acp-2zef0gov2nh2l3xxx",
"LicenseKey": "lk-abcdef1234567890"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.