Server information
/
Dispatch commands to devi...
Traccar (6.10.0)
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.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://docs2.mygpsapi.com/_mock/openapi
Doha Dynamics API (Production)
https://mygpsapi.com/api
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/commands
- Doha Dynamics API (Production)https://mygpsapi.com/api/commands
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/commands?all=true&userId=0&deviceId=0&groupId=0&refresh=true'Response
application/json
[ { "id": 0, "deviceId": 0, "description": "string", "type": "string", "attributes": {} } ]
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/commands
- Doha Dynamics API (Production)https://mygpsapi.com/api/commands
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://docs2.mygpsapi.com/_mock/openapi/commands \
-H 'Content-Type: application/json' \
-d '{
"id": 0,
"deviceId": 0,
"description": "string",
"type": "string",
"attributes": {}
}'Response
application/json
{ "id": 0, "deviceId": 0, "description": "string", "type": "string", "attributes": {} }
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/commands/{id}
- Doha Dynamics API (Production)https://mygpsapi.com/api/commands/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/commands/{id}' \
-H 'Content-Type: application/json' \
-d '{
"id": 0,
"deviceId": 0,
"description": "string",
"type": "string",
"attributes": {}
}'Response
application/json
{ "id": 0, "deviceId": 0, "description": "string", "type": "string", "attributes": {} }
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/commands/{id}
- Doha Dynamics API (Production)https://mygpsapi.com/api/commands/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/commands/{id}'- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/commands/send
- Doha Dynamics API (Production)https://mygpsapi.com/api/commands/send
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/commands/send?deviceId=0'Response
application/json
[ { "id": 0, "deviceId": 0, "description": "string", "type": "string", "attributes": {} } ]
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/commands/send
- Doha Dynamics API (Production)https://mygpsapi.com/api/commands/send
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://docs2.mygpsapi.com/_mock/openapi/commands/send \
-H 'Content-Type: application/json' \
-d '{
"id": 0,
"deviceId": 0,
"description": "string",
"type": "string",
"attributes": {}
}'Response
application/json
{ "id": 0, "deviceId": 0, "description": "string", "type": "string", "attributes": {} }
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/commands/types
- Doha Dynamics API (Production)https://mygpsapi.com/api/commands/types
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/commands/types?deviceId=0&protocol=string&textChannel=true'