Skip to content

Credentials

Credential sets hold secret metadata used by subscriptions, actions, and other configured integrations. The HTTP API returns metadata only. Secret values are written through dedicated key-management routes and are never returned in responses.

All paths are prefixed with /api/repos/:orgName/:repoName.


Create a credential set.

Auth: Required.

FieldTypeRequiredDescription
namestringYesCredential set name
scopestringNo"repo" or "org". Defaults to "repo".
descriptionstringNoHuman-readable description
{
"name": "webhook-keys",
"scope": "repo",
"description": "Webhook auth secrets",
"keyNames": []
}
CodeStatusDescription
ALREADY_EXISTS409A credential set with this name already exists in the org
VALIDATION_ERROR400Invalid or empty credential set name
RATE_LIMITED429Too many credential set creation requests. Honor Retry-After before retrying.
Terminal window
curl -X POST https://api.warmhub.ai/api/repos/myorg/myrepo/credentials/sets \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"name": "webhook-keys",
"scope": "repo",
"description": "Webhook auth secrets"
}'

List credential sets visible to the current repository.

Auth: Required.

[
{
"name": "webhook-keys",
"scope": "repo",
"description": "Webhook auth secrets",
"keyNames": ["WEBHOOK_BEARER_TOKEN"],
"createdAt": 1741132800000,
"updatedAt": 1741132800000
}
]
Terminal window
curl https://api.warmhub.ai/api/repos/myorg/myrepo/credentials/sets \
-H "Authorization: Bearer <token>"

Get metadata for one credential set.

Auth: Required.

ParameterTypeDescription
namestringCredential set name (URL-encoded)
{
"name": "webhook-keys",
"scope": "repo",
"description": "Webhook auth secrets",
"keyNames": ["WEBHOOK_BEARER_TOKEN"],
"createdAt": 1741132800000,
"updatedAt": 1741132800000
}
CodeStatusDescription
NOT_FOUND404Credential set not found or not visible to this repository
Terminal window
curl https://api.warmhub.ai/api/repos/myorg/myrepo/credentials/sets/webhook-keys \
-H "Authorization: Bearer <token>"