List Accounts

GET

Gets a list of accounts.

Query parameters

created_bylist of stringsOptional

Filters for accounts created by the specified user(s).

created_date.afterstringOptionalformat: "date-time"

Filters for objects created after the provided timestamp (inclusive).

created_date.beforestringOptionalformat: "date-time"

Filters for objects created before the provided timestamp (inclusive).

cursorstringOptional

The cursor to resume iteration from. If not provided, then iteration starts from the beginning.

display_namelist of stringsOptional

Array of display names of accounts to be filtered.

external_refslist of stringsOptional

Array of references of accounts to be filtered.

limitintegerOptional

The maximum number of accounts to return per page. The default is ‘50’.

modeenumRequired

The iteration mode to use, otherwise if not set, then “after” is used.

Allowed values: afterbefore
modified_date.afterstringOptionalformat: "date-time"

Filters for objects created after the provided timestamp (inclusive).

modified_date.beforestringOptionalformat: "date-time"

Filters for objects created before the provided timestamp (inclusive).

sort_bylist of stringsOptional

Fields to sort the accounts by and the direction to sort them in.

stagelist of stringsOptional

Filters for accounts on specified stages.

websiteslist of stringsOptional

Array of websites of accounts to be filtered.

Response

The response to listing all accounts matching the filter criteria.

accountslist of objects

List containing all the accounts

next_cursorstringOptional

The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.

prev_cursorstringOptional

The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.

Built with