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

Delete an image

DELETE/v1/template-assets/{id}

Delete an image. Its URL stops working, also in emails already sent.

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

Path parameters

idstring (UUID)required
Image id.

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
image not found
DELETE/v1/template-assets/{id}
curl -X DELETE 'https://zapsmtp.xyz/v1/template-assets/5b0e3c1a-9d2f-4e7b-8a61-2f4c6d8e0a13' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "template_asset",
  "id": "5b0e3c1a-9d2f-4e7b-8a61-2f4c6d8e0a13",
  "deleted": true
}