Skip to main content

Error delivery

URL Query

Junction performs a 307 Temporary Redirect to the redirect_url specified in your Link Token in the following scenarios: Error parameters would be appended to the redirect_url before the redirection. For example, given a redirect_url of https://example.com/vital/callback:
provider is included when the provider is known, and isMobile is included when the client context is available. Treat both parameters as optional because some errors occur before Junction Link has that context. When included, provider contains the provider slug and isMobile is the string true or false. Each Junction-generated parameter appears once. Junction preserves existing non-empty query parameters that do not conflict with Link parameters. If Junction generates a parameter already present in the supplied redirect_url, the generated value replaces it. Do not rely on query parameter ordering.

JSON Response

Junction responds 200 OK with a JSON response in the following scenarios: Error parameters would be embedded into the JSON response. For example:

Error Parameters

const string
Constant: error
string
One of the Link Error Types.
string
A human-readable error explanation for troubleshooting purposes. Your application logic should not rely on this message.

Error Types

This list is non-exhaustive. Your application logic must gracefully handle any unrecognized error type.