Skip to content

Connectors / Supply chain · HTTP Connector

FedEx integration and API

Create a shipment, create a return tag and send tracking notifications in FedEx, and start a workflow when FedEx sends “Tracking status updated”.

What can you do with FedEx on Tray.ai?

FedEx is a global shipping carrier whose developer APIs let businesses create shipments and labels, compare rates and transit times, validate addresses and track packages. Tray.ai connects to FedEx through the HTTP Connector, so your workflows can call the FedEx API alongside the rest of your stack.

  • When FedEx sends “Tracking status updated”, update the order status in your online store.
  • Create a shipment for each order your warehouse system marks as packed.
  • When FedEx sends “Estimated delivery window updated”, email the new window to the customer from your help desk.
  • Get proof of delivery and attach it to the invoice in your accounting system.
Connects through
HTTP Connector
Authentication
OAuth 2.0

Set it up

Connect FedEx to Tray.ai

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

Sign in to FedEx with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with FedEx. Sign in once and every step reads the token from there.

Import a request from FedEx's docs

Add an HTTP Client step and paste a cURL example from FedEx's API docs. Tray.ai fills in the method, URL, headers, and query.

Start with “Get async shipment labels”

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

Start workflows from FedEx events

Give FedEx the URL of a Tray.ai webhook trigger. “Tracking status updated” can then start a workflow, and so can 1 other event.

Workflows to build with FedEx

Connect FedEx with Shopify, Slack and NetSuite

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

Create a FedEx label for each Shopify order

When

An order is paid in Shopify

Then

  1. Create a shipment
  2. Add the tracking number to the order in Shopify

With Shopify

Notify customer support when a FedEx delivery is delayed

When

Estimated delivery window updated

Then

  1. Track by tracking number
  2. Post the new delivery window to the support channel in Slack

With Slack

Send proof of delivery to NetSuite for closed orders

When

Tracking status updated

Then

  1. Get proof of delivery
  2. Mark the item fulfillment delivered in NetSuite

With NetSuite

Apps you can build on FedEx data

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

Shipping label desk

Lets warehouse staff validate and create a shipment, print the label or cancel it.

Delivery exception tracker

Shows tracking updates for open shipments so support can spot delays and get proof of delivery.

Returns label portal

Lets support look up an order shipment by reference and issue or cancel a return tag.

FedEx MCP server for AI agents

Build an MCP server on FedEx 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 a shipment
  • Create a return tag
  • Track by tracking number
  • Validate a shipment
  • Cancel a shipment
  • Get async shipment labels
  • Cancel a return tag
  • Track by reference

What the FedEx API covers

3 resources and 10 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.

Shipments

  • Create a shipment
  • Validate a shipment
  • Cancel a shipment
  • Get async shipment labels

Return tags

  • Create a return tag
  • Cancel a return tag

Tracking

  • Track by tracking number
  • Track by reference
  • Send tracking notifications
  • Get proof of delivery

Events FedEx can send to a Tray.ai webhook trigger

  • Tracking status updated
  • Estimated delivery window updated

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

developer.fedex.com/api/en-us/home.html

Frequently asked questions

What can a Tray.ai workflow do in FedEx?

The FedEx API documents 10 actions across 3 resources (Shipments, Return tags, Tracking). For example: Create a shipment; Create a return tag; Track by tracking number. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with FedEx?

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

Which FedEx events can start a Tray.ai workflow?

FedEx sends 2 events to a webhook URL, for example: Tracking status updated; Estimated delivery window updated. A Tray.ai webhook trigger receives them and starts a workflow.

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