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

Retrieve all custom actions for the tenant

Request

Retrieve all custom actions for the tenant

Query
orderingstring

Order the results by a specific field (-field for descending order). Valid fields are 'name', 'created_at', 'updated_at', 'created_by', 'updated_by'.

namestring

Filter the results by name (partial match, case insensitive).

typestring

Filter by action type. Comma-separated list. Valid values: button, toggle, radio, dropdown.

statestring

Filter by action state. Comma-separated list. Valid values: draft, active, inactive.

position_in_blueprintsstring

Filter by blueprint position. Comma-separated list. Valid values: none, blueprints_apps_and_configuration, blueprints_connectivity, blueprints_device_security, blueprints_display_and_branding, blueprints_esper_settings, blueprints_scripts, blueprints_files, blueprints_platform_services, blueprints_hardware_settings, blueprints_sound, blueprints_system_updates, blueprints_time_and_date.

position_in_device_settingsstring

Filter by device settings position. Comma-separated list. Valid values: none, device_quick_settings.

created_byinteger

Filter by user ID who created the action.

updated_byinteger

Filter by user ID who last updated the action.

limitinteger[ 1 .. 100 ]

Number of results to return per page.

Default 10
offsetinteger>= 0

The initial index from which to return the results.

Default 0
curl -i -X GET \
  'https://api.esper.io/_mock/openapi/v2/custom-actions/?ordering=string&name=string&type=string&state=string&position_in_blueprints=string&position_in_device_settings=string&created_by=0&updated_by=0&limit=10&offset=0'

Responses

Success

Bodyapplication/json
contentobject
messagestring
codeinteger
Response
application/json
{ "content": { "count": 0, "next": "string", "previous": "string", "results": [ … ] }, "message": "string", "code": 0 }

Create a new custom action

Request

Create a new custom action

Bodyapplication/jsonrequired
namestring[ 1 .. 50 ] charactersrequired

Custom Action name

typestringrequired

The UI component type for this custom action

Enum"button""toggle""radio""dropdown"
statestringrequired

The current operational state of the custom action. Only active custom actions can be deployed to Linux devices.

Enum"draft""active""inactive"
position_in_blueprintsstringrequired

The location in the blueprint where the custom action will be added

Enum"none""blueprints_apps_and_configuration""blueprints_connectivity""blueprints_device_security""blueprints_display_and_branding""blueprints_esper_settings""blueprints_scripts""blueprints_files""blueprints_platform_services""blueprints_hardware_settings"
position_in_device_settingsstringrequired

The location in the device's Quick Actions where the custom action will be added

Enum"none""device_quick_settings"
propertiesobjectrequired

Object for the description, info_message, and tooltip_message.

optionsArray of objects(optionsRequest)required

List of options for the custom action

options[].​labelstringrequired

Label shown on the UI

options[].​keystring(uuid)required

Unique key identifier for the option

options[].​scriptsobjectrequired

Platform-specific scripts. Currently only Linux platform is supported. Platform key must be lowercase "linux".

options[].​scripts.​linuxobject(platformScriptRequest)required
options[].​scripts.​linux.​scriptstringrequired

The script content to be executed on Linux devices

options[].​scripts.​linux.​interpreterstring<= 255 charactersrequired

Interpreter used to run the script. Default is "bash" if not specified. Common values include "bash", "sh", "python", "python3"

Default "bash"
curl -i -X POST \
  https://api.esper.io/_mock/openapi/v2/custom-actions/ \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "type": "button",
    "state": "draft",
    "position_in_blueprints": "none",
    "position_in_device_settings": "none",
    "properties": {},
    "options": [
      {
        "label": "string",
        "key": "4adfe27e-63d3-45b9-8238-62b6ed6fdb5e",
        "scripts": {
          "linux": {
            "script": "string",
            "interpreter": "bash"
          }
        }
      }
    ]
  }'

Responses

Success

Bodyapplication/json
contentobject(CustomActionRead)
messagestring
codeinteger
Value201
Response
application/json
{ "content": { "name": "string", "type": "button", "state": "draft", "position_in_blueprints": "none", "position_in_device_settings": "none", "properties": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "options": [ … ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "created_by": 0, "updated_by": 0 }, "message": "string", "code": 201 }

Retrieve a custom action by ID

Request

Retrieve a custom action by ID

Path
custom_action_idstring(uuid)required
curl -i -X GET \
  'https://api.esper.io/_mock/openapi/v2/custom-actions/{custom_action_id}/'

Responses

Success

Bodyapplication/json
contentobject(CustomActionRead)
messagestring
codeinteger
Value200
Response
application/json
{ "content": { "name": "string", "type": "button", "state": "draft", "position_in_blueprints": "none", "position_in_device_settings": "none", "properties": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "options": [ … ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "created_by": 0, "updated_by": 0 }, "message": "string", "code": 200 }

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