rev-orgs

List Post

POST
Gets the list of Rev organizations' information belonging to the authenticated user's Dev Organization which the user is also authorized to access.

Request

This endpoint expects an object.
created_by
list of stringsOptional
Filters by creator.
created_date
objectOptional
cursor
stringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
display_name
list of stringsOptional
Array of display names of Rev orgs to be filtered.
external_ref
list of stringsOptional
List of external refs to filter Rev organizations for.
limit
integerOptional
The maximum number of Rev organizations to be retrieved per page.
mode
enumOptional
The iteration mode to use. If "after", then entries after the provided cursor will be returned, or if no cursor is provided, then from the beginning. If "before", then entries before the provided cursor will be returned, or if no cursor is provided, then from the end. Entries will always be returned in the specified sort-by order.
Allowed values: afterbefore
modified_date
objectOptional
sort_by
list of stringsOptional
Fields to sort the Rev organizations by and the direction to sort them.

Response

This endpoint returns an object
rev_orgs
list of objects
List with all of the Rev organizations' information.
next_cursor
stringOptional
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursor
stringOptional
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.
POST
1curl -X POST https://api.devrev.ai/rev-orgs.list \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
Response
1{
2 "rev_orgs": [
3 {
4 "id": "id",
5 "created_date": "2023-01-01T12:00:00Z",
6 "description": "description",
7 "display_id": "display_id",
8 "display_name": "display_name",
9 "domain": "companyname.com",
10 "external_ref": "external_ref",
11 "modified_date": "2023-01-01T12:00:00Z"
12 }
13 ],
14 "next_cursor": "next_cursor",
15 "prev_cursor": "prev_cursor"
16}