Credential HTTP API

Public endpoint reference for provider discovery, setup, Credential creation, authorization, lifecycle, and inspection.

referenceFor API clients, Console developers, operatorsOwner Constal platform teamVerified 2026-08-20

Every namespace endpoint requires authenticated authority and its corresponding Policy action. Secret material is accepted only by creation or version endpoints and is never returned.

Provider endpoints

MethodPathPurpose
GET/v1/namespaces/:namespace/credential-provider-catalogList packages visible to the tenant
GET/v1/namespaces/:namespace/credential-providersList installed providers
POST/v1/namespaces/:namespace/credential-providers/installInstall one package instance
GET/v1/namespaces/:namespace/credential-providers/:idRead an installed provider
POST/v1/deploymentsUpload a custom provider archive or Git snapshot request

Provider setup accepts either existing bootstrap Credential references or one-time inline material. Inline material is converted to encrypted Credentials and removed before the provider Resource reaches the registry.

Credential collection

MethodPathPurpose
GET/v1/namespaces/:namespace/credentialsList Credential Resources
POST/v1/namespaces/:namespace/credentialsCreate, mint, or begin authorization

Creation fields are:

FieldRequiredMeaning
idYesLowercase Credential name
providerYesInstalled CredentialProvider CRN
configurationYesNon-secret object validated by the provider schema
materialImport onlySecret value for an import provider
policiesNoCredential Policy attachments

Non-import providers reject caller material.

Credential item and lifecycle

MethodSuffix after /credentials/:idPurpose
GETnoneRead authoritative metadata
POST/versionsAdd imported material as a scheduled version
POST/activateActivate a scheduled version
POST/rotateAsk the pinned provider to mint a replacement
POST/authorizeBegin or continue interactive authorization
POST/revokeRevoke one version or all usable versions
GET/consumersList Resources that reference the Credential
GET/usesList bounded recent injection records
GET/eventsList bounded lifecycle events

Public authorization callback

GET /v1/credential-authorizations/callback is called by the external authorization service. It validates signed state and redirects to the Console Credential page. Client applications should never call it directly.

Responses and errors

Successful responses contain stable identity, lifecycle status, version metadata, expiry, fingerprints, and operation results. They never contain Credential material or provider-private state. See States and errors for operational handling.

Download the credential OpenAPI document for a machine-readable path and schema index.