Create Freight Connection
POST/api/freight/connections
Connect a freight account. The credentials are checked with the provider before saving; an invalid key returns 422 with errors.credentials. A provider can be connected once.
integrations:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body fields
provider(required on create):warp.name(optional, max 60).credentials(required on create, object): the provider's credential fields from List Freight Providers; for Warpcredentials.api_key(max 500). A key startingwak_test_is the sandbox: quotes and bookings are test data and nothing is charged. On update, a blank credential keeps the stored value.settings.carrier_scac(optional, 2-4 letters): the SCAC to put on retailer ship notices when the provider is the carrier of record and does not send one (Warp).
Secrets are never returned: credentials.<key> gives only is_set and the last four characters (hint).
Returns 201.
Errors. 409 when the load is in a state that does not allow this action; the body carries message and reasons (every problem, one per entry). 422 when the freight provider rejected the request; errors maps each field the provider named to its messages (an invalid API key appears under credentials). 502 when the freight provider did not answer; code carries the provider's error code when it sent one.
Authentication: Requires Bearer token with the integrations:write scope.
Requires permission: integrations.update
ShipStation (provider: shipstation): credentials.api_key is the account's V2 API key. settings.freight_provider_account_id picks the Worldwide Express or Unishippers account to quote and book through; on edit it must be one of the connection's setting_options.freight_provider_account_id values (test the connection to refresh them). When the account has exactly one, testing selects it. ShipStation can be connected more than once; a name already used by another connection is refused (409).
Request
Responses
- 201
- 401
- 403
- 409
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Conflict
Response Headers
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.