Delete Email
delete
/v1/emails/{email_id}Soft-deletes an email resource. Side effect: stamps deleted_at so the email drops out of reads and its links stop resolving. Returns no body.
Requires a bearer token: Authorization: Bearer <token>.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| email_id | string <uuid> | Yes | Public UUID of the email.e.g. e6f7a8b9-0c1d-42e3-94f5-a6b7c8d9e0f1 |
Request
cURL
curl -X DELETE https://api.wellapp.ai/v1/emails/{email_id} \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
204 — The email was soft-deleted.
401 — Unauthorized
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}403 — Forbidden
{
"code": "FORBIDDEN",
"status": 403,
"title": "Forbidden",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}404 — Not Found
{
"code": "NOT_FOUND",
"status": 404,
"title": "Not Found",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}