Traccar Share API

Share devices and groups

GitHub OpenAPI

Operations 6

GET /share/device Fetch a link for an existing device share #
POST /share/device Share device location #
GET /share/group Fetch a link for an existing group share #
POST /share/group Share group devices #
DELETE /share/device/{id} Delete an existing device share #
DELETE /share/group/{id} Delete an existing group share #

Specifications

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/traccar:traccar-share-api"
All apis
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.

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. 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 Specification

traccar-share-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Traccar Share API
  description: Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free demo servers. For production use you can install your own server or get a subscription service.
  contact:
    name: Traccar Support
    url: https://www.traccar.org/
    email: support@traccar.org
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 6.17.0
servers:
- url: https://demo.traccar.org/api
  description: Demo Server 1
- url: https://demo2.traccar.org/api
  description: Demo Server 2
- url: https://demo3.traccar.org/api
  description: Demo Server 3
- url: https://demo4.traccar.org/api
  description: Demo Server 4
- url: https://server.traccar.org/api
  description: Subscription Server
- url: http://{host}:{port}/api
  description: Other Server
  variables:
    host:
      default: localhost
    port:
      enum:
      - '8082'
      - '80'
      default: '8082'
security:
- BasicAuth: []
- ApiKey: []
tags:
- name: Share
  description: Share devices and groups
paths:
  /share/device:
    get:
      operationId: getShareDevice
      summary: Fetch a link for an existing device share
      tags:
      - Share
      parameters:
      - name: deviceId
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Existing share with a newly generated token and its original expiration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShareLink'
        '403':
          description: Sharing is disabled or temporary user
          content: {}
        '404':
          description: Share not found
          content: {}
    post:
      operationId: postShareDevice
      summary: Share device location
      tags:
      - Share
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - deviceId
              - expiration
              properties:
                deviceId:
                  type: integer
                expiration:
                  type: string
                  format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShareLink'
        '403':
          description: Sharing is disabled or temporary user
          content: {}
  /share/group:
    get:
      operationId: getShareGroup
      summary: Fetch a link for an existing group share
      tags:
      - Share
      parameters:
      - name: groupId
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Existing share with a newly generated token and its original expiration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShareLink'
        '403':
          description: Sharing is disabled or temporary user
          content: {}
        '404':
          description: Share not found
          content: {}
    post:
      operationId: postShareGroup
      summary: Share group devices
      tags:
      - Share
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - groupId
              - expiration
              properties:
                groupId:
                  type: integer
                expiration:
                  type: string
                  format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShareLink'
        '403':
          description: Sharing is disabled or temporary user
          content: {}
  /share/device/{id}:
    delete:
      operationId: deleteShareDevice
      summary: Delete an existing device share
      tags:
      - Share
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: No Content
          content: {}
        '403':
          description: Sharing is disabled or temporary user
          content: {}
        '404':
          description: Share not found
          content: {}
  /share/group/{id}:
    delete:
      operationId: deleteShareGroup
      summary: Delete an existing group share
      tags:
      - Share
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: No Content
          content: {}
        '403':
          description: Sharing is disabled or temporary user
          content: {}
        '404':
          description: Share not found
          content: {}
components:
  schemas:
    ShareLink:
      type: object
      properties:
        token:
          type: string
        expiration:
          type: string
          format: date-time
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    ApiKey:
      type: http
      scheme: bearer