Skip to content
Deftship logo

Connectors / Supply chain · HTTP Connector

Automate Deftship with Tray.ai

Create a parcel order, create a batch and create a freight order in Deftship. Connect Deftship to the rest of your supply chain stack with Tray.ai.

Great — a couple more details

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

See all connectors

What can you do with Deftship on Tray.ai?

Deftship is a shipping platform for small businesses that compares carrier rates and books parcel, freight, and pickup shipments from one account. Tray.ai connects to Deftship through the HTTP Connector, so your workflows can call the Deftship API alongside the rest of your stack.

  • Get parcel rates for each new order in your store and pick the cheapest carrier.
  • Create a parcel order when an order is marked ready to ship in your order system.
  • Validate an address on new customer orders before they reach your warehouse team.
  • Arrange a pickup when your warehouse system confirms a freight order is packed.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://api.deftship.com

Set it up

Connect Deftship to Tray.ai

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

Step 1

Save Deftship's API token

Save the token Deftship 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.

Step 2

Point the HTTP Client at the API

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

Step 3

Start with “Get parcel rates”

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

Step 4

Hand it to an AI agent

Wrap “Create a parcel order” and “Get a parcel order” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

What the Deftship API covers

6 resources and 21 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.

Parcel orders

  • Get parcel rates
  • Create a parcel order
  • Get a parcel order
  • Void a parcel

Batch shipments

  • Create a batch
  • Add items to a batch
  • Remove items from a batch
  • Ship a batch

Freight orders

  • Get freight rates
  • Create a freight order
  • Get a freight order
  • Void a freight order

Pickup orders

  • Get pickup rates
  • Arrange a pickup
  • Get a pickup
  • Void a pickup

Insurance

  • Get insurance rates
  • Book insurance
  • Void insurance

Addresses

  • Validate an address
  • Get the address book

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

developer.deftship.com

Frequently asked questions

What can a Tray.ai workflow do in Deftship?

+

The Deftship API documents 21 actions across 6 resources (Parcel orders, Batch shipments, Freight orders, Pickup orders, Insurance, Addresses). For example: Get parcel rates; Create a batch; Get freight rates. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Deftship?

+

The Deftship API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Deftship 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.