Skip to content

List all policies in enterprise
Stable

Request

Returns Policies list

Security
esper_cloud_api_apiKey
Path
enterprise_idstring, (uuid)required

ID of the enterprise

Query
namestring

filter by policy name

is_activeboolean

filter by Active policies

limitinteger

Number of results to return per page.

Default:20
offsetinteger

Return results from this index.

Default:0
cURL
curl -i -X GET \
  'https://api.esper.io/_mock/openapi/enterprise/{enterprise_id}/policy/?name=string&is_active=true&limit=20&offset=0' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

successful operation

Bodyapplication/json
countintegerrequired
nextstring or null, (url)
previousstring or null, (url)
resultsArray of objects(esper_cloud_api_EnterprisePolicy)required
Response
{ "count": 0, "next": "string", "previous": "string", "results": [ {} ] }