Skip to content
USPS logo

Connectors / Supply chain · HTTP Connector

USPS integration and API

Schedule a carrier pickup in USPS. Connect USPS to the rest of your supply chain stack with Tray.ai.

What can you do with USPS on Tray.ai?

USPS, the United States Postal Service, offers shipping APIs for address validation, postage prices, package tracking, carrier pickups, labels and Post Office locations. Tray.ai connects to USPS through the HTTP Connector, so your workflows can call the USPS API alongside the rest of your stack.

  • Standardize an address with USPS before a new customer is saved to your order system.
  • Get tracking details from USPS when a customer asks your help desk where their order is.
  • Search total rates with USPS to compare shipping costs before your warehouse ships an order.
  • Schedule a carrier pickup with USPS when your warehouse marks a batch of orders ready to ship.
Connects through
HTTP Connector
Authentication
OAuth 2.0 or a bearer token
Base URL
https://apis.usps.com

Set it up

Connect USPS to Tray.ai

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

Sign in to USPS with OAuth 2.0

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

Point the HTTP Client at the API

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

Start with “Look up city and state”

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

Hand it to an AI agent

Wrap “Standardize an address” and “Look up a ZIP Code” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with USPS

Connect USPS with Shopify, Zendesk and Salesforce

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

Standardize Shopify shipping addresses with USPS

When

An order is created in Shopify

Then

  1. Standardize an address
  2. Add the standardized address to the order in Shopify

With Shopify

Post USPS tracking updates to Zendesk tickets

When

On a schedule

Then

  1. Get tracking summary for open shipment tickets
  2. Add the latest status to the ticket in Zendesk

With Zendesk

Clean new Salesforce account addresses with USPS

When

An account is created in Salesforce

Then

  1. Standardize an address
  2. Update the account address in Salesforce

With Salesforce

Apps you can build on USPS data

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

Package tracking lookup

Lets support staff enter a tracking number and see the summary and full scan history.

Shipping rate checker

Lets warehouse staff compare total rates and delivery estimates before choosing a mail service.

Carrier pickup scheduler

Checks pickup eligibility for an address and lets staff schedule, change or cancel a carrier pickup.

USPS MCP server for AI agents

Build an MCP server on USPS 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

  • Standardize an address
  • Get tracking summary
  • Search base rates
  • Check pickup eligibility
  • Find drop-off locations
  • Get delivery estimates
  • Look up city and state
  • Look up a ZIP Code

What the USPS API covers

6 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. New to APIs? Read what an API integration is.

Addresses

  • Standardize an address
  • Look up city and state
  • Look up a ZIP Code

Tracking

  • Get tracking summary
  • Get tracking details

Prices

  • Search base rates
  • Search extra service rates
  • Search total rates
  • Search letter rates

Carrier pickups

  • Check pickup eligibility
  • Schedule a carrier pickup
  • Get a carrier pickup
  • Update a carrier pickup
  • Cancel a carrier pickup

Locations

  • Find drop-off locations
  • Find Post Office locations

Service standards

  • Get delivery estimates
  • Get service standards

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

developers.usps.com/apis

Frequently asked questions

What can a Tray.ai workflow do in USPS?

The USPS API documents 18 actions across 6 resources (Addresses, Tracking, Prices, Carrier pickups, Locations, Service standards). For example: Standardize an address; Get tracking summary; Search base rates. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with USPS?

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

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