This page documents the HTTP headers used when making requests to PartsSource APIs.
Authorization
All API requests require an Authorization header with a Bearer token:
Authorization: Bearer {your-access-token}
See Authentication for details on obtaining an access token.
Idempotency-Key
The Idempotency-Key header is required for order creation (POST /orders) and prevents duplicate orders when retrying failed requests.
Purpose
Network failures, timeouts, or client errors can cause uncertainty about whether a request succeeded. Without idempotency, retrying a POST /orders request could create duplicate orders. The Idempotency-Key header ensures that retrying the same request returns the original response instead of creating a new order.
Format
The header value must be a valid UUID (version 4 recommended):