Fetch List Memberships Ordered by ID

GET {{baseUrl}}/crm/v3/lists/:listId/memberships?after=<string>&before=<string>&limit=100

Fetch the memberships of a list in order sorted by the recordId of the records in the list.

The recordIds are sorted in ascending order if an after offset or no offset is provided. If only a before offset is provided, then the records are sorted in descending order.

The after offset parameter will take precedence over the before offset in a case where both are provided.

Request Params

KeyDatatypeRequiredDescription
afterstringThe paging offset token for the page that comes after the previously requested records.

If provided, then the records in the response will be the records following the offset, sorted in ascending order. Takes precedence over the before offset. | | before | string | | The paging offset token for the page that comes before the previously requested records.

If provided, then the records in the response will be the records preceding the offset, sorted in descending order. | | limit | number | | The number of records to return in the response. The maximum limit is 250. |

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;membershipTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;recordId&quot;:&quot;\u003cstring\u003e&quot;},{&quot;membershipTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;recordId&quot;:&quot;\u003cstring\u003e&quot;}],&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;},&quot;prev&quot;:{&quot;before&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}}}