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

List all device apps

Request

Returns DeviceApp list

Security
apiKey
Path
enterprise_idstringrequired

A UUID string identifying this enterprise.

device_idstringrequired

A UUID string identifying device.

Query
package_namestring

Filter by Package name

whitelistedstring

Whitelist filter

searchstring

A search term. Search by app_name.

limitinteger

Number of results to return per page.

Default 20
offsetinteger

Return results from this index.

curl -i -X GET \
  'https://api.esper.io/_mock/openapi/enterprise/{enterprise_id}/device/{device_id}/app/?package_name=string&whitelisted=string&search=string&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(DeviceApp)required
results[].​idstring(uuid)(Id)read-only
results[].​app_namestring(App name)non-emptyrequired
results[].​statestring
results[].​app_typestring
results[].​package_namestring(Package name)[ 1 .. 255 ] charactersrequired
results[].​whitelistedboolean(Whitelisted)
results[].​is_data_clearableboolean(Data clearable)
results[].​is_uninstallableboolean(Uninstallable)
results[].​product_idstring or null(Product id)[ 1 .. 255 ] characters
results[].​version_codestring or null(Version code)[ 1 .. 128 ] characters
results[].​version_namestring or null(Version name)[ 1 .. 128 ] characters
results[].​created_onstring(date-time)(Created on)read-only
results[].​updated_onstring(date-time)(Updated on)read-only
results[].​is_activeboolean(Is active)
results[].​is_kiosk_appboolean
results[].​is_esper_controlledboolean
results[].​devicestring(uuid)(AndroidDevice)required
Response
application/json
{ "count": 0, "next": "string", "previous": "string", "results": [ { … } ] }

Get device app details

Request

Returns DeviceApp instance

Security
apiKey
Path
app_idstring(uuid)required

A UUID string identifying this device app.

enterprise_idstringrequired

A UUID string identifying this device.

device_idstringrequired

A UUID string identifying this enteprise.

curl -i -X GET \
  'https://api.esper.io/_mock/openapi/enterprise/{enterprise_id}/device/{device_id}/app/{app_id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

successful operation

Bodyapplication/json
idstring(uuid)(Id)read-only
app_namestring(App name)non-emptyrequired
statestring
app_typestring
package_namestring(Package name)[ 1 .. 255 ] charactersrequired
whitelistedboolean(Whitelisted)
is_data_clearableboolean(Data clearable)
is_uninstallableboolean(Uninstallable)
product_idstring or null(Product id)[ 1 .. 255 ] characters
version_codestring or null(Version code)[ 1 .. 128 ] characters
version_namestring or null(Version name)[ 1 .. 128 ] characters
created_onstring(date-time)(Created on)read-only
updated_onstring(date-time)(Updated on)read-only
is_activeboolean(Is active)
is_kiosk_appboolean
is_esper_controlledboolean
devicestring(uuid)(AndroidDevice)required
Response
application/json
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "app_name": "string", "state": "string", "app_type": "string", "package_name": "string", "whitelisted": true, "is_data_clearable": true, "is_uninstallable": true, "product_id": "string", "version_code": "string", "version_name": "string", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "is_active": true, "is_kiosk_app": true, "is_esper_controlled": true, "device": "8dca31e6-c85b-4a6b-bfb4-205d45d9b3bd" }

List installed apps

Request

Returns AppInstall list

Security
apiKey
Path
enterprise_idstringrequired

A UUID string identifying this enterprise.

device_idstringrequired

A UUID string identifying device.

Query
devicestring

filter by device id

package_namestring

filter by package name

application_namestring

filter by application name

install_statestring

filter by install state

limitinteger

Number of results to return per page.

Default 20
offsetinteger

Return results from this index.

Default 0
curl -i -X GET \
  'https://api.esper.io/_mock/openapi/enterprise/{enterprise_id}/device/{device_id}/install/?device=string&package_name=string&application_name=string&install_state=string&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(AppInstall)required
results[].​idstring(uuid)(Id)read-only
results[].​applicationobject(Application)required
results[].​application.​application_namestring(Application name)
results[].​application.​package_namestring(Package name)
results[].​application.​versionobject(Version)
results[].​application.​is_enabledboolean(Is enabled)
results[].​install_statestring(Install state)required

Device App Install State

* INSTALL_IN_PROGRESS = "Installation In-Progress"
* UNINSTALL_IN_PROGRESS = "Uninstallation In-Progress"
* INSTALL_SUCCESS = "Install Success"
* INSTALL_FAILED = "Install Failed"
* UNINSTALL_SUCCESS = "Uninstall Success"
* UNINSTALL_FAILED = "Uninstall Failed"
Enum"NOT_INSTALLED""INSTALL_IN_PROGRESS""UNINSTALL_IN_PROGRESS""INSTALL_SUCCESS""INSTALL_FAILED""UNINSTALL_SUCCESS""UNINSTALL_FAILED"
results[].​reason_detailsstring or null(Reason details)non-empty
results[].​created_onstring(date-time)(Created on)read-only
results[].​updated_onstring(date-time)(Updated on)read-only
results[].​is_activeboolean(Is active)
results[].​enterprisestring(url)(Enterprise)required
results[].​devicestring(url)(AndroidDevice)required
Response
application/json
{ "count": 0, "next": "string", "previous": "string", "results": [ { … } ] }

Device Group

Operations

Token (Deprecated)

Operations

Commands V2

Operations

Enterprise Policy

Operations

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