Skip to content

ESPER API REFERENCE (1.0.0)

Introduction

Welcome to Esper’s API documentation. The Esper API allows users to accomplish operations outside of the console. Some common uses for our APIs include observing device information and console activity, installing and updating apps, uploading files, and sending files to devices. Our users have also used the API to automate app updates, perform bulk actions, and more.

Esper API endpoints use REST-based architecture and return JSON responses.

See our documentation for:

Authentication

You need to create an API Key to interact with our APIs. Learn more about generating an API Key. You can also learn more about Esper and sign up for an account at esper.io/signup.

Some endpoints also require an Enterprise ID. This ID can be found in the API Management section of the Esper console.

Pagination

Responses may be paginated. Use the following parameters to query the data. A full list of parameters can be found on the endpoint’s documentation page.

ParameterData TypeExplanation
limitintegerLimit the data returned. Default = 20.
offsetintegerOffset to the first item returned. Default = 0.
orderingstringOrder the results set by the field name. Varies by endpoint.
nextstringPaginate to the next response set.
previousstringPaginate to the last set response.

Errors

We use standard HTTP status codes for success or failure. A typical error response may look something like this:

{
  "errors": [],
  "message": "error message",
  "status": 400
}
  • errors - List of error details
  • message - Error description
  • status - HTTP status code

Some common status codes and messages are:

NumberMessageExplanation
200OKThe request succeeded.
201Resource creationA resource was created.
401UnauthorizedThe API key is invalid.
404Not foundThe resource was not found.
429Rate limit exceededToo many requests. Wait a moment and try again.
500Server errorInternal error. Wait a moment and try again. If the issue persists, contact Esper.

See how our systems are doing by checking our status page.

Rate Limits

To ensure quality of service for all customers, we enforce rate limits for API requests. Most customers won’t hit this limit with normal use. In case you experience 429 or rate limit exceeded errors, we recommend the following:

  • Try sending requests in batches.
  • Begin with about 20 requests at a time and building up from there.
  • Ensure your scripts are efficient and don’t contain redundant calls.
  • Reach out to your account manager to discuss your options.
Download OpenAPI description
Languages
Servers
Mock server
https://api.esper.io/_mock/openapi
https://{foo}-api.esper.cloud/api

Company Settings

Operations

Application

Operations

Application V1

Operations

AndroidDevice

Operations

Device Group

Operations

Token (Deprecated)

Operations

Commands V2

Operations

Enterprise Policy

Operations

Delete a Enterprise Policy

Request

Emtpy response

Security
apiKey
Path
policy_idintegerrequired

An integer identifying this enterprise policy.

enterprise_idstringrequired

A UUID string identifying enterprise.

curl -i -X DELETE \
  'https://api.esper.io/_mock/openapi/enterprise/{enterprise_id}/policy/{policy_id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The resource was deleted successfully.

Response
No content

Partial update EnterprisePolicy

Request

Returns EnterprisePolicy instance

Security
apiKey
Path
policy_idintegerrequired

An integer identifying this enterprise policy.

enterprise_idstringrequired

A UUID string identifying enterprise.

Body*/*required
enterprisestring(url)(Enterprise url)

Url of the enterprise resource

namestring(Policy Name)

Name of the Policy

descriptionstring(Policy Description)

Details regarding the Policy

policyobject(Policy Data)
is_activeboolean(Policy Active status)

Is this policy currently active

curl -i -X PATCH \
  'https://api.esper.io/_mock/openapi/enterprise/{enterprise_id}/policy/{policy_id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: */*' \
  -d '[object Object]'

Responses

successful operation

Bodyapplication/json
uuidstring(uuid)(UUID)read-only

Unique Policy identifier

enterprisestring(url)(Enterprise url)required

Url of the enterprise resource

urlstring(url)(Policy URL)read-only

URL link to policy

namestring(Policy Name)required

Name of the Policy

descriptionstring(Policy Description)

Details regarding the Policy

device_countinteger(Number of Devices with this policy applied)read-only

Count of Devices with this policy applied

google_policy_idstring(Google policy id)read-only

Id of the Google policy

policyobject(Policy Data)required
policy.​keyguardDisabledboolean

Should KeyGuard be disabled?

policy.​safeBootDisabledboolean

Should SafeBoot be disabled?

policy.​statusBarDisabledboolean

Should Status Bar be disabled?

policy.​factoryResetDisabledboolean

Should Factory Reset be disabled?

policy.​screenshotDisabledboolean

Should Screenshot capability be disabled?

policy.​usbConnectivityDisabledboolean

Should USB connectivity be disabled?

policy.​smsDisabledboolean

Should SMS functionality be disabled?

policy.​outgoingCallsDisabledboolean

Should Outgoing Calls be disabled?

policy.​cameraDisabledboolean

Should Camera be disabled?

policy.​nfcBeamDisabledboolean

Should NFC capability be disabled?

