M2X APIs
M2X APIS (1.0.0)
Download OpenAPI description
Overview
License
All Rights Reserved
Languages
Servers
Mock server
https://developer.m2x.app/_mock/apis/publicapi/openapi/
https://developer.m2x.app/apis/v0/
NZ Production server (uses live data)
https://m2x.app/apis/v0/
US Production server (uses live data)
https://us.m2x.app/apis/v0/
AUS Production server (uses live data)
https://au.m2x.app/apis/v0/
Sandbox server
https://staging.m2x.app/apis/v0/
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/drivers
- https://developer.m2x.app/apis/v0/drivers
- NZ Production server (uses live data)https://m2x.app/apis/v0/drivers
- US Production server (uses live data)https://us.m2x.app/apis/v0/drivers
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/drivers
- Sandbox serverhttps://staging.m2x.app/apis/v0/drivers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developer.m2x.app/_mock/apis/publicapi/openapi/drivers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "name": "John", "disabled": false, "mobile": "+33 123", "description": "Nice Guy", "externalId": "Human searchable external id", "properties": null, "metadata": null, "readonlyFields": { … }, "id": "D001" } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/drivers/{driverId}
- https://developer.m2x.app/apis/v0/drivers/{driverId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/drivers/{driverId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/drivers/{driverId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/drivers/{driverId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/drivers/{driverId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/drivers/{driverId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "name": "John", "disabled": false, "mobile": "+33 123", "description": "Nice Guy", "externalId": "Human searchable external id", "properties": null, "metadata": null, "readonlyFields": { "name": false, "mobile": false, "description": false, "externalId": false }, "id": "D001" }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/drivers/{driverId}
- https://developer.m2x.app/apis/v0/drivers/{driverId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/drivers/{driverId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/drivers/{driverId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/drivers/{driverId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/drivers/{driverId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/drivers/{driverId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "John",
"disabled": false,
"mobile": "+33 123",
"description": "Nice Guy",
"externalId": "Human searchable external id",
"properties": null,
"metadata": null,
"readonlyFields": {
"name": false,
"mobile": false,
"description": false,
"externalId": false
}
}'Response
application/json
{ "name": "John", "disabled": false, "mobile": "+33 123", "description": "Nice Guy", "externalId": "Human searchable external id", "properties": null, "metadata": null, "readonlyFields": { "name": false, "mobile": false, "description": false, "externalId": false }, "id": "D001" }