Find the insights and best practices about our product.
🤖 Trackline – Proactive automation
🔎 SmartCheck – Digital evidence
🚀 Use cases by sector
Food sector
Construction sector
Industrial sector
Logistics sector
👤 Role based use cases
📊 Use cases by functionality
🤝🏻 Partners
API Queries in Trackline

API Queries in Trackline
Export process information from Trackline via API requests
How can I query the Trackline API?

Trackline is a functionality of the Code Contract platform that allows automating information collection from start to finish, without changing the way people work and without manual registration.

To integrate Trackline and export information associated with a process, queries must be made through the API (Application Programming Interface). Below are the steps to follow.

Step 1: Get the authentication token

To obtain a JWT token that will be included in subsequent queries, send a POST request to the /login endpoint with your username and password.

Example request

POST /login HTTP/1.1  
Host: api.codecontractplattform.com
Content-Type: application/json

{
"email": "myusername",
"password": "mypassword"
}

Example response

HTTP/1.1 200 OK  
Content-Type: application/json

{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmV..."
}

This token must be included in the Authorization header (Authorization: Bearer {token}) in the following requests.

Step 2: Query documents and data

Once authenticated, you can query the API to retrieve process data and attached files.

👉 Base endpoint:
https://api.codecontractplattform.com/api/