Arrivy Location Report APIs API
The Location Report APIs API from Arrivy — 3 operation(s) for location report apis.
The Location Report APIs API from Arrivy — 3 operation(s) for location report apis.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/arrivy:arrivy-location-report-apis-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: v1
title: Location Reports Location Report APIs API
description: Report is a single report of location for an entity with timestamp and any metadata you would like to store with it. There is 512 KB limit on metadata that you can store with a location report.
servers:
- url: https://app.arrivy.com/api
tags:
- name: Location Report APIs
paths:
/entities/report:
post:
tags:
- Location Report APIs
summary: Send location reports for one or more entities
description: This endpoint takes location report of one or multiple entities in JSON format. It expects an array of reports passed in the body of the request. You can use the JSON format to send the reports.
operationId: send_location_reports
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: Reports are saved
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: INVALID_INPUT
description:
type: string
example: Latitude or Longitude is not a valid geo point
'401':
description: Not Authorized
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: UNAUTHORIZED
description:
type: string
example: Wrong Credentials
'404':
description: Not Found
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: NOT_FOUND
description:
type: string
example: NOT_FOUND
security:
- AuthKey: []
AuthToken: []
requestBody:
content:
application/json:
schema:
type: array
items:
type: object
properties:
entity:
type: integer
example: 5348024557502464
lat:
type: number
example: 22.001
lng:
type: number
example: 42.001
time:
type: string
example: '2016-11-20T01:34:04.848640'
city:
type: string
example: Detroit
street:
type: string
example: Street Name,1
country:
type: string
example: USA
meta:
type: object
example: null
description: An array of JSON objects where each object will contain keys like `entity` (id of an entity), `external_id` (external_id of an entity), `lat`, `lng`, `time` (ISO8601 timestamp), `city`, `street`, `country`, `meta` (meta payload of key value pairs of anything you would like to store with this location. This needs to be a JSON String.). Please note that `lat`, `lng`, `time` and `entity` or `external_id` are the required fields.
/entities/{entity_id}/readings:
get:
tags:
- Location Report APIs
summary: Get reports of a specific entity
description: Get location reports of a specific entity.
operationId: get_entity_reports
parameters:
- name: entity_id
in: path
description: ID of the entity.
required: true
schema:
type: integer
- name: page
in: query
description: Optional page number to fetch.
required: false
schema:
type: integer
- name: items_per_page
in: query
description: Optional entities per page.
required: false
schema:
type: integer
- name: time
in: query
description: ISO8601 timestamp. All reports that came after this timestamp will be returned.
required: false
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
type: object
properties:
entity:
type: integer
example: 5348024557502464
lat:
type: number
example: 22.001
lng:
type: number
example: 42.001
time:
type: string
example: '2016-11-20T01:34:04.848640'
city:
type: string
example: Detroit
street:
type: string
example: Street Name,1
country:
type: string
example: USA
meta:
type: object
example: null
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: INVALID_INPUT
description:
type: string
example: Invalid entity_id
'401':
description: Not Authorized
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: UNAUTHORIZED
description:
type: string
example: Wrong Credentials
'404':
description: Not Found
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: NOT_FOUND
description:
type: string
example: NOT_FOUND
security:
- AuthKey: []
AuthToken: []
/entities:
get:
tags:
- Location Report APIs
summary: Get last report for all entities
description: This API is also mentioned earlier in the Entities section. We intentially didn't discuss that as part of this API we also return last location report as `lastreading` for all entities.
operationId: get_all_entities
parameters:
- name: page
in: query
description: Optional page number to fetch.
required: false
schema:
type: integer
- name: items_per_page
in: query
description: Optional entities per page.
required: false
schema:
type: integer
- name: external_id
in: query
description: Optional param to get entities using external_id. The entity matching this external_id will be returned.
required: false
schema:
type: string
- name: email
in: query
description: Optional param to get entities using email. The entity matching this email will be returned.
required: false
schema:
type: string
- name: group_id
in: query
description: Optional param to get entities part of a specific group within the company. This is an internal arrivy group ID that should be known before-hand. Look at the complete reference on how to fetch all group_ids.
required: false
schema:
type: integer
- name: skill_ids
in: query
description: Comma separated array of skill ids to filter out the entities. These skill ids are the ids returned by Arrivy in response to /api/skills/new or /api/skills.
required: false
schema:
type: string
- name: fetch_last_location
in: query
description: True/False which is used to get the last location report of the entity.
required: false
schema:
type: boolean
- name: fetch_permission_groups
in: query
description: True/False which is used to get the permissions for each of the entities. It returns the array of roles which are “Admin”, “Scheduler” etc. with its status as True/False that describes the permissions for the entity.
required: false
schema:
type: boolean
- name: company_id
in: query
description: Optional param to get entities of another authorized company other than default company. Please reach out to us at dev.support@arrivy.com before you start using this field.
required: false
schema:
type: integer
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: integer
example: 5348024557502464
type:
type: string
example: Night-Shift Driver
owner:
type: integer
example: 5629499534213120
name:
type: string
example: John
email:
type: string
example: john@doe.com
details:
type: string
example: Joe loves his work
extra_fields:
type: object
example: null
image_id:
type: integer
example: 12345
image_path:
type: string
example: https://...../....
lastreading:
type: object
properties:
entity:
type: integer
example: 5348024557502464
lat:
type: number
example: 22.001
lng:
type: number
example: 42.001
time:
type: string
example: '2016-11-20T01:34:04.848640'
city:
type: string
example: Detroit
street:
type: string
example: Street Name,1
country:
type: string
example: USA
meta:
type: object
example: null
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: INVALID_INPUT
description:
type: string
example: Invalid items_per_page
'401':
description: Not Authorized
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: UNAUTHORIZED
description:
type: string
example: Wrong Credentials
security:
- AuthKey: []
AuthToken: []
components:
securitySchemes:
AuthKey:
type: apiKey
name: X-Auth-Key
in: header
AuthToken:
type: apiKey
name: X-Auth-Token
in: header