Runs examples for real against your account. Test keys only; kept in this tab, never stored on our side. Get a key
ZapSMTP / Docs / Variables

Delete a global variable

DELETE/v1/variables/global/{key}

Delete a global variable. Sends with a template that still uses it then fail with 422 template_render_error until it is set again.

Requires a full-access live key; test keys get 403 test_key_restricted.

Path parameters

keystringrequired
The key, used as {{global.key}}: letters, digits, _ and -, starting with a letter or _, up to 64; global is reserved. Limits: other keys → 422 invalid_parameter

Errors

restricted_api_keyHTTP 403
test_key_restrictedHTTP 403
test-mode keys can send test email and read, not change the account: use a live key
not_foundHTTP 404
global variable not found
DELETE/v1/variables/global/{key}
curl -X DELETE 'https://zapsmtp.xyz/v1/variables/global/company_name' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "variable",
  "name": "global.company_name",
  "deleted": true
}