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 recordId
s 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
Key | Datatype | Required | Description |
---|---|---|---|
after | string | The 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
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"results":[{"membershipTimestamp":"1986-06-27T13:53:02.296Z","recordId":"id"},{"membershipTimestamp":"1975-03-30T07:45:42.608Z","recordId":"laboris est"}],"total":-30382537,"paging":{"next":{"after":"Duis quis sint enim laborum","link":"labore magn"},"prev":{"before":"anim cupidatat id minim","link":"pariatur commodo dolor dolor"}}}