Skip to main content
This page documents an earlier version of the API client. For the latest version, see Restore an API key.
Required ACL: Admin The system keeps up to 1,000 deleted API keys. When this limit is exceeded, the oldest deleted keys are permanently removed and can’t be restored. Restored API keys don’t expire (the validity is reset to 0). Requests must be authenticated with the admin API key.

Examples

Restore an API key

client.RestoreApiKey("myAPIKey");

Parameters

apiKey
string
required
API key to restore

Response

createdAt
string
The date at which the key has been restored.
key
string
The restored key.

Response as JSON

This section shows the JSON response returned by the API. Each API client wraps this response in language-specific objects, so the structure may vary. To view the response, use the getLogs method. Don’t rely on the order of properties—JSON objects don’t preserve key order.
JSON
{
  "key": "1eb37de6308abdccf9b760ddacb418b4",
  "createdAt": "2017-12-16T22:21:31.871Z"
}
I