INVALID_PUBLIC_TOKEN

http code 400
{
 "error_category": "INVALID_INPUT",
 "error_code": "INVALID_PUBLIC_TOKEN",
 "error_message": "Could not find matching public token",
 "display_message": null
}

Common causes

  • Public tokens are in the format: public-<environment>-<identifier>
  • This error can happen when the public_token you provided is invalid, pertains to a different API environment, or has expired.

Troubleshooting steps

  • Make sure you are not using a token created in one environment in a different environment (for example, using a Sandbox token in the Development environment).
  • Ensure that the client_id, secret, and public_token are all associated with the same Deck developer account.
  • The public_token expires after 30 minutes. If your public_token has expired, send your user to the Link flow to generate a new public_token.