Authentication
APC's APIs use three authentication schemes — pick the one that matches the endpoint you're calling.
JSON body credentials (Label only)
The Label endpoint accepts credentials in the request JSON body:
| Field | Description |
|---|---|
userID | Your APC user ID |
accountNumber | Your APC account number (e.g., 15255) |
passcode | Your API passcode |
See the Label reference for the full request body.
HTTP Basic Auth
The Rate, Track, Services, Update, and Void endpoints use HTTP Basic Auth:
- Username: your account number (e.g.,
15255) - Password: your API passcode
Most HTTP clients accept these as separate inputs; the wire-format header is Authorization: Basic <base64(accountNumber:passcode)>.
dtKey header (LandIT™)
The LandIT™ duties & taxes endpoint uses a separate API key:
- Provide the API key issued to you by APC in the
dtKeyrequest header.
dtKey: your-base64-encoded-key