SynqDocs
Errors

Error code link_result_invalid (HTTP 400)

What Synq's `link_result_invalid` error code means, when the API answers HTTP 400 Bad Request with it, and how to fix it.

A link result the app redeems (the account API) is unknown, was redeemed already, is older than its 5 minutes, or isn't this app's, this person's or this PKCE verifier's: one answer for all of them, so none can be told apart. The same code answers when the app no longer finishes links itself: it isn't a native app of the brand's own any more, or the brand's link_reauth_window is 0 now.

What to do

Redeem the synq_link_result the browser just brought back, once, with the token of the person who started the link through this app and the code_verifier of the authorization request it came back from. Otherwise start adding the way in again: where the app no longer finishes it, the new request's finish is browser.

FieldValue
codelink_result_invalid
status400 Bad Request
titleLink result invalid

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 link_result_invalid. Branch on code, never on title or detail: a code never changes once it ships, while the words may.

{
  "type": "…/errors/link_result_invalid",
  "title": "Link result invalid",
  "status": 400,
  "code": "link_result_invalid"
}

See every error code. Still stuck? Support says where to write, what to send and where Synq's status page is.

On this page