
Onfleet
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Onfleet to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your Onfleet API key to pull your Onfleet last-mile delivery data into the PostHog Data warehouse.
You can create an API key in your Onfleet dashboard under Settings → API & Webhooks. Onfleet API keys are org-scoped and grant read access to your organization's data.
Configuration
| Option | Type | Required |
|---|---|---|
API key | password | Yes |
Linking Onfleet to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Onfleet
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
tasks | Units of delivery work, each defined by a destination and a recipient, that move through the created, assigned, active, and completed states. | Incremental, Full refresh | timeCreated | — |
workers | Delivery drivers who complete tasks, including their duty status, vehicle, team membership, and location. | Full refresh | — | — |
teams | Groups of workers, optionally attached to hubs, used to organize and dispatch delivery work. | Full refresh | — | — |
hubs | Physical locations (warehouses, depots) that tasks and teams can be anchored to. | Full refresh | — | — |
administrators | Dashboard users (admins and dispatchers) in the organization, with their roles and contact details. | Full refresh | — | — |
webhooks | Registered webhook subscriptions that push Onfleet events to external URLs. | Full refresh | — | — |
organization | The caller's own Onfleet organization: its name, timezone, country, and delegatee relationships. | Full refresh | — | — |