Commet
  • Pricing
Log InTry out
Create API key POSTDelete API key DELETEList API keys GET
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Delete API key

Permanently revoke and delete an API key.

DELETE
/api-keys/{id}

Permanently revoke and delete an API key.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api-keys/string"
{  "success": true,  "data": {    "id": "string",    "deleted": true,    "object": "string",    "livemode": true  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}

Create API key POST

Create a new API key. The full key is only returned once in the response.

List API keys GET

List API keys with cursor-based pagination. Keys are returned without the full secret.