POST

Create Secret


Creates a secret.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Secrets
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/_api/cloud-secrets-vault-server/api/v1/secrets

Body Params
secretSecretRequired

Details of a secret.

Response Object
idstring

Secret ID.

Create Secret Example 1
Request
cURL
curl -X POST 'https://www.wixapis.com/_api/cloud-secrets-vault-server/api/v1/secrets' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ -d '{ "secret": { "name": "secret_key", "description": "AWS secret access key", "value": "Fm8OfflH6bJOwWjenqAtLurLbkiMNvmhQHZV+118" } }'
Response
JSON
{ "id": "a560ff70-3e9b-41b6-b66d-cf3434085f7d" }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?