Skip to content

Get project credential

GET
/api/v1/projects/{projectId}/credentials/{credentialId}
curl --request GET \
--url https://localhost:10001/api/v1/projects/1/credentials/1 \
--header 'Authorization: <Authorization>'

Retrieve a specific credential by ID for the given project

projectId
required
integer

Project ID

credentialId
required
integer

Credential ID

Credential

Media type application/json
object
createdAt
string
createdBy
string
credentials
object
description
string
id
integer
isActive
boolean
lastUsedAt
string
metadata
object
name
string
projectId
integer
provider
string
type
string
Allowed values: AWS_STATIC AWS_ROLE GCP_SERVICE_ACCOUNT AZURE_SP BASIC_AUTH BEARER_TOKEN API_KEY SOAP_WSSE
updatedAt
string
Example
{
"type": "AWS_STATIC"
}

Bad request - Invalid project or credential ID

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Forbidden - Credential does not belong to project

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

Credential not found

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}