Ana içerik geç

DELETE /api/zeq/llm/credentials/:id

Soft-disable. Sets active=false. The row stays in the table so audit trails are preserved (which credential was used for which agent run). Agent endpoints stop accepting the credential immediately.

To rotate: create the new credential first (so you have its ID), then delete the old.

Auth

Authorization: Bearer zeq_ak_…. Paid-tier only. Owner of the credential.

Cost

0 ZEQ. Lifecycle bookkeeping.

Request

curl -X DELETE https://YOUR-FRAMEWORK/api/zeq/llm/credentials/5b7a9c12-... \
-H "Authorization: Bearer zeq_ak_..."

Response · 200 OK

{
"ok": true,
"id": "5b7a9c12-...",
"active": false,
"deactivated_at": "2026-05-10T13:09:01Z"
}

Errors

StatusCodeCause
402SUBSCRIPTION_REQUIREDFree-tier caller.
404not_foundBad UUID, or credential belongs to another user.
409already_inactiveIdempotent — no charge, returns the existing row.