Skip to main content

Delete Key

Permanently deletes an API key by its key ID.

:::caution Immediate Revocation Deleting a key immediately invalidates it. Any integration, application, or automation using this key will be unable to authenticate as soon as the deletion completes. Ensure all dependent systems are updated before proceeding. :::

Endpoint​

DELETE /v2/keys

Request Body​

FieldTypeRequiredConstraintsDescription
keyIdintYesMust be a valid, existing key IDThe ID of the key to permanently delete
{
"keyId": 9001
}

Response​

Returns a boolean indicating whether the deletion was successful.

{
"success": true,
"data": true
}

Response Fields​

FieldTypeDescription
successbooltrue if the key was deleted; false if the operation failed
databoolMirrors the deletion result

Code Examples​

curl -X DELETE "https://rest.ecgrid.io/v2/keys" \
-H "X-API-Key: $ECGRID_API_KEY"

See Also​