Menu
Platform
AI
Alerts and status pages
App store purchases
Credits
Generated Assets
Knowledge
KV
Localization
Notifications
Organizations
Payments
Queues
Realtime
Sandboxes
Storage
Workflows
API reference
- Overview
- Access API keys
- Agent sessions API
- Agent versions API
- Agents API
- AI models API
- Artifact references API
- Artifacts API
- Assets API
- Auth configs API
- Bank receipts API
- Bank transfer accounts API
- Buckets API
- Builds API
- Catalogs API
- Chat profiles API
- Chat reports API
- Chat sticker packs API
- Checkout policies API
- Checkout sessions API
- Config changes API
- Config flags API
- Config segments API
- Connection providers API
- Connections API
- Connectors API
- Credit grants API
- Customer organizations API
- Customer subscriptions API
- Databases API
- Documents API
- Email domains API
- End users API
- Entities API
- Entitlement grants API
- Entries API
- Environments API
- Episodes API
- Error events API
- Error groups API
- Events API
- Exchange rates API
- Generations API
- Glossaries API
- Goals API
- Identities API
- Inbound emails API
- Inbound endpoints API
- Inbound messages API
- Inbound sms API
- Invitations API
- Job runs API
- Jobs API
- Knowledge schemas API
- KV API
- KV namespaces API
- Lease events API
- Leases API
- Licence keys API
- Licence tokens API
- Mail domains API
- Mail routes API
- Mailbox connect links API
- Mailbox OAUTH apps API
- Mailboxes API
- Memberships API
- Memories API
- Memory stores API
- Merchant accounts API
- Message topics API
- Messages API
- OAUTH clients API
- Objects API
- Organization roles API
- Orgs API
- Owner pools API
- Phone numbers API
- Portal sessions API
- Preferences API
- Price catalogs API
- Processor events API
- Projects API
- Queued executions API
- Queues API
- Realtime channels API
- Realtime members API
- Realtime messages API
- Recipients API
- Relations API
- Releases API
- Revenue API
- Revenue facts API
- Revenue sources API
- Runs API
- Sandbox shapes API
- Schedules API
- Scrubbing policies API
- Search API
- Search indexes API
- Secret versions API
- Secrets API
- Service enablements API
- Service observations API
- Services API
- Serving routes API
- Session events API
- Sessions API
- Signing key versions
- Signing keys
- Sms numbers API
- Source maps API
- Spaces API
- Store connections API
- Store consumption requests API
- Store purchases API
- Subscriptions API
- Suppressions API
- Tax threshold statuses API
- Templates API
- Test clocks API
- Token exchanges API
- Transfers API
- Trust policies API
- Trusted issuers API
- Uptime checks API
- Uptime manifests API
- Uptime sources API
- Usage events API
- Usage invoices API
- Usage meter prices API
- Usage meters API
- Usage reservations API
- Usage settings API
- Usage tiers API
- Volumes API
- Waits API
- Webhook deliveries API
- Webhook endpoints API
- Workflows API
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
Management secret deletion
Bodyless DELETE forms for the management secret store.
Delete a management secret
The management secret store accepts all three forms below. Each uses the same Authorization bearer credential, organization/project/environment authorization, soft deletion, version retention, dependency checks and audit writer. This is the management API, not the Resource API's named secret deletion.
| Form | Request |
|---|---|
| Path (preferred) | DELETE /v1/secrets/{sec_id} |
| Query | DELETE /v1/secrets?id=sec_xxx |
| JSON body (compatible) | DELETE /v1/secrets with {"id":"sec_xxx"} |
The /api/v1 prefix also accepts these forms. A secret id is a sec_ TypeID
or UUID. Different ids supplied through the path, query or body are rejected
with 400 conflicting_secret_id; equivalent UUID and TypeID representations
are accepted. Invalid ids return 400 invalid_secret_id.
Use reason in the query for a bodyless request, or in the JSON body. The audit
entry records it as metadata.reason. If both supply a reason, they must match.
No secret value is needed or returned.
curl -X DELETE "https://api.sylphx.com/v1/secrets/$SECRET_ID?reason=retire%20unused%20secret" \
-H "Authorization: Bearer $SYLPHX_API_KEY"
curl -X DELETE "https://api.sylphx.com/v1/secrets?id=$SECRET_ID&reason=retire%20unused%20secret" \
-H "Authorization: Bearer $SYLPHX_API_KEY"Success returns 200 and the existing management response (ok: true). The
stored row and versions are retained, but subsequent
GET /v1/secrets/detail?id=sec_xxx returns 404 secret_not_found, and the
ordinary list excludes the deleted row. A repeated deletion returns 404.
A service credential requires project:secrets:manage (or an existing scope
that grants that capability) and must be bound to the secret's owning project
and environment. Human credentials use the existing secret-management role
checks. Supplying an id in the URL does not grant access to it.
A secret still in use returns 409 secret_in_use. The existing ?force=true
(or JSON "force": true) semantics are unchanged: an override is audited in
the mutation transaction, and failure to write that audit rolls it back with
503 secret_audit_unavailable. A reason does not override dependency checks.