Skip to main content
POST
/
workflows
/
vault
Create a vault secret
curl --request POST \
  --url https://v1.api.altostrat.io/workflows/vault \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Third-Party API Key",
  "secret": "super-secret-value",
  "expires_at": "2023-11-07T05:31:56Z"
}'
{
  "id": "vlt_a1b2c3d4e5f6g7h8",
  "name": "Stripe API Key",
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Enter the JWT token.

Body

application/json
name
string
required
Required string length: 3 - 50
Example:

"Third-Party API Key"

secret
string
required
Maximum length: 2000
Example:

"super-secret-value"

expires_at
string<date-time> | null

Must be a future date.

Response

Secret created successfully.

id
string
Example:

"vlt_a1b2c3d4e5f6g7h8"

name
string
Example:

"Stripe API Key"

created_at
string<date-time>
expires_at
string<date-time> | null
I