API reference
List API keys
/v1/api-keys Lists the active and disabled keys of the authenticated key's owner, newest first, including the calling key. Revoked and expired keys are omitted, and no secret is returned.
- Authentication
- Send an API key or a service-account access token as a Bearer token.
Responses
- 200
The owner's keys, newest first.
PublicApiKeyListX-Request-ID - 401
Authentication required.
PublicApiErrorX-Request-ID - 403
The API key lacks key-management permission.
PublicApiErrorX-Request-ID
PublicApiKeyList
The API keys of the calling credential's owner, newest first.
api_keysPublicApiKey[]RequiredActive and disabled keys, newest first; revoked and expired keys are omitted.
Schemas
ApiKeyState
API-key lifecycle state visible in listings.
activedisabled
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
PublicApiKey
Public metadata for one API key; it never carries the secret or any digest of it.
created_atstringRequiredCreation timestamp in UTC.
display_prefixstringRequiredNon-secret prefix used to identify the key.
expires_atstring | nullRequiredExpiry timestamp in UTC, null for a key that never expires.
idstringRequiredStable credential id used for revocation.
last_used_atstring | nullOptionalMost recent use in UTC, absent until the key is first used.
monthly_spend_limit_microusdinteger | nullOptionalMonthly spend ceiling in millionths of a US dollar, absent when the key has none.
Minimum0
namestringRequiredUser-provided display name.
stateApiKeyStateRequiredWhether the key may authenticate now.
Allowedactivedisabled
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 GET "https://platform.yep.com/api/v1/api-keys" \
--header "Authorization: Bearer $YEP_API_KEY" {
"api_keys": [
{
"created_at": "string",
"display_prefix": "string",
"expires_at": "string",
"id": "string",
"name": "string",
"state": "active"
}
]
}