v1
latestOpenAPI 3.1.02026-07-267724480.0 KBCreate a new API key
Create an API key for the authenticated account. The response confirms success but does not include the new key record or key value; call the list endpoint after creation to read the record.
post/api/token/
Request body
Example request
{
"name": "production",
"expired_time": -1,
"remain_quota": 100000,
"allow_ips": "198.51.100.10\n203.0.113.0/24\n2001:db8::/32"
}Response
Create result.
Example response
{
"success": true
}