Ship Your First API Request
Create access credentials, authenticate, shop rates, then purchase a label using the same endpoints as the SyncShip app.
Overview
This quickstart walks through the minimum path from a developer account to a successful rates response. Use sandbox credentials when available.
- 1
Create a developer account
Sign up for SyncShip and open the developer settings for your workspace.
- 2
Generate an API key
Create a sandbox or production key and store it securely. Never commit keys to source control.
- 3
Shop rates
Call POST /api/v1/shipments/rates with origin, destination, and weight.
- 4
Purchase a label
Use POST /api/v1/shipments with an order id and the service you selected from rates.
Authentication
Pass your API key as a Bearer token on every request.
First endpoint
Start with the Rates API. Once quotes return, continue to Labels to purchase.
/api/v1/shipments/ratesFirst request
A minimal rates body needs origin ZIP, destination ZIP, and weight.
| Parameter | Type | Required | Description |
|---|---|---|---|
| fromPostalCode | string | Yes | Origin postal code. |
| toPostalCode | string | Yes | Destination postal code. |
| toCountry | string | No | Destination country code. Defaults to US. |
| weightLb | number | Yes | Weight in pounds. |
| weightOz | number | Yes | Additional ounces. |
Example response
You should receive a rates array. Amounts and services depend on enabled carriers and destination.
Example response
Errors
Fix validation errors before retrying. Use backoff for rate limits.
401Missing or invalid API key.422Validation failed — check postal codes or weight.429Too many requests — retry with exponential backoff.
Next steps
Explore full Rates and Labels docs, then wire webhooks for downstream updates.