This function looks up an API token’s details based on the token itself.
HTTP Request was successful.
object The API token’s details. Only present if the system recognizes the given | |
object (Metadata) |
whmapi1 --output=jsonpretty \ api_token_get_details \ token=GVJWD78FF12NMBFKYKPS9BJ483C0XSQH
{- "data": {
- "acls": [
- "create-acct",
- "kill-acct",
- "list-accts"
], - "create_time": 1483625276,
- "expires_at": 1609372800,
- "name": "example",
- "whitelist_ips": [
- "192.0.2.1",
- "192.0.2.2",
- "192.0.2.8/29",
- "fc00:abcd:0000:0000:0000:0000:0000:000f",
- "2620:0000:28a4:0000:0000:0000:0000:0000/48"
]
}, - "metadata": {
- "command": "api_token_get_details",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}