API Authentication

How to authenticate with the OrbisCommerce REST API.

Overview

The OrbisCommerce API uses API keys for authentication. All requests must include your API key in the Authorization header.

Base URL: https://api.orbiscommerce.com/v1

Generating an API key

  1. Go to Settings → API Keys
  2. Click Generate New Key
  3. Give the key a name (e.g. "Production", "Development")
  4. Copy and store the key securely — it is shown only once

Making authenticated requests

Include your API key as a Bearer token in every request:

GET /v1/shipments HTTP/1.1
Host: api.orbiscommerce.com
Authorization: Bearer oc_live_xxxxxxxxxxxxxxxxxxxx
Content-Type: application/json

Key types

TypePrefixUse
Liveoc_live_Production shipments and billing
Testoc_test_Testing without generating real labels

Use test keys during development — they return realistic responses but do not charge your account or create real labels.

Key scopes

When generating a key, you can restrict it to specific scopes:

ScopeAccess
shipments:readView shipments and tracking
shipments:writeCreate and void labels
rates:readFetch live carrier rates
orders:readView synced marketplace orders
billing:readView charges and invoices

Revoking a key

Go to Settings → API Keys, find the key, and click Revoke. Revoked keys are immediately invalid.

Rate limits

API requests are limited to 120 requests per minute per key. If you exceed this, the API returns a 429 Too Many Requests response. Contact us if you need higher limits.

Was this article helpful?