Authentication

How to authenticate your requests to the OrbisCommerce API.

API Keys

The OrbisCommerce API uses Bearer token authentication. Include your API key in the Authorization header of every request.

Authorization: Bearer YOUR_API_KEY

API keys are prefixed with orb_live_ for production and orb_test_ for sandbox:

orb_live_sk_a1b2c3d4e5f6...   # Production
orb_test_sk_x9y8z7w6v5u4...   # Sandbox

Sandbox vs Production

The sandbox environment lets you test without generating real shipments or charges.

EnvironmentBase URL
Productionhttps://api.orbiscommerce.com/v1
Sandboxhttps://sandbox.orbiscommerce.com/v1

Sandbox shipments, labels, and tracking events are simulated. Use sandbox keys only in development.

Getting Your API Key

  1. Log in to your OrbisCommerce dashboard
  2. Go to Settings → API Keys
  3. Click Generate New Key
  4. Copy and store it securely — it will only be shown once

Key Permissions

Each key can be scoped to specific permissions:

PermissionDescription
shipments:readRead shipment data
shipments:writeCreate and cancel shipments
labels:readDownload labels
labels:writeGenerate and void labels
tracking:readAccess tracking events
webhooks:writeManage webhook endpoints
rates:readFetch carrier rates

Security Best Practices

  • Never expose API keys in client-side code or public repositories
  • Rotate keys regularly and immediately if compromised
  • Use separate keys per environment (sandbox / production)
  • Scope keys to the minimum permissions required

Revoking a Key

Keys can be revoked from the dashboard at any time under Settings → API Keys → Revoke. Revoked keys return 401 Unauthorized immediately.