Solinftec Integration
Overview
Access field operations, refueling, and meteorological data from the Solinftec SCDI platform through the Colmeia middleware. Your Solinftec account is connected to your tenant by MT2Data — you only need your tenant bearer secret to make requests.
Base URL: https://colmeia.mt2data.cloud/api/sl
Authentication
All data routes require your tenant bearer secret:
Authorization: Bearer <tenant-secret>
The middleware handles Solinftec's rotating short-lived tokens automatically. No manual token management is needed on your side.
Pagination
All three endpoints support page and size query parameters. Each response includes:
| Field | Description |
|---|---|
page | Current page number |
page_size | Records per page |
total_pages | Total pages available |
data | Array of records |
Increment page until page >= total_pages to retrieve all records.
Operation Details
Endpoint: GET /api/sl/data/:tenantId/operations
Returns field operation history with text descriptions alongside numeric codes. Recommended to query one day at a time.
Query Parameters:
| Parameter | Required | Format | Description |
|---|---|---|---|
dateini | Yes | DD/MM/YYYY HH:MM:SS | Start datetime |
datefim | Yes | DD/MM/YYYY HH:MM:SS | End datetime |
page | No | integer | Page number (default: 1) |
size | No | integer | Records per page (default: 1000) |
equipamento | No | string | Filter by equipment code |
operacao | No | string | Filter by operation code |
operador | No | string | Filter by operator code |
unidade | No | string | Filter by unit code |
talhao | No | string | Filter by field (talhão) code |
ordemservico | No | string | Filter by work order |
curl "https://colmeia.mt2data.cloud/api/sl/data/YOUR_TENANT_ID/operations?dateini=10/09/2024%2000:00:00&datefim=10/09/2024%2023:59:59" \
-H "Authorization: Bearer YOUR_TENANT_SECRET"
Response:
{
"page": 1,
"page_size": 1000,
"total_pages": 1,
"total_rows": 42,
"data": [
{
"cd_id": 12345,
"dt_movimentacao": "10/09/2024 00:00:00",
"cd_equipamento": "T001",
"desc_equipamento": "Equipment description",
"cd_operacao": "101",
"desc_operacao": "Operation description",
"cd_operador": "OP01",
"desc_operador": "Operator name",
"vl_consumo": 45.2
}
]
}
Train Refueling
Endpoint: GET /api/sl/data/:tenantId/refueling
Returns fuel volume dispensed and hourmeter readings. Returns all active trains — no per-train filtering.
Query Parameters:
| Parameter | Required | Format | Description |
|---|---|---|---|
date | Yes | DD/MM/YYYY | Date to query |
page | No | integer | Page number (default: 1) |
size | No | integer | Records per page (default: 1000, max: 10000) |
curl "https://colmeia.mt2data.cloud/api/sl/data/YOUR_TENANT_ID/refueling?date=10/02/2024" \
-H "Authorization: Bearer YOUR_TENANT_SECRET"
Meteorological Data
Endpoint: GET /api/sl/data/:tenantId/weather
Returns hourly climate metrics (rainfall, wind speed, temperature, humidity).
Query Parameters:
| Parameter | Required | Format | Description |
|---|---|---|---|
date | Yes | DD/MM/YYYY | Date to query |
page | No | integer | Page number (default: 1) |
size | No | integer | Records per page (default: 1000) |
curl "https://colmeia.mt2data.cloud/api/sl/data/YOUR_TENANT_ID/weather?date=02/11/2024" \
-H "Authorization: Bearer YOUR_TENANT_SECRET"
Pagination Example
PAGE=1
TOTAL=999
while [ $PAGE -le $TOTAL ]; do
RESP=$(curl -s "https://colmeia.mt2data.cloud/api/sl/data/YOUR_TENANT_ID/operations?dateini=10/09/2024%2000:00:00&datefim=10/09/2024%2023:59:59&page=$PAGE" \
-H "Authorization: Bearer YOUR_TENANT_SECRET")
TOTAL=$(echo $RESP | jq '.total_pages')
# process $RESP data...
PAGE=$((PAGE + 1))
done
Error Codes
| HTTP | Code | Meaning |
|---|---|---|
| 400 | missing_date_range | dateini or datefim not provided (operations) |
| 400 | missing_date | date not provided (refueling / weather) |
| 401 | no_token_found | Your Solinftec account is not connected — contact MT2Data |