Skip to main content
POST
Create credential
Requires the Alerts Admin role. CoreWeave encrypts the secret and never returns it. The format of secret depends on credentialType. For the formats, see Destination channels and credentials.
Example request

Autorisations

Authorization
string
header
défaut:Bearer [API-ACCESS-TOKEN]
requis

CoreWeave API access token sent as a bearer token.

Corps

application/json
displayName
string
requis

A human-readable name for the credential, 1 to 255 characters.

credentialType
string
requis

The kind of secret. Use webhook for generic webhooks, slack_webhook for Slack incoming webhooks, and google_chat for Google Chat webhooks. The Cloud Console creates slack_oauth credentials through the Slack OAuth flow.

secret
string
requis

The secret value. For webhook, a JSON-encoded string with a required HTTPS url and an optional signing_secret. For slack_webhook, a URL that starts with https://hooks.slack.com/services/. For google_chat, a URL that starts with https://chat.googleapis.com/v1/spaces/.

Réponse

OK

credential
object

An encrypted secret that a destination uses to deliver alerts. The API never returns the secret value.