Skip to navigation

DelSecret

View as Markdown

Deletes an existing secret.

Example request: Delete secret with ID 10.

Authentication

AuthorizationBearer

Voximplant Management API uses signed JWT tokens generated from your service-account private key. Pass the token in the Authorization header as a Bearer value:

Authorization: Bearer $VOXIMPLANT_TOKEN

See Authorization for ready-to-copy snippets in bash, Python, Node.js and Go that turn your credentials.json into a token.

Query parameters

application_idintegerOptional

Application ID. Required unless application_name is provided.

application_namestringOptional

Application name. Required unless application_id is provided.

secret_idlist of integersRequired

IDs to delete. A list separated by semicolons (;). Use the 'all' value to delete all secrets

secret_namelist of stringsRequired

Secret names to delete. List separated by semicolons (;)

Response

Successful response
resultintegerOptional
Returns 1 if the secret has been deleted successfully