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 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":"\u003cdateTime\u003e","recordId":"\u003cstring\u003e"},{"membershipTimestamp":"\u003cdateTime\u003e","recordId":"\u003cstring\u003e"}],"paging":{"next":{"after":"\u003cstring\u003e","link":"\u003cstring\u003e"},"prev":{"before":"\u003cstring\u003e","link":"\u003cstring\u003e"}}}