Creates a new secret in the vault. The secret is encrypted at rest.
cURL
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" }
Enter the JWT token.
Secret created successfully.
The response is of type object.
object
Was this page helpful?