Skip to main content
Create a new credential for a target.

POST /:target/:target_id/credentials

Path Parameters

ParameterTypeRequiredDescription
targetstringYesResource type: users, orgs, or blobs.
target_idstringYesThe unique ID of the target resource.

Request Body

ParameterTypeRequiredDescription
aliasstringYesUnique alias for the credential.
typestringYesCredential provider type (e.g., aws).
bodyobjectYesProvider-specific credential details.
descriptionstringNoDescription of the credential.

Response

ParameterTypeDescription
credential_idstringThe unique ID of the credential.

Example

{
  "alias": "aws-dev",
  "type": "aws",
  "body": {
    "access_key_id": "AKIA...",
    "secret_access_key": "secret..."
  }
}