Get all company views
get/api/v1/companies/viewsRetrieve a list of all company views.
Code snippet
curl -X 'GET' \
'https://{yourdomain}/api/v1/companies/views' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}'
Query parameters
| searchstring | Filters the list of views by name. Only views whose names contain the specified search string are returned. |
Example response
200 Success
{
"data": [
{
"id": 1,
"name": "All companies",
"isSystemView": true,
"accessScopeId": 2,
"owner": {
"id": 1,
"name": "System Automation",
"email": "",
"status": "Active"
}
},
{
"id": 1,
"name": "My companies",
"isSystemView": false,
"accessScopeId": 2,
"owner": {
"id": 227,
"name": "John Clark",
"email": "[email protected]",
"status": "Active"
}
}
]
}