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

Response

201
application/json

Secret created successfully.

The response is of type object.