Error code server_only (HTTP 403)
What Synq's `server_only` error code means, when the API answers HTTP 403 Forbidden with it, and how to fix it.
Only an org API key on a server reads people's provider tokens: never a person's access token, the dashboard's included, and never a request a browser sent.
What to do
Call from your server with an org API key that has org.users.providerTokens.read, sending no Origin or Sec-Fetch-Site header.
| Field | Value |
|---|---|
code | server_only |
status | 403 Forbidden |
title | Server only |
Synq's APIs answer errors with a problem document (RFC 9457, application/problem+json). Its type is the address of this page, and its code is server_only. Branch on code, never on title or detail: a code never changes once it ships, while the words may.
{
"type": "…/errors/server_only",
"title": "Server only",
"status": 403,
"code": "server_only"
}See every error code. Still stuck? Support says where to write, what to send and where Synq's status page is.
Error code provider_token_revoked (HTTP 409)
What Synq's `provider_token_revoked` error code means, when the API answers HTTP 409 Conflict with it, and how to fix it.
Error code link_code_invalid (HTTP 422)
What Synq's `link_code_invalid` error code means, when the API answers HTTP 422 Unprocessable Content with it, and how to fix it.