apiKeyManagement

Delete API Key

Delete an API key. Superadmins only. The key stops working immediately.

key_id is the key's id from GET /api-keys, not the key value itself. Passing a key value returns a 400.

Authenticate with Basic Auth (your Coperniq email and password), not an API key.

delete/api-keys/{key_id}

Request

  • Base URL: https://api.coperniq.io/v1
  • URL: https://api.coperniq.io/v1/api-keys/{key_id}
  • Auth: HTTP basic

Path parameters

key_idstring required

The key's id from GET /api-keys

Query parameters

company_idinteger

ID of the company to manage. Needed only when the authenticated user belongs to more than one company and the default (their first non-collaborator company) is not the one you want. You must be a superadmin in that company. Your company ID can be found in the URL after logging in to the Coperniq UI: https://app.coperniq.io/{company_id}/inbox.

Response

The key was deleted

successboolean
idstring

The deleted key's ID

dbDeletedboolean

The key was deleted in Coperniq. This is what stops it from working.

awsDeletedboolean

The key was removed from the API gateway. false means there was no gateway key to remove (for example, it had already been removed); the key still no longer works, because dbDeleted is true.

Changes

No recorded changes to this operation across all 1 revision of this API.