accounts

Export

GET
Exports a collection of accounts.

Query parameters

created_bystringOptional
Filters for accounts created by the specified user(s).
created_date.afterdatetimeOptional
Filters for objects created after the provided timestamp (inclusive).
created_date.beforedatetimeOptional
Filters for objects created before the provided timestamp (inclusive).
display_namestringOptional
Array of display names of accounts to be filtered.
external_refsstringOptional
Array of references of accounts to be filtered.
firstintegerOptional
The number of accounts to return. The default is '50'.
modified_date.afterdatetimeOptional
Filters for objects created after the provided timestamp (inclusive).
modified_date.beforedatetimeOptional
Filters for objects created before the provided timestamp (inclusive).
sort_bystringOptional
Fields to sort the accounts by and the direction to sort them in.
stagestringOptional
Filters for accounts on specified stages.

Response

This endpoint returns an object
accounts
list of objects
The exported accounts.
GET
1curl -G https://api.devrev.ai/accounts.export \
2 -H "Authorization: <apiKey>" \
3 --data-urlencode created_date.after=2023-01-01T12:00:00Z \
4 --data-urlencode created_date.before=2023-01-01T12:00:00Z \
5 --data-urlencode modified_date.after=2023-01-01T12:00:00Z \
6 --data-urlencode modified_date.before=2023-01-01T12:00:00Z
Response
1{
2 "accounts": [
3 {
4 "external_refs": [
5 "external_refs"
6 ],
7 "id": "id",
8 "owned_by": [],
9 "created_date": "2023-01-01T12:00:00Z",
10 "description": "description",
11 "display_id": "display_id",
12 "display_name": "display_name",
13 "domains": [
14 "domains"
15 ],
16 "modified_date": "2023-01-01T12:00:00Z",
17 "tier": "tier"
18 }
19 ]
20}