policy.​disablePlayStoreboolean

Should Google Play Store be disabled on the device?

policy.​usbFileTransferDisabledboolean

Should USB File transfer capability be disabled?

policy.​tetheringDisabledboolean

Should USB Tethering capability be enabled?

policy.​dateTimeConfigDisabledboolean

Should Date/Time configuration capability be disabled?

policy.​appUninstallDisabledboolean

Should App uninstall capability be disabled?

policy.​googleAssistantDisabledboolean

Should Google Assistant feature be disabled?

policy.​disableLocalAppInstallboolean

Should Side-loading of Applications be disabled?

policy.​adbDisabledboolean

Should Android Debugger be disabled?

policy.​phonePolicyobject

Rules regarding restricting calls from/to phone-numbers

policy.​frpGooglesArray of objects

Details regarding Factory Reset Protection capability. List of permitted Google People IDs, emails and such

policy.​googleAccountPermissionobject

Details regarding Google accounts to be associated with the device

policy.​devicePasswordPolicyobject

Define the Password Policy for the device

policy.​minimumPasswordLengthinteger>= 4

What is the minimum length for your device's password

policy.​permissionPolicystring

What permission should be applied by default for all apps, henceforth?

Enum"PERMISSION_POLICY_PROMPT""PERMISSION_POLICY_AUTO_GRANT""PERMISSION_POLICY_AUTO_DENY"
policy.​deviceUpdatePolicyobject

Configuration regarding Device OS Updates

policy.​settingsAccessLevelstring

Type of Android settings app to be applied? Default System Settings or ESPER Settings App?

Enum"SYSTEM""SHOONYA""NONE"
policy.​settingsAppPasswordstring(password)

Lock Password (optional) for the ESPER Settings app

updated_onstring(date-time)(Updated On)read-only

Last-Updated Timestamp of Policy

created_onstring(date-time)(Created on)read-only

Creation Timestamp of Policy

is_activeboolean(Policy Active status)

Is this policy currently active

Response
application/json
{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "enterprise": "string", "url": "string", "name": "string", "description": "string", "device_count": 0, "google_policy_id": "string", "policy": { "keyguardDisabled": true, "safeBootDisabled": true, "statusBarDisabled": true, "factoryResetDisabled": true, "screenshotDisabled": true, "usbConnectivityDisabled": true, "smsDisabled": true, "outgoingCallsDisabled": true, "cameraDisabled": true, "nfcBeamDisabled": true, "disablePlayStore": true, "usbFileTransferDisabled": true, "tetheringDisabled": true, "dateTimeConfigDisabled": true, "appUninstallDisabled": true, "googleAssistantDisabled": true, "disableLocalAppInstall": true, "adbDisabled": true, "phonePolicy": { … }, "frpGoogles": [ … ], "googleAccountPermission": { … }, "devicePasswordPolicy": { … }, "minimumPasswordLength": 4, "permissionPolicy": "PERMISSION_POLICY_PROMPT", "deviceUpdatePolicy": { … }, "settingsAccessLevel": "SYSTEM", "settingsAppPassword": "pa$$word" }, "updated_on": "2019-08-24T14:15:22Z", "created_on": "2019-08-24T14:15:22Z", "is_active": true }

Geofence

Operations

Content

Operations

User (Deprecated)

Operations

User

Operations

Blueprint (Deprecated)

Operations

Directory Record

Operations

Tile Icon

Operations

Alerts

Operations

Alarms

Operations

Wallpapers

Operations

Device Telemetry

Operations

Daily and Custom Reports

Operations

SSO Connections

Operations

Roles

Operations

Personal Access Token

Operations

Blueprints API

Operations

Custom Actions API

Operations

System

Operations

Pipelines

Operations

Stages

Operations

Target Lists

Operations

Targets

Operations

Device Groups

Operations

Operation Lists

Operations

Operations

Operations

Pipeline Runs

Operations

Stage Runs

Operations

Target Runs

Operations

Device

Operations

Device Heartbeat

Operations

Device Apps

Operations

Device Enrollment in EMM

Operations

Operations

Operations

DeviceOperations

Operations

MultiOS Remote Viewer

Operations

Device V2

Operations

VPP License Management

Operations

VPP App Management

Operations

Tenant Apps

Operations

Apple App Store

Operations

App List

Operations

Webclips

Operations

Provisioning Profiles

Operations

Esper Apps

Operations

Tenant Esper Apps

Operations

Command Request

Operations

Command Status

Operations

Converge

Operations

Converge Command

Operations

DEP Sync Request

Operations

ABM Provisioning

Operations

APNs certificate

Operations

DEP Tokens

Operations

VPP Token Management

Operations

Google Enterprise

Operations

FoundryBuilds

Operations

FoundryDeviceModels

Operations

FoundryEvents

Operations

Reports API

Operations

Query API

Operations

Ingest API

Operations