Our API is intended for purely professional use. It enables server-to-server (S2S) communication between your server and the Track History server.
The main advantage of the API is the automation of your events. If you have a website or platform that conducts real-time transactions, you obviously won't want to manually report each transaction to your Track History account.
Additionally, the API also allows you to:
* If you do not have a developer, we can handle the installation if your infrastructure allows it.
This is however a paid service.
The private key is only partially displayed on the interface! Clicking on it will allow you to copy it in full.
⚠️ Warning! A private key should only be used on the backend. Do not use it on the frontend (HTML, JavaScript, or any code that can be directly read in the browser).
⚠️ Only use the API if you know exactly what you're doing, as it poses a potential security risk to your Track History account.
You can use your private key either in the headers of your request as a Bearer token or in the request parameters.
In the examples below, replace your_private_key
with the private key you copied.
curl -i https://api.track-history.com \
"Authorization: Bearer your_private_key"
https://api.track-history.com?token=your_private_key
API access URL: https://api.track-history.com
The parameters sent and the responses are always in JSON
Content-Type: application/json
Name | Route | Parameters / Response |
---|---|---|
List of groups | GET /event-group |
Response
|
Count groups | GET /event-group/count |
Response
|
Retrieve a group | GET /event-group/{id} |
Response
|
Create a group | POST /event-group |
Parameters
Response (ID of the created group)
|
Update a group | PATCH /event-group/{id} |
Parameters
|
Delete a group | DELETE /event-group/{id} |
No Response |
Name | Route | Parameters / Response |
---|---|---|
List of categories | GET /event-type |
Response
|
Retrieve a category | GET /event-type/{id} |
Response
|
Create a category | POST /event-type |
Parameters
Response (ID of the created category)
|
Update a category | PATCH /event-type/{id} |
Parameters
|
Delete a category | DELETE /event-type/{id} |
No Response |
Name | Route | Parameters / Response |
---|---|---|
List of value types | GET /event-value-type |
Response
|
Retrieve a value type | GET /event-value-type/{id} |
Response
|
Create a value type | POST /event-value-type |
Parameters
Response (ID of the created value type)
|
Update a value type | PATCH /event-value-type/{id} |
Parameters
|
Delete a value type | DELETE /event-value-type/{id} |
No Response |
Name | Route | Parameters / Response |
---|---|---|
List of events | GET /event |
Response
|
Retrieve an event | GET /event/{id} |
Response
|
Create an event | POST /event |
Parameters
Response (ID of the created event type)
|
Update an event | PATCH /event/{id} |
Parameters
|
Delete an event | DELETE /event/{id} |
No Response |