Authorization header. The token is a signed ID token obtained when you sign in to your Synq account — it already encodes your identity, tenant, and organization, so no additional scoping headers are required. Gather your token from the Synq dashboard, then include it on every call you make.
Required Header
| Header | Value | Purpose |
|---|---|---|
Authorization | Bearer {token} | Your signed ID token. Proves who you are and scopes the request to your tenant and organization. |
Your token encodes your Tenant ID and Organization ID as signed claims — you do not need to send them as separate headers. The API reads these values directly from your token on every request.
Obtaining Your Token
Sign in to your Synq account to receive an ID token. The dashboard surfaces this token under Settings → Organization → API Credentials. For programmatic use, authenticate via the Synq login flow and extract the ID token from the response.Token Expiry
ID tokens expire after 1 hour. Refresh your token before it expires and use the new value in theAuthorization header. A stale token returns a 401 Unauthorized response.
Full Request Example
The snippet below shows what a complete authenticated request looks like:Code Examples
Error Responses
401 Unauthorized
You receive a401 when the Authorization header is missing entirely, or the token is expired or malformed. The API rejects the request before any business logic runs.
Authorization header.
403 Forbidden
You receive a403 when your token is valid but a required claim is missing from it, or your assigned role does not permit the action you are attempting.
tenantid, org_id, or role) means your token was not issued with the expected scopes — contact your organization administrator to verify your account is fully provisioned. A permissions error means your role does not include the required access; ask your administrator to review your assigned role.