Overview
Credentials store authentication information for external services like cloud providers, SCM systems, machines, and vaults. Credential types define the schema for credential fields.Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v2/credentials/ | List credentials |
| POST | /api/v2/credentials/ | Create credential |
| GET | /api/v2/credentials/{id}/ | Retrieve credential |
| PATCH | /api/v2/credentials/{id}/ | Update credential |
| DELETE | /api/v2/credentials/{id}/ | Delete credential |
| POST | /api/v2/credentials/{id}/copy/ | Copy credential |
| POST | /api/v2/credentials/{id}/test/ | Test external credential |
List Credentials
Create Credential
Credential name
Credential description
Organization ID (null for personal credentials)
Credential type ID
Credential-specific input fields (varies by credential type)
The
inputs object structure depends on the credential type. Use OPTIONS or GET credential_types to see required fields.Retrieve Credential
Response Schema
Credential ID
Credential name
Credential description
Organization ID (null for personal)
Credential type ID
Whether credential is managed (read-only if true)
Credential inputs (sensitive fields are encrypted)
Human-readable credential kind
Whether this is a cloud credential
Whether this is a Kubernetes credential
Links to related resources:
organization- Parent organizationcredential_type- Credential type detailsowner_users- Users who own this credentialowner_teams- Teams who own this credentialactivity_stream- Activity logaccess_list- Access listobject_roles- Available rolescopy- Copy endpointinput_sources- Input sources for external credentials
Update Credential
Delete Credential
Credential Types
List Credential Types
Common Credential Types
Machine (SSH)
Source Control (Git/SVN)
Amazon Web Services
Vault
Input Sources
List Input Sources
Test External Credential
Owner Users
Owner Teams
Object Roles
- admin_role - Full credential administration
- use_role - Use credential in jobs
- read_role - View credential details
Copy Credential
Filtering
Ordering
Security
Encrypted Storage
Encrypted Storage
All sensitive credential fields are encrypted in the database.
Display vs Storage
Display vs Storage
The API shows encrypted values as
$encrypted$. Actual values are never returned.Role-Based Access
Role-Based Access
Users need the
use role to use credentials in jobs, and admin role to view/edit them.Managed Credentials
Managed Credentials
System-managed credentials (
managed=true) cannot be modified or deleted.