401 errors for new integrators.
Auth schemes at a glance
| Surface | Header value | Credentials | Used for |
|---|---|---|---|
| Workspace API | Authorization: Bearer sk_workspace_... | Workspace API key (from Console → Developers → Workspace API Keys) | Managing Apps, Workflows, Providers, Activation, Production Tests |
| App API | Authorization: Basic base64(clientId:clientSecret) | App credentials (returned once by POST /apps) | /verifications, /userinfo, and other end-user-facing endpoints |
Workspace API — Bearer auth
The Workspace API uses your workspace key — a long-lived API key tied to your workspace (not a specific App). Your workspace is your Hopae Connect account, created automatically when you sign up through the Console — see What is a workspace?. Prefix the key withBearer:
sk_workspace_test_... key only works against the sandbox base URL (https://sandbox.api.hopae.com). Production keys begin with sk_workspace_prod_....
App API — Basic auth
App-scoped endpoints use Basic auth with theclientId and clientSecret of a specific App. These credentials are returned once when you call POST /apps (see Create App) and must be persisted by you — there is no retrieval endpoint.
--user shorthand:
Typical integration sequence
Most integrations follow this order:- Create an App — call
POST /appswith your workspace Bearer token. The response containsclientIdandclientSecret. Persist both values immediately. - Activate providers — use workspace Bearer token to call activation endpoints.
- Run verifications — use the App’s
clientId:clientSecretas Basic auth on/verificationsand related endpoints.
Troubleshooting
The App
clientSecret is returned once at creation time. If you lost it, you must create a new App. See Create App for details.Related pages
- Create App — how to obtain
clientIdandclientSecret - Create Verification — using Basic auth for verifications
- Workspace Introduction — workspace key setup

