HomeDocumentationAPI Reference
Log In
API Reference

Edit Session Key

Method Name

private/edit_session_key

Edits session key parameters such as label and IP whitelist.
For non-admin keys you can also toggle whether to disable a particular key.
Disabling non-admin keys must be done through /deregister_session_key
Required minimum session key permission level is account

Parameters

public_session_keystringrequired
Session key in the form of an Ethereum EOA
walletstringrequired
Ethereum wallet address of account
disableboolean
Flag whether or not to disable to session key. Defaulted to false. Only allowed for non-admin keys. Admin keys must go through /deregister_session_key for now.
ip_whitelistarray of strings
Optional list of whitelisted IPs, an empty list can be supplied to whitelist all IPs
labelstring
Optional new label for the session key

Response

idstring or integerrequired
resultobjectrequired
result.expiry_secintegerrequired
Session key expiry timestamp in sec
result.labelstringrequired
User-defined session key label
result.public_session_keystringrequired
Public session key address (Ethereum EOA)
result.registered_secintegerrequired
Session key registration time
result.scopestringrequired
Session key permission level scope
result.ip_whitelistarray of stringsrequired
List of whitelisted IPs, if empty then any IP is allowed.

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}