Bearer auth (http)
Authentication
All API endpoints require a Bearer token in the Authorization header:
Authorization: Bearer <your_token>
Getting credentials
API keys are managed in your organization settings at hub.pattern.com. Navigate to Settings → API Credentials to generate or manage keys.
Environments
| Environment | Base URL |
|---|---|
| Production | https://api.pattern.com/hub |
| Staging | https://stage-api.pattern.com/hub |
Use a key generated in the appropriate environment. Staging and production credentials are separate.
Migration from Reach API
If you are currently using the legacy Reach APIs, this section explains how to migrate to the new Hub APIs.
Base URL Change
Instead of https://api.pattern.com/reach you will use https://api.pattern.com/hub.
client_id and client_secret
Your existing client_id and client_secret will not work for the new hub APIs. Please visit hub.pattern.com in order to generate new credentials.
Data
For any endpoints that are of the same name, the input & output remain identical. The Hub APIs will have more endpoints, and for some, /v2 endpoints. But any existing endpoints would work the same, and you should only need to change your authentication.