Skip to main content
DELETE
AhaSend Go SDK
The AhaSend API removes one contact from one list. Access requires lists:write, not lists:delete. {id_or_email} is the contact ID or its email address. Percent-encode an email address exactly once. See Name a contact in the path. The API deletes the membership, and with it any record that the contact unsubscribed from this list. So when you add the contact again later, nothing shows the earlier unsubscribe. To stop email from this list and keep the record, use Add or Update a List Contact with subscription_status: "unsubscribed" instead. You can undo an unsubscribe. A membership that is complained cannot be removed and answers 409, so the contact cannot be added back as confirmed. A list, a contact or a membership that does not exist answers 404, and the message says which. The contact itself stays.

Authorizations

Authorization
string
header
required

API key for authentication. Non-empty Security Requirement values are AhaSend API-key roles. Roles listed within one requirement object are jointly required; separate requirement objects are alternatives.

Path Parameters

account_id
string<uuid>
required

Account ID

list_id
string<uuid>
required

List ID

id_or_email
string
required

Contact UUID or email address. Percent-encode an email exactly once as a path segment; SDK callers pass the raw email value.

Response

Contact removed from the list

message
string
required

Success message