Playground

Playground

Credential

/api/v1/credentials

A stored credential — opaque secret material with metadata.

listgetcreaterevoke

Schema

FieldTypeNotes
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumfrontend | backend | server | system | apiWhere the write originated. Defaults to 'api'.
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
labelstring
scopejsonFree-form scope hints (e.g. {service: 'slack', tenant: '…'}).
secretstringReturned once at create time; never re-emitted.
namestringHuman-readable label for this credential — required.
typeenumapi_key | service_account | webhook_token | virtual_llmCredential classification.
kindenumservice | user | virtual_llm | webhook_signingCanonical key classification.
descriptionstringFree-form description of the credential's purpose.
statusenumactive | revoked | expiredLifecycle state.
scopesjsonPermission scopes granted to this credential (e.g. edm:read).
issued_to_user_iduuidUser this credential was issued to, if type=user.
issued_to_servicestringService this credential was issued to, if type=service.
allowed_modelsjsonAllowlist of model identifiers for type=virtual_llm.
tpm_limitintegerTokens-per-minute rate limit.
rpm_limitintegerRequests-per-minute rate limit.
max_budget_usdnumberMaximum spend cap in USD.
spend_usdnumberCached spend counter in USD.
blockedbooleanWhether this key is blocked from making requests.
blocked_reasonstringReason the key was blocked.
rotated_from_key_iduuidID of the key this was rotated from.
created_by_user_iduuidID of the user who created this key.
prefixstringFirst 8 chars of the raw key for UI display (alias of key_prefix).
key_hashstringSHA-256 hash of the raw key; never returned after creation.
key_prefixstringFirst chars of the raw secret, for UI display.
secret_fingerprintstringHMAC-SHA256 fingerprint of the raw secret; raw secret never persisted.
expires_atdate-timeExpiry timestamp; omit for non-expiring credentials.
last_used_atdate-timeTimestamp of the last successful use.
tagsjsonFree-form labels for grouping credentials.

API

client.credentials.*
Loading manifest…