Onfleet

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.

Learn more
PostHog Wizard hedgehog

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

OptionTypeRequired
API keypasswordYes

Linking Onfleet to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Onfleet
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary 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 refreshtimeCreated
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