Revoke an endpoint key

DELETE
/v1/endpoints/{endpoint}/keys/{key}

Stops the key working. Callers holding it are refused within half a minute. Revoking a key that is already revoked is a 404.

Requires an API key with the workspace:write scope.

Authorization

apiKey
headerAuthorizationBearer <token>

A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.

Path Parameters

endpoint*string

The endpoint id: the first segment of its run.vlayers.ai URL.

key*string

The key id from GET /v1/agents/{id}/endpoints.

Response Body

The revoked key

application/json
  1. response
id*string
Formatuuid
kind*string
Value in"api""hook""mcp"
name*string
preview*string
createdAt*string
Formatdate-time
expiresAt*|
Formatdate-time
lastUsedAt*|
Formatdate-time
revokedAt*|
Formatdate-time
Example Request
curl -X DELETE "https://api.vlayers.ai/v1/endpoints/$ENDPOINT_ID/keys/$KEY_ID" \  -H "Authorization: Bearer $VOICELAYER_API_KEY"
Example Response
{  "id": "0192f5c1-5e6f-7a8b-9c0d-1e2f3a4b5c67",  "kind": "api",  "name": "Partner integration",  "preview": "vle_AbCd…wXyZ",  "createdAt": "2026-10-20T15:04:05.000Z",  "expiresAt": null,  "lastUsedAt": null,  "revokedAt": "2026-10-20T15:04:05.000Z"}