Delete Email Asset
DELETE/api/email-assets/:id
Deletes an image and its file. Blocked with 422 asset_in_use ("Used in 3 templates and 1 brand layout — remove it there first.") while any template body or brand layout (HTML or quick settings) still shows it.
Required scope:
settings:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token and the email_templates.update permission.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Content-Type
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Content-Type
Not Found
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.