Skip to main content

Authentication

The Discover API supports two ways for users to authenticate, plus an API key you send on every authenticated request. Full detail lives in the Telmar API Authentication docs.

Login methods​

MethodHow it works
Standard loginUsers authenticate with their TelmarHelixa Cognito username and password, provided by Sales.
SSO / federated loginSSO for API calls via OAuth 2.0, SAML 2.0 and OpenID Connect (OIDC). Supported identity providers include Google, Microsoft, Okta, and any domain with SSO auth access enablement.

Account auth vs API auth​

These two are the most common source of confusion, so it is worth being explicit.

Account authAPI auth
Who it identifiesA personA machine client / integrating service
CredentialCognito username + password (or SSO)API key (Telmar-Engine-Authorizer)
What you sendA browser or identity-provider sessionTelmar-Engine-Authorizer: <api-key>
SSOAvailable where enabled for the accountAvailable (OAuth 2.0, SAML 2.0, OIDC)
Used forAccount access where requiredCalling POST /crosstab
Scoped byYour TelmarHelixa accountTelmarHelixa datasets on the agreement

The practical consequence: TelmarHelixa issues an API key when access is provisioned, and your application uses that key to call the API. An account session cookie alone cannot call the API.

Prerequisites​

All API users require a TelmarHelixa account with data access enabled for the TelmarHelixa datasets on their agreement. Permissioning and survey access must be configured before any API queries can be made — see Getting started → Permissioning.

Sending the API key​

Authenticated requests send the key issued at provisioning as:

Authenticated request header — sample data
Telmar-Engine-Authorizer: SAMPLE.ENGINE.AUTHORIZER

GET /docs and OPTIONS /crosstab do not require this header. POST /crosstab does.

Keep it server-side

Store the API key in a secret manager. Never commit it, never ship it to a browser. Contact TelmarHelixa to rotate it if it is exposed.

Failure modes​

SymptomCauseFix
401 UnauthorizedAPI key or Cognito credentials missing, malformed or invalidVerify the key issued at provisioning; see the auth docs
401 on a valid keyA mnemonic in audience or items is not cleared for this authorization groupChange the coding statement or the authorization group
401 on every call, alwaysSending an account session cookie instead of the API keyUse Telmar-Engine-Authorizer — see above
403 ForbiddenValid credentials, but the Discover API is not enabled or the dataset is not on the agreementConfirm permissioning with TelmarHelixa
Works locally, 401 in CICI is using a stale or unset secretCheck your CI secret store

Worked request and response payloads for the 401 and 403 cases are in the example gallery.

Security expectations​

  • Store the API key in a secret manager. Never commit it, never ship it to a browser.
  • Rotate credentials if a secret is exposed.
  • Use separate credentials per environment so revoking one does not take down the other.
  • Ensure every caller has a TelmarHelixa account with the TelmarHelixa datasets on the agreement enabled.