Skip to content
TriedDocs
Account

Delete public key

Delete a public key so browsers can no longer start calls or chats with it.

DELETEhttps://api.tried.com.au/public-keys/{id}

Deletes a public key. Browsers that still send it get 401 from then on. Calls and chats already started with it are not affected.

Request#

Path parameter Type Description
id string The public_key_id, for example pk_4a7e1c9b2d0f5e83a6c1b7d2.

This endpoint takes no body.

Example request#

curl -X DELETE https://api.tried.com.au/public-keys/pk_4a7e1c9b2d0f5e83a6c1b7d2 \
  -H "Authorization: Bearer $TRIED_API_KEY"
await fetch("https://api.tried.com.au/public-keys/pk_4a7e1c9b2d0f5e83a6c1b7d2", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
import os, requests

requests.delete(
    "https://api.tried.com.au/public-keys/pk_4a7e1c9b2d0f5e83a6c1b7d2",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)

Response#

204 No Content

The response has no body. The delete is recorded in the audit log as public_key.delete.

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the admin scope. Dashboard members get The member role is read-only.
404 Public key not found in this workspace.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.