Creates a secret.
You can only call this method when authenticated as a Wix app or Wix user identity.
Details of a secret.
Secret ID.
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"
}
}'
{
"id": "a560ff70-3e9b-41b6-b66d-cf3434085f7d"
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.