Skip to main content
GET
AhaSend Go SDK
The AhaSend API returns the lists that one contact is on, newest membership first. Access requires lists:read. {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. Each item is a membership with its subscription_status and the list. Deleted lists are left out. subscription_status filters the memberships by unconfirmed, confirmed, unsubscribed or complained. This is the reverse of List Contacts on a List. There is no operation that removes a contact from all lists. To stop marketing email to the contact on all lists, use Update Contact with unsubscribed: true. This does not change the memberships: each one still shows its status, but the contact no longer counts toward the contact_count of any list. To unsubscribe the contact from one list, use Add or Update a List Contact with subscription_status: "unsubscribed". Pages use cursors: send after or before, not both. See Pagination.

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

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.

Query Parameters

limit
integer
default:100

Maximum number of memberships to return

Required range: 1 <= x <= 100
after
string

Cursor for the next page; cannot be combined with before

before
string

Cursor for the previous page; cannot be combined with after

subscription_status
enum<string>

Per-list consent filter

Available options:
unconfirmed,
confirmed,
unsubscribed,
complained

Response

Paginated list memberships, each with its list embedded

object
enum<string>
required
Available options:
list
data
object[]
required
pagination
object
required