Connectors / Supply chain · HTTP Connector
OTO integration and API
Create an order, create a shipment and create a return shipment in OTO, and start a workflow when OTO sends “Order status changed”.
What can you do with OTO on Tray.ai?
OTO is a multi-carrier shipping platform for online stores, connecting orders to delivery companies and handling shipments, tracking, returns, products and warehouse stock. Tray.ai connects to OTO through the HTTP Connector, so your workflows can call the OTO API alongside the rest of your stack.
- When OTO sends “Shipment error”, open a ticket in your help desk so support can contact the customer.
- Create an order in OTO when a sale is placed in your online store, ready for carrier booking.
- When OTO sends “Order status changed”, update the order status in your store and notify the customer.
- Create a return shipment in OTO when a return request is approved in your help desk.
- Connects through
- HTTP Connector
- Authentication
- A bearer token
- Base URL
- https://api.tryoto.com/rest/v2
Set it up
Connect OTO to Tray.ai
Each step uses OTO's own API details, from its documentation.
Save OTO's API token
Save the token OTO issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.tryoto.com/rest/v2 as the base URL. Or paste a cURL example from OTO's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List orders”
It's one of 20 documented actions, under Orders. The response comes back as data the next step can map into your other apps.
Start workflows from OTO events
Give OTO the URL of a Tray.ai webhook trigger. “Order status changed” can then start a workflow, and so can 3 other events.
Workflows to build with OTO
Connect OTO with Shopify, Slack and Google Sheets
Each one uses actions and events from OTO's own API documentation.
Create OTO shipments for new Shopify orders
When
An order is placed in Shopify
Then
- Create an order in OTO with the customer and items
- Create a shipment
- Add the tracking details to the order in Shopify
With Shopify
Alert the shipping team in Slack about OTO shipment errors
When
Shipment error
Then
- Get order details for the affected order
- Post the error and order number to the shipping channel in Slack
With Slack
Log OTO order status changes in Google Sheets
When
Order status changed
Then
- Get order details
- Update the order row in the fulfillment tracker in Google Sheets
With Google Sheets
Apps you can build on OTO data
Internal tools your team can build with an AI assistant, each one using OTO calls from its API documentation.
Shipment exception board
Lists orders with shipment errors and lets an ops team track each shipment or cancel and recreate it.
Returns desk
Looks up an order and its return details, and lets support create a return shipment or get a return link for the customer.
Order status tracker
Shows new orders and status changes as they happen, with order details and live tracking for each one.
OTO MCP server for AI agents
Build an MCP server on OTO 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 orders
- Create a shipment
- Create a return shipment
- List products
- List pickup locations
- List webhooks
- Get order details
- Create an order
What the OTO API covers
6 resources and 20 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. New to APIs? Read what an API integration is.
Orders
- List orders
- Get order details
- Create an order
- Update an order
- Cancel an order
Shipments
- Create a shipment
- Cancel a shipment
- Track a shipment
Return shipments
- Create a return shipment
- Get return details
- Get a return link
Products
- List products
- Create a product
Pickup locations
- List pickup locations
- Create a pickup location
- Update a pickup location
Webhooks
- List webhooks
- Create a webhook
- Update a webhook
- Delete a webhook
Events OTO can send to a Tray.ai webhook trigger
- Order status changed
- New order
- Shipment error
- Wallet transaction
Checked against OTO's own documentation on 2026-10-22
How Tray.ai makes this work
OTO plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in OTO, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose OTO actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on OTO data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore 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 OTO?
The OTO API documents 20 actions across 6 resources (Orders, Shipments, Return shipments, Products, Pickup locations, Webhooks). For example: List orders; Create a shipment; Create a return shipment. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with OTO?
The OTO API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which OTO events can start a Tray.ai workflow?
OTO sends 4 events to a webhook URL, for example: Order status changed; New order; Shipment error; Wallet transaction. A Tray.ai webhook trigger receives them and starts a workflow.
See OTO 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.