API Key
The simplest option. Send your key in a header:Basic auth
Send credentials encoded in standard HTTP Basic format:Bearer (JWT)
Exchange your API Key or Basic credentials for a short-lived token viaPOST /auth/token:
Authentication failures
When authentication fails the response isHTTP 401 with the standard envelope:
type for all of them to avoid leaking which credential was wrong.
Good practices
- Store your key in environment variables, never in source code.
- One key per service or environment — simpler rotation and clearer audit.
- Configure an IP allow-list if your traffic comes from fixed IPs.
- If you suspect a leak, email support@origoid.com immediately to rotate.
Browser-based integrations (CORS)
If your application needs to call OrigoID directly from a browser (single-page app, widget), email support@origoid.com with the list of domains that should be allowed (https://app.yourdomain.com, etc.). We will configure the allowed origins for your account so cross-origin requests succeed.
By default the API does not return CORS headers — server-to-server calls do not need them.