Skip to main content
GET
AhaSend Go SDK
The AhaSend API returns the account’s segments, newest first. Access requires segments:read. Each segment gives its definition, its state and member_count, the contacts that match its rules, whatever their consent. To read how many of them a campaign would reach, use Get Segment. See Members and reachable contacts. 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

Query Parameters

limit
integer
default:100

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

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