API reference
Revoke an API key
/v1/api-keys/{id} Permanently revokes one credential owned by the authenticated identity.
- Authentication
- Send an API key or a service-account access token as a Bearer token.
Parameters
idstringpathRequiredCredential UUID returned at creation.
Responses
- 204
Key revoked.
objectX-Request-ID - 401
Authentication required.
PublicApiErrorX-Request-ID - 403
The API key lacks key-management permission.
PublicApiErrorX-Request-ID - 404
Key is absent or owned by another identity.
PublicApiErrorX-Request-ID
Schemas
ErrorCode
Machine-readable product API failure.
unauthenticatedforbiddeninvalid_requestnot_foundconflictpayment_requiredtoo_many_requestsupstreaminternal
ErrorRecovery
Browser-safe recovery action selected by the authoritative product boundary.
| Variant | Type |
|---|---|
| 1 | object |
| 2 | object |
PublicApiError
Stable public error envelope for APIs whose reason vocabulary is extensible.
codeErrorCodeRequiredClosed status category suitable for program control flow.
Allowedunauthenticatedforbiddeninvalid_requestnot_foundconflictpayment_requiredtoo_many_requestsupstreaminternal
messagestringRequiredSafe diagnostic intended for operators, not program branching.
reasonstringRequiredExtensible machine-readable detail; clients must accept unknown values.
recoverynull | ErrorRecoveryOptionalrequest_idstring | nullOptionalThe request reference, equal to the response's `X-Request-ID`; quote it to support.
validationnull | ValidationReportOptional
ValidationIssue
One actionable, privacy-safe contract violation.
allowed_valuesarray | nullOptionalMaximum items16
codestringRequiredStable, extensible machine-readable category.
Maximum length64
pathstringRequiredRFC 6901 pointer to the rejected location; empty means the root value.
Maximum length1024
suggestionstringRequiredCode-owned instruction for correcting the request.
Maximum length512
ValidationReport
Bounded validation feedback shared by model, REST, and MCP boundaries.
contractstringRequiredStable contract name, normally the published schema component name.
Maximum length128
issuesValidationIssue[]RequiredAt most eight deterministic violations. Correct every issue before retrying.
Maximum items8
truncatedbooleanRequiredWhether more violations were omitted; retry after correcting the listed issues.
curl --request DELETE "https://platform.yep.com/api/v1/api-keys/$YEP_API_KEY_ID" \
--header "Authorization: Bearer $YEP_API_KEY"