Esper Enterprise Policy API

APIs to Esper Compliance Policy

Operations 6

POST /enterprise/{enterprise_id}/policy/ Create a new Enterprise Policy #
GET /enterprise/{enterprise_id}/policy/ List all policies in enterprise #
GET /enterprise/{enterprise_id}/policy/{policy_id}/ Get Enterprise Policy #
PUT /enterprise/{enterprise_id}/policy/{policy_id}/ Update Enterprise Policy #
PATCH /enterprise/{enterprise_id}/policy/{policy_id}/ Partial update EnterprisePolicy #
DELETE /enterprise/{enterprise_id}/policy/{policy_id}/ Delete a Enterprise Policy #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/esper-enterprise-policy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

esper-enterprise-policy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: '# Introduction

    Esper APIs are a set of REST-based APIs that help you programmatically control and monitor Android-based Dedicated Devices running the Esper agent using Esper Manage.'
  version: 1.0.0
  title: ESPER API REFERENCE Enterprise Policy API
  termsOfService: https://esper.io/terms-of-service
  contact:
    email: developer@esper.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://foo-api.esper.cloud/api
tags:
- name: Enterprise Policy
  description: APIs to Esper Compliance Policy
  externalDocs:
    description: Find out more about Compliance Policy
    url: https://docs.esper.io/
paths:
  /enterprise/{enterprise_id}/policy/:
    post:
      summary: Create a new Enterprise Policy
      description: API to create a new Enterprise Policy
      operationId: createPolicy
      parameters:
      - name: enterprise_id
        in: path
        description: ID of the enterprise
        required: true
        schema:
          type: string
          format: uuid
      responses:
        201:
          description: command request successfully created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnterprisePolicy'
      security:
      - apiKey: []
      tags:
      - Enterprise Policy
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnterprisePolicy'
        description: The request body to create an Enteprise Policy
        required: true
    get:
      operationId: listPolicies
      summary: List all policies in enterprise
      description: Returns Policies list
      parameters:
      - name: enterprise_id
        in: path
        description: ID of the enterprise
        required: true
        schema:
          type: string
          format: uuid
      - name: name
        in: query
        description: filter by policy name
        required: false
        schema:
          type: string
      - name: is_active
        in: query
        description: filter by Active policies
        required: false
        schema:
          type: boolean
      - name: limit
        in: query
        description: Number of results to return per page.
        required: false
        schema:
          type: integer
          default: 20
      - name: offset
        in: query
        description: The initial index from which to return the results.
        required: false
        schema:
          type: integer
          default: 0
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                required:
                - count
                - results
                type: object
                properties:
                  count:
                    type: integer
                  next:
                    type:
                    - string
                    - 'null'
                    format: url
                  previous:
                    type:
                    - string
                    - 'null'
                    format: url
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/EnterprisePolicy'
      security:
      - apiKey: []
      tags:
      - Enterprise Policy
  /enterprise/{enterprise_id}/policy/{policy_id}/:
    parameters:
    - name: policy_id
      in: path
      description: An integer identifying this EnterprisePolicy.
      required: true
      schema:
        type: integer
    - name: enterprise_id
      description: A UUID string identifying enterprise.
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: getPolicyById
      summary: Get Enterprise Policy
      description: Returns EnterprisePolicy instance
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnterprisePolicy'
      security:
      - apiKey: []
      tags:
      - Enterprise Policy
    put:
      operationId: updatePolicy
      summary: Update Enterprise Policy
      description: Returns Enterprise Policy instance
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnterprisePolicy'
      security:
      - apiKey: []
      tags:
      - Enterprise Policy
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnterprisePolicy'
        required: true
    patch:
      operationId: partialupdatePolicy
      summary: Partial update EnterprisePolicy
      description: Returns EnterprisePolicy instance
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnterprisePolicy'
      security:
      - apiKey: []
      tags:
      - Enterprise Policy
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnterprisePolicyPartialUpdate'
        required: true
    delete:
      operationId: deleteEnterprisePolicy
      summary: Delete a Enterprise Policy
      description: Emtpy response
      responses:
        '204':
          description: successful operation
      security:
      - apiKey: []
      tags:
      - Enterprise Policy
