Skip to content
Motive logo

Connectors / Supply chain · HTTP Connector

Motive integration and API

Create a vehicle, create a dispatch and create a fuel purchase in Motive, and start a workflow when Motive sends “Vehicle location updated”.

What can you do with Motive on Tray.ai?

Motive is a fleet management platform, formerly KeepTruckin, that tracks vehicles, driver hours of service, dispatches, fuel purchases and safety events for trucking fleets. Tray.ai connects to Motive through the HTTP Connector, so your workflows can call the Motive API alongside the rest of your stack.

  • When Motive sends “Fault code opened”, create a work order in your maintenance system.
  • When Motive sends “HOS violation created or updated”, notify the safety manager in your team chat.
  • Create a dispatch in Motive when a load is booked in your transport management system.
  • Create a fuel purchase from card transactions recorded in your expense system.
Connects through
HTTP Connector
Authentication
An API key in a request header or OAuth 2.0
Base URL
https://api.gomotive.com

Set it up

Connect Motive to Tray.ai

Each step uses Motive's own API details, from its documentation.

Step 1

Save Motive's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.gomotive.com as the base URL. Or paste a cURL example from Motive's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List vehicles”

It's one of 18 documented actions, under Vehicles. The response comes back as data the next step can map into your other apps.

Step 4

Start workflows from Motive events

Give Motive the URL of a Tray.ai webhook trigger. “Vehicle location updated” can then start a workflow, and so can 7 other events.

Workflows to build with Motive

Connect Motive with ServiceNow, Microsoft Teams and NetSuite

Each one uses actions and events from Motive's own API documentation.

Open ServiceNow tickets for Motive fault codes

When

Fault code opened

Then

  1. Look up a vehicle in Motive
  2. Open a maintenance ticket in ServiceNow for the vehicle

With ServiceNow

Alert safety managers to Motive HOS violations

When

HOS violation created or updated

Then

  1. Get a user in Motive for the driver
  2. Post the violation to the safety channel in Microsoft Teams

With Microsoft Teams

Send Motive fuel purchases to NetSuite

When

On a schedule

Then

  1. List fuel purchases in Motive since the last run
  2. Record each purchase as an expense in NetSuite

With NetSuite

Apps you can build on Motive data

Internal tools your team can build with an AI assistant, each one using Motive calls from its API documentation.

Hours of service violation board

Lists HOS violations by driver so safety managers can review each driver's logs.

Fuel purchase review

Lists fuel purchases by vehicle and lets fleet admins correct an entry.

Dispatch board

Shows dispatches with their vehicles and lets dispatchers create or update a dispatch.

Give your AI agents Motive tools

Build an MCP server on Motive in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List vehicles
  • List users
  • List dispatches
  • List fuel purchases
  • List HOS logs
  • Create a vehicle
  • Update a vehicle
  • Look up a vehicle

What the Motive API covers

5 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Vehicles

  • List vehicles
  • Create a vehicle
  • Update a vehicle
  • Look up a vehicle

Users

  • List users
  • Get a user
  • Create a user
  • Update a user

Dispatches

  • List dispatches
  • Create a dispatch
  • Update a dispatch

Fuel purchases

  • List fuel purchases
  • Create a fuel purchase
  • Update a fuel purchase
  • Delete a fuel purchase

Hours of service logs

  • List HOS logs
  • List HOS violations
  • Create a log suggestion

Events Motive can send to a Tray.ai webhook trigger

  • Vehicle location updated
  • Vehicle created or updated
  • Fault code opened
  • Fault code closed
  • User created or updated
  • Inspection report created or updated
  • HOS violation created or updated
  • Vehicle entered or exited geofence

Checked against Motive's own documentation on 2026-10-22

developer-docs.gomotive.com

Frequently asked questions

What can a Tray.ai workflow do in Motive?

+

The Motive API documents 18 actions across 5 resources (Vehicles, Users, Dispatches, Fuel purchases, Hours of service logs). For example: List vehicles; List users; List dispatches. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Motive?

+

The Motive API uses an API key in a request header and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Motive events can start a Tray.ai workflow?

+

Motive sends 8 events to a webhook URL, for example: Vehicle location updated; Vehicle created or updated; Fault code opened; Fault code closed; User created or updated; Inspection report created or updated; HOS violation created or updated; Vehicle entered or exited geofence. A Tray.ai webhook trigger receives them and starts a workflow.

See Motive working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.