Skip to content

How to reconnect broken Marketplace Apps?

In case developers lose access to access token or refresh token due to any reason - either due to an incident from Patient Copilot or due to an error on the developer’s end - we have provided a solution. You can now use the Reconnect API to get back the authorisation code that can be used in Get Access Token API (OAuth - Authorisation grant flow) to get back a new set of access and refresh tokens. This enables you to reinstate the connection without having to trouble your users. For Sub-Account App connections: curl —location ‘https://services.leadconnectorhq.com/oauth/reconnect’ \ —header ‘Content-Type: application/json’ \ —data ’{ “clientKey”: “<client_id>”, “clientSecret”: “<client_secret>”, “locationId”: "" }’ For Agency connections: curl —location ‘https://services.leadconnectorhq.com/oauth/reconnect’ \ —header ‘Content-Type: application/json’ \ —data ’{ “clientKey”: “<client_id>”, “clientSecret”: “<client_secret>”, “companyId”: "" }’ Response of the API: { “authorizationCode”: “<auth_code>”, “expiresAt”: “2024-10-08T13:35:43.887Z”, “traceId”: “trace-ID-ref” } IMPORTANT: If you are concerned on how do I receive Official Support for Patient Copilot API-Related Issues or Broken Marketplace Apps? Please visit https://developers.patientcopilot.ai/ for API documentations and support. Was this article helpful? That’s Great! Thank you for your feedback Sorry! We couldn’t be helpful Thank you for your feedback Feedback sent We appreciate your effort and will try to fix the article