Skip to content

List accounts

Request

Retrieves a paginated list of accounts in results according to the passed in rpp, page and search parameters alongside the total number of items matching the search query (total).

Security
ZephrHmacHttp
Query
rppnumber

The number of results per page you want to retrieve.

Default:10
Example:rpp=15
pagenumber

The page number for which you want to retrieve results.

Default:10
Example:page=15
searchstring

The search query that searches accounts by their names

Example:search=My account
cURL
curl -i -X GET \
  'https://demo.api.zephr.com/v3/accounts?rpp=15&page=15&search=My%20account' \
  -H 'Authorization: ZEPHR-HMAC-* <YOUR_TOKEN_HERE>'

Responses

OK - Accounts have been retrieved successfully

Headers
any
Bodyapplication/json
resultsArray of objects(response_simple_accountbody)
totalnumber

The total number of items out of which only a subset was returned in the paginated results.

Example:30
Response
{ "results": [ { … } ], "total": 20 }