Skip to main content
GET
AhaSend Go SDK
The AhaSend API returns the members of one segment, by contact ID, lowest first. Access requires segments:read and contacts:read, because the members are contacts. Each item gives the contact_id, the email address of the contact and entered_at, the time it became a member.
  • A member matches the rules whatever its consent, so a campaign can reach fewer contacts than this operation returns. See Members and reachable contacts.
  • While the segment is building, the members may still follow its previous rules. See States.
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

segment_id
string<uuid>
required

Segment ID

Query Parameters

limit
integer
default:100

Maximum number of members 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

Response

Paginated segment members

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