components:
  schemas:
    EnterprisePolicy:
      required:
      - name
      - enterprise
      - policy
      type: object
      properties:
        uuid:
          title: UUID
          description: Unique Policy identifier
          type: string
          format: uuid
          readOnly: true
        enterprise:
          title: Enterprise url
          description: Url of the enterprise resource
          type: string
          format: url
        url:
          title: Policy URL
          description: URL link to policy
          type: string
          format: url
          readOnly: true
        name:
          title: Policy Name
          description: Name of the Policy
          type: string
        description:
          title: Policy Description
          description: Details regarding the Policy
          type: string
        device_count:
          title: Number of Devices with this policy applied
          description: Count of Devices with this policy applied
          type: integer
          readOnly: true
        google_policy_id:
          title: Google policy id
          description: Id of the Google policy
          type: string
          readOnly: true
        policy:
          $ref: '#/components/schemas/EnterprisePolicyData'
        updated_on:
          title: Updated On
          type: string
          format: date-time
          description: Last-Updated Timestamp of Policy
          readOnly: true
        created_on:
          title: Created on
          description: Creation Timestamp of Policy
          type: string
          format: date-time
          readOnly: true
        is_active:
          title: Policy Active status
          description: Is this policy currently active
          type: boolean
    EnterprisePolicyData:
      title: Policy Data
      type: object
      properties:
        keyguardDisabled:
          description: Should KeyGuard be disabled?
          type: boolean
        safeBootDisabled:
          description: Should SafeBoot be disabled?
          type: boolean
        statusBarDisabled:
          description: Should Status Bar be disabled?
          type: boolean
        factoryResetDisabled:
          description: Should Factory Reset be disabled?
          type: boolean
        screenshotDisabled:
          description: Should Screenshot capability be disabled?
          type: boolean
        usbConnectivityDisabled:
          description: Should USB connectivity be disabled?
          type: boolean
        smsDisabled:
          description: Should SMS functionality be disabled?
          type: boolean
        outgoingCallsDisabled:
          description: Should Outgoing Calls be disabled?
          type: boolean
        cameraDisabled:
          description: Should Camera be disabled?
          type: boolean
        nfcBeamDisabled:
          description: Should NFC capability be disabled?
          type: boolean
        disablePlayStore:
          description: Should Google Play Store be disabled on the device?
          type: boolean
        usbFileTransferDisabled:
          description: Should USB File transfer capability be disabled?
          type: boolean
        tetheringDisabled:
          description: Should USB Tethering capability be enabled?
          type: boolean
        dateTimeConfigDisabled:
          description: Should Date/Time configuration capability be disabled?
          type: boolean
        appUninstallDisabled:
          description: Should App uninstall capability be disabled?
          type: boolean
        googleAssistantDisabled:
          description: Should Google Assistant feature be disabled?
          type: boolean
        disableLocalAppInstall:
          description: Should Side-loading of Applications be disabled?
          type: boolean
        adbDisabled:
          description: Should Android Debugger be disabled?
          type: boolean
        phonePolicy:
          type: object
          description: Rules regarding restricting calls from/to phone-numbers
          properties:
            incomingNumbers:
              type: array
              description: List of permitted incoming phone numbers to recieve calls from
              items:
                type: string
                maxLength: 15
            outgoingNumbers:
              type: array
              description: List of permitted outgoing phone numbers to make calls to
              items:
                type: string
                maxLength: 15
            dialer:
              type: string
              description: Pick a dialer - System default or Esper Dialer
              enum:
              - DEFAULT
              - SHOONYA
        frpGoogles:
          description: Details regarding Factory Reset Protection capability. List of permitted Google People IDs, emails and such
          type: array
          items:
            type: object
            properties:
              type:
                description: Type of User account provided - USER or ADMIN
                type: string
                enum:
                - USER
                - ADMIN
              email:
                description: Email id to be used for Factory protection. This will be asked on the Device's UI
                type: string
                format: email
              googleId:
                description: Google People ID associated with the above email (https://developers.google.com/people/api/rest/v1/people/get)
                type: string
        googleAccountPermission:
          description: Details regarding Google accounts to be associated with the device
          type: object
          properties:
            maxAccount:
              description: Maximum number of Google accounts to be associated with this device. (Max = 10)
              type: integer
            emails:
              type: array
              description: List of emails to be associated
              items:
                type: string
                format: email
            domains:
              type: array
              description: List of domains that can be associated
              items:
                type: string
        devicePasswordPolicy:
          description: Define the Password Policy for the device
          type: object
          properties:
            passwordQuality:
              description: What is the type of password quality to apply to the device?
              type: string
              enum:
              - PASSWORD_QUALITY_ALPHABETIC
              - PASSWORD_QUALITY_ALPHANUMERIC
              - PASSWORD_QUALITY_BIOMETRIC_WEAK
              - PASSWORD_QUALITY_COMPLEX
              - PASSWORD_QUALITY_NUMERIC
              - PASSWORD_QUALITY_NUMERIC_COMPLEX
              - PASSWORD_QUALITY_SOMETHING
              - PASSWORD_QUALITY_UNSPECIFIED
        minimumPasswordLength:
          description: What is the minimum length for your device's password
          type: integer
          minimum: 4
        permissionPolicy:
          description: What permission should be applied by default for all apps, henceforth?
          type: string
          enum:
          - PERMISSION_POLICY_PROMPT
          - PERMISSION_POLICY_AUTO_GRANT
          - PERMISSION_POLICY_AUTO_DENY
        deviceUpdatePolicy:
          description: Configuration regarding Device OS Updates
          type: object
          properties:
            type:
              description: What type of installation is preferred?
              enum:
              - TYPE_INSTALL_AUTOMATIC
              - TYPE_POSTPONE
              - TYPE_INSTALL_WINDOWED
              - TYPE_INSTALL_DISABLED
              type: string
            maintenanceStart:
              type: integer
              description: If the `type` is `TYPE_INSTALL_WINDOWED`, when should the maintenance start?
            maintenanceEnd:
              type: integer
              description: If the `type` is `TYPE_INSTALL_WINDOWED`, when should the maintenance end?
        settingsAccessLevel:
          type: string
          description: Type of Android settings app to be applied? Default System Settings or ESPER Settings App?
          enum:
          - SYSTEM
          - SHOONYA
          - NONE
        settingsAppPassword:
          type: string
          description: Lock Password (optional) for the ESPER Settings app
          format: password
    EnterprisePolicyPartialUpdate:
      type: object
      properties:
        uuid:
          title: UUID
          description: Unique Policy identifier
          type: string
          format: uuid
          readOnly: true
        enterprise:
          title: Enterprise url
          description: Url of the enterprise resource
          type: string
          format: url
        url:
          title: Policy URL
          description: URL link to policy
          type: string
          format: url
          readOnly: true
        name:
          title: Policy Name
          description: Name of the Policy
          type: string
        description:
          title: Policy Description
          description: Details regarding the Policy
          type: string
        device_count:
          title: Number of Devices with this policy applied
          description: Count of Devices with this policy applied
          type: integer
          readOnly: true
        policy:
          $ref: '#/components/schemas/EnterprisePolicyData'
        updated_on:
          title: Updated On
          type: string
          format: date-time
          description: Last-Updated Timestamp of Policy
          readOnly: true
        created_on:
          title: Created on
          description: Creation Timestamp of Policy
          type: string
          format: date-time
          readOnly: true
        is_active:
          title: Policy Active status
          description: Is this policy currently active
          type: boolean
        google_policy_id:
          title: Google policy id
          description: Id of the Google policy
          type: string
          readOnly: true
  securitySchemes:
    apiKey:
      description: "#### API KEY - Access Token\nAccess token for APIs passed as authorization header in calls. You need to generate this from your Esper Dev Console at `<domain>-api.esper.cloud` where foo is the sub-domain name you gave for your Esper Dev environment when you signed up for your Esper Dev account. Please follow the instructions [here](https://docs.esper.io/home/module/genapikey.html) to generate an access token.\nOnce you have the access token, you need to send an authorization header as below\n\n```bash\n\n    curl -X GET \\\n      https://<domain>-api.esper.cloud/api/enterprise/<enterprise_id>/device/ \\\n      -H 'Authorization: Bearer <ACCESS_TOKEN>' \\\n      -H 'Content-Type: application/json' \\\n```\n\n> Please note the use of keyword **Bearer** before the token value.\n\n\nYou can read more about api key authentication scheme [here](https://console-docs.esper.io/API/generate.html).\n"
      name: Authorization
      type: apiKey
      in: header
x-tagGroups:
- name: API Reference
  tags:
  - Enterprise
  - Application
  - Application V1
  - Device
  - Device Group
  - Commands
  - Group Commands
  - Token
  - Commands V2
  - Enterprise Policy
  - Geofence
  - Reports
  - Subscription
  - Content