Traccar Devices API

Device management

GitHub OpenAPI

Operations 8

GET /devices Fetch a list of Devices #
POST /devices Create a Device #
GET /devices/{id} Fetch a Device #
PUT /devices/{id} Update a Device #
DELETE /devices/{id} Delete a Device #
PUT /devices/{id}/accumulators Update total distance and hours of the Device #
POST /devices/{id}/image Upload/Update Device image #
POST /devices/{id}/icon Upload Device icon #

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-devices-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-devices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Traccar Devices 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: Devices
  description: Device management
paths:
  /devices:
    get:
      operationId: getDevices
      summary: Fetch a list of Devices
      description: Without any params, returns a list of the user's devices
      x-mcp: true
      tags:
      - Devices
      parameters:
      - name: all
        in: query
        description: Can only be used by admins or managers to fetch all entities
        schema:
          type: boolean
      - name: userId
        in: query
        description: Standard users can use this only with their own _userId_
        schema:
          type: integer
      - name: id
        in: query
        description: To fetch one or more devices. Multiple params can be passed like `id=31&id=42`
        schema:
          type: integer
      - name: uniqueId
        in: query
        description: To fetch one or more devices. Multiple params can be passed like `uniqueId=333331&uniqieId=44442`
        schema:
          type: string
      - name: excludeAttributes
        in: query
        description: Exclude attributes field from device payload
        schema:
          type: boolean
      - name: limit
        in: query
        description: Limit the number of returned results
        schema:
          type: integer
      - name: offset
        in: query
        description: Offset for pagination
        schema:
          type: integer
      - name: keyword
        in: query
        description: Search keyword filter (searches name, uniqueId, phone, model, contact)
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Device'
        '400':
          description: No permission
          content: {}
    post:
      operationId: postDevices
      summary: Create a Device
      tags:
      - Devices
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Device'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Device'
        '401':
          description: Unauthorized
          content: {}
        '400':
          description: Bad request
          content: {}
  /devices/{id}:
    get:
      operationId: getDevicesId
      summary: Fetch a Device
      tags:
      - Devices
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Device'
        '401':
          description: Unauthorized
          content: {}
        '404':
          description: Not found
          content: {}
    put:
      operationId: putDevicesId
      summary: Update a Device
      tags:
      - Devices
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Device'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Device'
        '401':
          description: Unauthorized
          content: {}
        '400':
          description: Bad request
          content: {}
    delete:
      operationId: deleteDevicesId
      summary: Delete a Device
      tags:
      - Devices
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: No Content
          content: {}
        '401':
          description: Unauthorized
          content: {}
  /devices/{id}/accumulators:
    put:
      operationId: putDevicesIdAccumulators
      summary: Update total distance and hours of the Device
      tags:
      - Devices
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceAccumulators'
        required: true
      responses:
        '204':
          description: No Content
          content: {}
        '401':
          description: Unauthorized
          content: {}
        '400':
          description: Bad request
          content: {}
  /devices/{id}/image:
    post:
      operationId: postDevicesIdImage
      summary: Upload/Update Device image
      tags:
      - Devices
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          image/*:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
              example: device.png
        '400':
          description: Invalid image type or size
          content: {}
        '404':
          description: Device not found
          content: {}
  /devices/{id}/icon:
    post:
      operationId: postDevicesIdIcon
      summary: Upload Device icon
      tags:
      - Devices
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          image/*:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
              example: icon.png
        '400':
          description: Invalid image type or size
          content: {}
        '404':
          description: Device not found
          content: {}
components:
  schemas:
    DeviceAccumulators:
      type: object
      properties:
        deviceId:
          type: integer
          format: int64
          description: Device identifier for the accumulator entry
        totalDistance:
          type: number
          description: in meters
        hours:
          type: number
          description: Total engine hours recorded by the device
    Device:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: Unique identifier assigned by Traccar
        name:
          type: string
          description: Human friendly device label
        uniqueId:
          type: string
          description: Hardware or protocol specific unique identifier
        status:
          type: string
          description: Current connection status such as `online`, `offline`, or `unknown`
        disabled:
          type: boolean
          description: Whether the device is disabled by an administrator
        lastUpdate:
          type:
          - string
          - 'null'
          description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
          format: date-time
        positionId:
          type:
          - integer
          - 'null'
          format: int64
          description: Identifier of the last known position
        groupId:
          type:
          - integer
          - 'null'
          format: int64
          description: Parent group identifier when the device is assigned to a group
        phone:
          type:
          - string
          - 'null'
          description: Contact phone number used for SMS commands
        model:
          type:
          - string
          - 'null'
          description: Device model or hardware revision
        contact:
          type:
          - string
          - 'null'
          description: Responsible person's contact information
        category:
          type:
          - string
          - 'null'
          description: Free form category used for grouping devices in the UI
        attributes:
          type: object
          description: Custom attributes for protocol or business specific data
          properties: {}
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    ApiKey:
      type: http
      scheme: bearer