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

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

Delete a device. Currently supported by iOS, Linux and Windows devices.

Request

Security
apiKey
Path
idstringrequired

ID of the device

curl -i -X DELETE \
  'https://api.esper.io/_mock/openapi/device/v0/devices/{id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Details of the device

Bodyapplication/json
codeinteger
messagestring
contentAppleDevice (object) or LinuxDevice (object) or WindowsDevice (object)
One of:
Response
application/json
{ "code": 0, "message": "string", "content": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "alias": "string", "os": "iOS", "state": 0, "platform": "APPLE", "serial": "string", "os_version": "string", "global_device_id": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "hardware_info": { … }, "software_info": { … }, "network_info": { … }, "memory_info": { … }, "blueprint_info": { … }, "udid": "string", "dep_profile": "string", "dep_profile_push_time": "2019-08-24T14:15:22Z", "dep_profile_assign_time": "2019-08-24T14:15:22Z", "dep_profile_status": "empty", "enrolment_info": { … }, "last_seen": "2019-08-24T14:15:22Z", "tokens": { … }, "device_source": "ABM", "is_supervised": true, "managed_by": "BLUEPRINT", "onboarded_on": "2019-08-24T14:15:22Z", "provisioned_on": "2019-08-24T14:15:22Z", "is_seamless": true, "created_by": "string", "updated_by": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }

Get details of Current Device State

Request

Security
apiKey
Path
idstring(uuid)required

ID of the device

curl -i -X GET \
  'https://api.esper.io/_mock/openapi/device/v0/devices/{id}/devicestate' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Details of the current device state

Bodyapplication/json
gps_statestring

GPS state of the device

Enum"LOCATION_MODE_HIGH_ACCURACY""LOCATION_MODE_SENSORS_ONLY""LOCATION_MODE_BATTERY_SAVING""LOCATION_MODE_OFF""LOCATION_MODE_ON"
wifi_stateboolean

WiFi state of the device

adb_enabledboolean

ADB state of the device

adb_timeoutinteger

ADB timeout value for the device

remote_adb_enabledboolean

Remote ADB state for the device

remote_adb_ipstring

Remote ADB IP for the device

remote_adb_portinteger

Remote ADB port for the device

audio_settingsobject

Different Audio types and respective values

rotation_statestring

Display rotation of the device

Enum"AUTO""PORTRAIT_ONLY""LANDSCAPE_ONLY""INVERTED_PORTRAIT_ONLY""INVERTED_LANDSCAPE_ONLY"
bluetooth_stateboolean

Bluetooth state of device

brightness_scaleinteger

Brightess value for the device it will be in range 0 to 100

screen_off_timeoutinteger

Device screen off timeout

use_only_saved_apboolean

Whether device is allowed to connect to only saved Wifi APs

Response
application/json
{ "gps_state": "LOCATION_MODE_HIGH_ACCURACY", "wifi_state": true, "adb_enabled": true, "adb_timeout": 0, "remote_adb_enabled": true, "remote_adb_ip": "string", "remote_adb_port": 0, "audio_settings": {}, "rotation_state": "AUTO", "bluetooth_state": true, "brightness_scale": 0, "screen_off_timeout": 0, "use_only_saved_ap": true }

Get all distinct foundation versions

Request

Returns a list of distinct foundation versions present in the tenant's devices

Query
limitinteger

Number of results to return per page

Default 10
offsetinteger

The initial index from which to return the results

Default 0
searchstring

Filter foundation versions by partial string match (case-insensitive)

Headers
X-Tenant-Idstring(uuid)required
X-Caller-Idstringrequired
X-SCAPI-Private-URLstringrequired
curl -i -X GET \
  'https://api.esper.io/_mock/openapi/api/v2/foundationversions?limit=10&offset=0&search=string' \
  -H 'X-Caller-Id: string' \
  -H 'X-SCAPI-Private-URL: string' \
  -H 'X-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08'

Responses

Success

Bodyapplication/json
countinteger

Total number of distinct foundation versions

prevstring

URL to the previous page of results

nextstring

URL to the next page of results

resultsArray of objects
Response
application/json
{ "count": 0, "prev": "string", "next": "string", "results": [ { … } ] }

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