Skip to content

ModelCredentialRequest

A credential to create, or what an existing one should become. On an update every field is replaced. Keys are matched by id: an existing key sent with its id and no value is kept as it is, a key sent with a value is stored, and an existing key left out is removed.

Kind: an object, used in requests.

FieldTypeRequiredDescription
namestring
descriptionstring | null
providerModelKeyProvider
endpointstring | nullAn HTTPS endpoint on the public internet; null for the provider’s public API.
cloudCredentialCloudInput| nullFor an Anthropic credential: Claude on Amazon Bedrock (with awsRegion) or Google Vertex AI (with gcpProjectId and gcpRegion), with no endpoint. The key is then the Bedrock API key, or the service account’s JSON key file. Only code pipelines’ Claude Code agents run on it.
keysModelCredentialKeyRequest[]
modelsCredentialModelInput[]
tagstring | null
{
"name": "...",
"description": "...",
"provider": "Anthropic",
"endpoint": "...",
"cloud": {
"kind": "Bedrock",
"awsRegion": "...",
"gcpProjectId": "...",
"gcpRegion": "..."
},
"keys": [
{
"id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"value": "..."
}
],
"models": [
{
"model": "...",
"deploymentName": "...",
"contextWindowTokens": 0
}
],
"tag": "..."
}