Contacts API: Memberships
OK
Not Found
GET /v2/e01/api/contacts/memberships/{membership} HTTP/1.1
Bearer: YOUR_API_KEY
Accept: */*
{
"GroupId": "123e4567-e89b-12d3-a456-426614174000",
"MembershipId": "123e4567-e89b-12d3-a456-426614174000",
"ModifiedBy": "123e4567-e89b-12d3-a456-426614174000",
"UserId": "123e4567-e89b-12d3-a456-426614174000",
"MembershipFunction": "text",
"MembershipEffective": "2026-01-01T00:00:00.000Z",
"MembershipExpiry": "2026-01-01T00:00:00.000Z",
"Modified": "2026-01-01T00:00:00.000Z",
"LastChangeTime": "2026-01-01T00:00:00.000Z",
"LastChangeType": "text",
"LastChangeUser": "123e4567-e89b-12d3-a456-426614174000"
}OK
No content
Not Found
HEAD /v2/e01/api/contacts/memberships/{membership} HTTP/1.1
Bearer: YOUR_API_KEY
Accept: */*
No content
Use LastChangeTimeSince and LastChangeTimeBefore to restrict the result set to memberships modified within a specific window. Both parameters accept ISO 8601 date-time values, for example "2026-07-06T14:00:00+00:00". LastChangeTimeSince is inclusive; LastChangeTimeBefore is exclusive. ModifiedSince and ModifiedBefore are also supported for the same purpose against the legacy Modified timestamp.
OK
POST /v2/e01/api/contacts/memberships/collect HTTP/1.1
Bearer: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 518
{
"GroupId": "123e4567-e89b-12d3-a456-426614174000",
"UserId": "123e4567-e89b-12d3-a456-426614174000",
"AccountScope": "text",
"MembershipEffectiveSince": "2026-01-01T00:00:00.000Z",
"MembershipEffectiveBefore": "2026-01-01T00:00:00.000Z",
"MembershipExpirySince": "2026-01-01T00:00:00.000Z",
"MembershipExpiryBefore": "2026-01-01T00:00:00.000Z",
"ModifiedSince": "2026-01-01T00:00:00.000Z",
"ModifiedBefore": "2026-01-01T00:00:00.000Z",
"LastChangeTimeSince": "2026-01-01T00:00:00.000Z",
"LastChangeTimeBefore": "2026-01-01T00:00:00.000Z"
}OK
[
{
"GroupId": "123e4567-e89b-12d3-a456-426614174000",
"MembershipId": "123e4567-e89b-12d3-a456-426614174000",
"ModifiedBy": "123e4567-e89b-12d3-a456-426614174000",
"UserId": "123e4567-e89b-12d3-a456-426614174000",
"MembershipFunction": "text",
"MembershipEffective": "2026-01-01T00:00:00.000Z",
"MembershipExpiry": "2026-01-01T00:00:00.000Z",
"Modified": "2026-01-01T00:00:00.000Z",
"LastChangeTime": "2026-01-01T00:00:00.000Z",
"LastChangeType": "text",
"LastChangeUser": "123e4567-e89b-12d3-a456-426614174000"
}
]Use LastChangeTimeSince and LastChangeTimeBefore to restrict the count to memberships modified within a specific window. Both parameters accept ISO 8601 date-time values, for example "2026-07-06T14:00:00+00:00". LastChangeTimeSince is inclusive; LastChangeTimeBefore is exclusive. ModifiedSince and ModifiedBefore are also supported for the same purpose against the legacy Modified timestamp.
OK
POST /v2/e01/api/contacts/memberships/count HTTP/1.1
Bearer: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 518
{
"GroupId": "123e4567-e89b-12d3-a456-426614174000",
"UserId": "123e4567-e89b-12d3-a456-426614174000",
"AccountScope": "text",
"MembershipEffectiveSince": "2026-01-01T00:00:00.000Z",
"MembershipEffectiveBefore": "2026-01-01T00:00:00.000Z",
"MembershipExpirySince": "2026-01-01T00:00:00.000Z",
"MembershipExpiryBefore": "2026-01-01T00:00:00.000Z",
"ModifiedSince": "2026-01-01T00:00:00.000Z",
"ModifiedBefore": "2026-01-01T00:00:00.000Z",
"LastChangeTimeSince": "2026-01-01T00:00:00.000Z",
"LastChangeTimeBefore": "2026-01-01T00:00:00.000Z"
}OK
{
"Count": 1,
"Summary": "text"
}Use LastChangeTimeSince and LastChangeTimeBefore to download only memberships modified within a specific window, which is useful for incremental integrations that already hold most of the data. Both parameters accept ISO 8601 date-time values, for example "2026-07-06T14:00:00+00:00". LastChangeTimeSince is inclusive; LastChangeTimeBefore is exclusive. ModifiedSince and ModifiedBefore are also supported against the legacy Modified timestamp. When polling for deltas, subtract a small overlap (for example five minutes) from the previous poll time to allow for projection lag.
OK
No content
POST /v2/e01/api/contacts/memberships/download HTTP/1.1
Bearer: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 518
{
"GroupId": "123e4567-e89b-12d3-a456-426614174000",
"UserId": "123e4567-e89b-12d3-a456-426614174000",
"AccountScope": "text",
"MembershipEffectiveSince": "2026-01-01T00:00:00.000Z",
"MembershipEffectiveBefore": "2026-01-01T00:00:00.000Z",
"MembershipExpirySince": "2026-01-01T00:00:00.000Z",
"MembershipExpiryBefore": "2026-01-01T00:00:00.000Z",
"ModifiedSince": "2026-01-01T00:00:00.000Z",
"ModifiedBefore": "2026-01-01T00:00:00.000Z",
"LastChangeTimeSince": "2026-01-01T00:00:00.000Z",
"LastChangeTimeBefore": "2026-01-01T00:00:00.000Z"
}OK
No content
Use LastChangeTimeSince and LastChangeTimeBefore to restrict the result set to memberships modified within a specific window. Both parameters accept ISO 8601 date-time values, for example "2026-07-06T14:00:00+00:00". LastChangeTimeSince is inclusive; LastChangeTimeBefore is exclusive. ModifiedSince and ModifiedBefore are also supported for the same purpose against the legacy Modified timestamp.
OK
POST /v2/e01/api/contacts/memberships/search HTTP/1.1
Bearer: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 518
{
"GroupId": "123e4567-e89b-12d3-a456-426614174000",
"UserId": "123e4567-e89b-12d3-a456-426614174000",
"AccountScope": "text",
"MembershipEffectiveSince": "2026-01-01T00:00:00.000Z",
"MembershipEffectiveBefore": "2026-01-01T00:00:00.000Z",
"MembershipExpirySince": "2026-01-01T00:00:00.000Z",
"MembershipExpiryBefore": "2026-01-01T00:00:00.000Z",
"ModifiedSince": "2026-01-01T00:00:00.000Z",
"ModifiedBefore": "2026-01-01T00:00:00.000Z",
"LastChangeTimeSince": "2026-01-01T00:00:00.000Z",
"LastChangeTimeBefore": "2026-01-01T00:00:00.000Z"
}OK
[
{
"GroupId": "123e4567-e89b-12d3-a456-426614174000",
"MembershipId": "123e4567-e89b-12d3-a456-426614174000",
"UserId": "123e4567-e89b-12d3-a456-426614174000",
"GroupName": "text",
"GroupType": "text",
"UserEmail": "text",
"UserName": "text"
}
]Last updated
Was this helpful?