Deleting an API Key

It’s good practice to create an API key with minimal privileges for one precise and exclusive purpose and delete this API key from the Coveo Cloud organization when it’s no longer needed for that purpose.

You can’t undo an API key delete operation. If you’re not entirely sure you should delete a specific API key, consider disabling it instead.

Use the Delete an api key operation to completely remove an API key from a specific Coveo Cloud organization.

Request template

DELETE<MyOrganizationId>/apikeys/<MyApiKeyId> HTTP/1.1
Accept: application/json
Authorization: Bearer <MyAccessToken>

In the request path:

In the Authorization HTTP header:

A successful response has no content, but signifies that the API key corresponding to the API key ID you provide as a path argument no longer exists in the target organization.

Sample Request

Deleting an API key in a Coveo Cloud organization

Accept: application/json
Authorization: Bearer **********-****-****-****-************

Successful response - 204 No Content

Recommended Articles