Before you start
You need two values from the TC Fleet panel, on the Integração screen:- Identificação da empresa (company identifier)
- Chave de integração (integration key)
Configuring TC Fleet as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the TC Fleet option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
The following configurations are available:- Company identifier: The Identificação da empresa field on the Integração screen of the TC Fleet panel.
- Integration key: The Chave de integração field on the same screen.
- Start Date: (Optional) The earliest data read on the first sync. Leave it empty to read the whole history.
- Fuelings lookback (days): (Default: 7) TC Fleet does not report when a fueling was changed, so every sync reads again this many days before the last fueling already read. This picks up fuelings corrected in the panel after they were extracted. Increase it if your team corrects fuelings long after they happen.
2. Select streams
Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis.Tip: The stream can be found more easily by typing its name.Select the streams and click Next.
3. Configure data streams
Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.- Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
- Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
- Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
- Incremental: every time the extraction happens, we’ll get only the new and changed data, which is good if, for example, you want to keep every record ever fetched.
- Full table: every time the extraction happens, we’ll get the current state of the data, which is good if, for example, you don’t want to have deleted data in your catalog.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while. A weekly full sync is recommended: vehicles, drivers, tanks and other records deleted in TC Fleet are not reported by its API, so they only leave incremental tables on a full sync.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.Streams and Fields
Available streams
The table below lists every stream, its slug (the exact identifier to pass when creating the source via API) and a short description.
Column names are the TC Fleet API fields in snake_case:
_id becomes id, and references such as _idEstablishment become establishment_id. Nested objects and lists are stored as JSON text (marked JSON string below), for example json_extract_scalar(vehicle, '$.info.plate'). The most used values inside them also have their own columns, such as vehicle_id, vehicle_plate and pump_volume_fuel in Fuelings.
Fields by stream
Fuelings
Fuelings
Slug:
fuelings · Primary key: id · Replication key: timestamp_doneTanks
Tanks
Slug:
tanks · Primary key: id · Replication key: updated_atFuel Types
Fuel Types
Slug:
fuel_types · Primary key: id · Full tableVehicles
Vehicles
Slug:
vehicles · Primary key: id · Replication key: updated_atDrivers
Drivers
Slug:
drivers · Primary key: id · Replication key: updated_atAttendants
Attendants
Slug:
attendants · Primary key: id · Replication key: updated_atChecklists
Checklists
Slug:
checklists · Primary key: id · Replication key: updated_atMaintenances
Maintenances
Slug:
maintenances · Primary key: id · Replication key: updated_atMaintenance Categories
Maintenance Categories
Slug:
maintenance_categories · Primary key: id · Full tableImplementation Notes
Data Quality Considerations
- Fuelings are snapshots: the
vehicle,driver,type_fuelandtankdata on a fueling (and thevehicle_plate,driver_nameandtype_fuel_namecolumns) show the record as it was when the fueling happened. Use the*_idcolumns to join with the current records in Vehicles, Drivers, Fuel Types and Tanks. - Corrected fuelings: TC Fleet only filters fuelings by the day they happened, not by when they were changed. Every incremental extraction reads again the days covered by Fuelings lookback (days) before the last fueling already read. A fueling corrected later than that window is only updated on a full sync.
- Deleted fuelings: fuelings deleted in TC Fleet are kept with
deleted_atfilled, on any date. Filterdeleted_at IS NULLto analyze only valid fuelings. - Deleted records: deleting a vehicle, driver, attendant, tank, fuel type or maintenance in TC Fleet is permanent and is not reported by its API. These records stay in incremental tables until the next full sync. Records with history are usually inactivated instead (
situation = 'I'), which the connector does pick up. - Branches: TC Fleet has no list of branches. Each record carries the branch identifier in
establishment_id; ask TC Fleet for the branch names if you need them. - Status codes: TC Fleet uses single-letter codes (for example
situationA/Iand maintenancestatusP/A/F/C). Their meaning is in the field descriptions above. - Checklist answers: in
questions, option questions (CH,CO,S) mark the chosen option withvalue = "S"; in free-text (L) and signature (SIG) questions, the answer is thevalueof the first item.
API Limits & Performance
- TC Fleet allows 600 requests per minute per IP address. The connector stays well below that and reads 100 records per request. When TC Fleet asks it to slow down or is temporarily unavailable, it waits and retries automatically.
- Except for Fuel Types and Maintenance Categories (small lists, read completely on every run), incremental extractions read only the records created or changed since the last extraction. The last record of the previous extraction is read again on each run, which is expected.