Esper Geofence API

APIs for geofence management

Operations 6

GET /v0/enterprise/{enterprise_id}/geofence/ List Geofences in Enterprise #
POST /v0/enterprise/{enterprise_id}/geofence/ Create a geofence #
GET /v0/enterprise/{enterprise_id}/geofence/{geofence_id}/ Get geofence information #
PUT /v0/enterprise/{enterprise_id}/geofence/{geofence_id}/ Update geofence information #
PATCH /v0/enterprise/{enterprise_id}/geofence/{geofence_id}/ Partially updates geofence information #
DELETE /v0/enterprise/{enterprise_id}/geofence/{geofence_id}/ Delete a geofence #

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-geofence-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-geofence-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 Geofence 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: Geofence
  description: APIs for geofence management
  externalDocs:
    description: Find out more about Geofence
    url: https://docs.esper.io/home/console.html#geofence
paths:
  /v0/enterprise/{enterprise_id}/geofence/:
    get:
      operationId: getAllGeofences
      summary: List Geofences in Enterprise
      description: API to view all the geofences in an enterprise
      parameters:
      - name: enterprise_id
        in: path
        description: A UUID string identifying the enterprise.
        required: true
        schema:
          type: string
          format: uuid
      - name: search
        in: query
        description: A search term.
        required: false
        schema:
          type: string
      - name: limit
        in: query
        description: Number of results to return per page.
        required: false
        schema:
          type: integer
      - name: offset
        in: query
        description: The initial index from which to return the results.
        required: false
        schema:
          type: integer
      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/Geofence'
      security:
      - apiKey: []
      tags:
      - Geofence
    post:
      operationId: createGeofence
      summary: Create a geofence
      description: Returns Geofence instance
      parameters:
      - name: enterprise_id
        in: path
        description: A UUID string identifying the enterprise.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '201':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Geofence'
      security:
      - apiKey: []
      tags:
      - Geofence
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Geofence'
        required: true
  /v0/enterprise/{enterprise_id}/geofence/{geofence_id}/:
    parameters:
    - name: geofence_id
      in: path
      description: A UUID string identifying the geofence.
      required: true
      schema:
        type: string
        format: uuid
    - name: enterprise_id
      description: A UUID string identifying the enterprise.
      in: path
      required: true
      schema:
        type: string
        format: uuid
    get:
      operationId: getGeofence
      summary: Get geofence information
      description: Returns geofence instance
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Geofence'
      security:
      - apiKey: []
      tags:
      - Geofence
    put:
      operationId: updateGeofence
      summary: Update geofence information
      description: Returns geofence instance
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Geofence'
      security:
      - apiKey: []
      tags:
      - Geofence
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Geofence'
        required: true
    patch:
      operationId: partialUpdateGeofence
      summary: Partially updates geofence information
      description: Returns geofence instance
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Geofence'
      security:
      - apiKey: []
      tags:
      - Geofence
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeofenceUpdate'
        required: true
    delete:
      operationId: deleteGeofence
      summary: Delete a geofence
      description: Empty response
      responses:
        '204':
          description: successful operation
      security:
      - apiKey: []
      tags:
      - Geofence
components:
  schemas:
    Geofence:
      required:
      - name
      - latitude
      - longitude
      type: object
      properties:
        id:
          title: Geofence id
          description: id of the geofence
          type: string
          format: uuid
          readOnly: true
        name:
          title: Geofence name
          description: Name of the geofence
          type: string
        description:
          title: Geofence description
          description: A description about the geofence
          type: string
        enterprise:
          title: Enterprise id
          description: id of the enterprise resource
          type: string
          format: uuid
          readOnly: true
        latitude:
          title: Geofence latitude
          description: Latitude corresponding to the geofence
          type: string
          format: decimal
        longitude:
          title: Geofence longitude
          description: Longitude corresponding to the geofence
          type: string
          format: decimal
        radius:
          title: Geofence radius
          description: The radius within which the geofence should be applied
          type: integer
        radius_unit:
          title: Unit of radius
          description: The unit in which the radius is taken, eg - kilometers, meters etc
          type: string
          enum:
          - KILOMETERS
          - METERS
          - MILES
        device_actions:
          title: Device Actions
          description: The actions to be performed on the device
          type: array
          items:
            type: string
            enum:
            - LOCK_DOWN
            - BEEP
        device_count:
          title: Device count
          description: Number of devices
          type: integer
          readOnly: true
        created_by:
          title: Created by
          description: The user who created the geofence
          type: string
          readOnly: true
        created_on:
          title: Creation date and time
          description: Date and time of when the geofence was created
          type: string
          format: date-time
          readOnly: true
        updated_on:
          title: Updation date and time
          description: Date and time of when the geofence was updated
          type: string
          format: date-time
          readOnly: true
    GeofenceUpdate:
      type: object
      properties:
        name:
          title: Geofence name
          description: Name of the geofence
          type: string
        description:
          title: Geofence description
          description: A description about the geofence
          type: string
        latitude:
          title: Geofence latitude
          description: Latitude corresponding to the geofence
          type: string
          format: decimal
        longitude:
          title: Geofence longitude
          description: Longitude corresponding to the geofence
          type: string
          format: decimal
        radius:
          title: Geofence radius
          description: The radius within which the geofence should be applied
          type: integer
        radius_unit:
          title: Unit of radius
          description: The unit in which the radius is taken, eg - kilometers, meters etc
          type: string
          enum:
          - KILOMETERS
          - METERS
          - MILES
        device_actions:
          title: Device Actions
          description: The actions to be performed on the device
          type: array
          items:
            type: string
            enum:
            - LOCK_DOWN
            - BEEP
  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