POST
/
api
/
v1
/
pki
/
alerts
cURL
curl --request POST \
  --url https://us.infisical.com/api/v1/pki/alerts \
  --header 'Content-Type: application/json' \
  --data '{
  "projectId": "<string>",
  "pkiCollectionId": "<string>",
  "name": "<string>",
  "alertBeforeDays": 123,
  "emails": [
    "[email protected]"
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "projectId": "<string>",
  "pkiCollectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "alertBeforeDays": 123,
  "recipientEmails": "<string>"
}

Body

application/json
projectId
string
required

The ID of the project to create the alert in.

pkiCollectionId
string
required

The ID of the PKI collection to bind to the alert.

name
string
required

The name of the alert.

alertBeforeDays
number
required

The number of days before the certificate expires to trigger the alert.

emails
string<email>[]
required

The email addresses to send the alert email to.

Required array length: 1 - 5 elements

Response

Default Response

id
string<uuid>
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
projectId
string
required
pkiCollectionId
string<uuid>
required
name
string
required
alertBeforeDays
number
required
recipientEmails
string
required