
Connectors / Supply chain · HTTP Connector
Automate Route4Me with Tray.ai
Create an optimization, add addresses to routes and create an order in Route4Me, and start a workflow when Route4Me sends “Optimization completed”.
What can you do with Route4Me on Tray.ai?
Route4Me is a route planning and delivery management service that optimizes multi-stop routes, manages orders and address books, and tracks drivers and vehicles in the field. Tray.ai connects to Route4Me through the HTTP Connector, so your workflows can call the Route4Me API alongside the rest of your stack.
- When Route4Me sends “Optimization completed”, send each driver their route and stop list by text message.
- Create an order in Route4Me for each new delivery order placed in your ecommerce store.
- When Route4Me sends “Optimization failed”, alert the dispatch team in your team chat so they can fix the stops.
- Get route tracking data during the day and update delivery ETAs in your customer notifications.
- Connects through
- HTTP Connector
- Authentication
- An API key in the query string
- Base URL
- https://api.route4me.com
Set it up
Connect Route4Me to Tray.ai
Each step uses Route4Me's own API details, from its documentation.
Step 1
Save Route4Me's API key
Save the key as a Tray.ai authentication and add it to the query string from $.auth, so it never sits in the workflow itself.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.route4me.com as the base URL. Or paste a cURL example from Route4Me's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “Get an optimization”
It's one of 25 documented actions, under Optimizations. The response comes back as data the next step can map into your other apps.
Step 4
Start workflows from Route4Me events
Give Route4Me the URL of a Tray.ai webhook trigger. “Optimization completed” can then start a workflow, and so can 1 other event.
Workflows to build with Route4Me
Each one uses actions and events from Route4Me's own API documentation.
Add Shopify delivery orders to Route4Me
When
An order with local delivery is placed in Shopify
Then
- Create an order with the delivery address
- Add an order to a route for the delivery day
With Shopify
Share optimized Route4Me routes with drivers in Slack
When
Optimization completed
Then
- Get an optimization with the route stops
- Post the routes to the dispatch channel in Slack
With Slack
Alert dispatch when a Route4Me optimization fails
When
Optimization failed
Then
- Get an optimization to read the failure details
- Post the failed optimization to the dispatch channel in Microsoft Teams
With Microsoft Teams
Apps you can build on Route4Me data
Internal tools your team can build with an AI assistant, each one using Route4Me calls from its API documentation.
Delivery route board
Shows planned routes with driver tracking data so dispatch can see progress on each route.
Order assignment desk
Lists unassigned orders and lets a dispatcher add each one to a route.
Fleet list
Lists vehicles and lets a fleet manager add or update vehicle details.
Give your AI agents Route4Me tools
Build an MCP server on Route4Me 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
- Create an optimization
- Get multiple routes
- Create an order
- Create a location
- Get vehicles
- Get route tracking data
- Get an optimization
- Re-optimize an optimization
What the Route4Me API covers
6 resources and 25 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.
Optimizations
- Create an optimization
- Get an optimization
- Re-optimize an optimization
- Remove an optimization
Routes
- Get multiple routes
- Update a route
- Add addresses to routes
- Merge routes
- Remove routes
Orders
- Create an order
- Get orders
- Update an order
- Add an order to a route
- Remove an order
Address book
- Create a location
- Get locations
- Update a location
- Remove locations
Vehicles
- Get vehicles
- Create a vehicle
- Update a vehicle
- Remove a vehicle
Tracking
- Get route tracking data
- Insert route tracking data
- Get all user locations
Events Route4Me can send to a Tray.ai webhook trigger
- Optimization completed
- Optimization failed
Checked against Route4Me's own documentation on 2026-10-22
How Tray.ai makes this work
Route4Me plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in Route4Me — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose Route4Me actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on Route4Me data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More supply chain apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every supply chain connector →
Frequently asked questions
What can a Tray.ai workflow do in Route4Me?
+
The Route4Me API documents 25 actions across 6 resources (Optimizations, Routes, Orders, Address book, Vehicles, Tracking). For example: Create an optimization; Get multiple routes; Create an order. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Route4Me?
+
The Route4Me API uses an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Route4Me events can start a Tray.ai workflow?
+
Route4Me sends 2 events to a webhook URL, for example: Optimization completed; Optimization failed. A Tray.ai webhook trigger receives them and starts a workflow.
See Route4Me working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.