Fetch List Memberships Ordered by Added to List Date

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

Fetch the memberships of a list in order sorted by the time the records were added to 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;1986-06-27T13:53:02.296Z&quot;,&quot;recordId&quot;:&quot;id&quot;},{&quot;membershipTimestamp&quot;:&quot;1975-03-30T07:45:42.608Z&quot;,&quot;recordId&quot;:&quot;laboris est&quot;}],&quot;total&quot;:-30382537,&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;Duis quis sint enim laborum&quot;,&quot;link&quot;:&quot;labore magn&quot;},&quot;prev&quot;:{&quot;before&quot;:&quot;anim cupidatat id minim&quot;,&quot;link&quot;:&quot;pariatur commodo dolor dolor&quot;}}}