Use the credentials API to store, update, list, read, and delete tenant-scoped credentials.All routes on this page require
x-api-key.
Using stored credentials in jobs
The credentials API stores encrypted tenant-scoped key/value credentials. A workflow must declare the credential names it needs; hosted execution injects only those names from Libretto Cloud’s credential store into workflow params undercredentials. Local non-production libretto run injects matching
LIBRETTO_CLOUD_ variables from .env into the same field.
For example, LIBRETTO_CLOUD_OPENAI_API_KEY resolves to
input.credentials.openai_api_key.
POST /v1/credentials/create
Store a new credential value.
Request fields:
name: credential namevalue: string value to encrypt and store
successcredential_idmessage
POST /v1/credentials/list
List stored credentials.
Response fields:
credentials
credential_idnamecreated_atupdated_at
POST /v1/credentials/get
Read a stored credential by name.
Request fields:
name: credential name
idvalue
POST /v1/credentials/update
Update a credential by id.
Request fields:
id: credential idvalue: optional replacement string valuename: optional new name
successmessage
POST /v1/credentials/delete
Delete a credential by id.
Request fields:
id: credential id
successmessage
Webhooks
Configure tenant-level job result webhooks.
Jobs and Logs
Run workflows that may use stored credentials.
Schedules
Schedule recurring workflow runs.