# 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 GHL Customer Care or due to an error on…

- Source: https://docs.ghlcustomercare.com/docs/developer-resources/developer-resources-2/how-to-reconnect-broken-marketplace-apps
- Section: Developer Resources / Developer Resources
- Reading time: 1 min
- Modified on Sat, 17 May, 2025 at 6:35 AM

---
In case developers lose access to access token or refresh token due to any reason - either due to an incident from GHL Customer Care 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": "<locationID where the app was installed>"
}'

For Agency connections:

curl --location 'https://services.leadconnectorhq.com/oauth/reconnect' \\
--header 'Content-Type: application/json' \\
--data '{
    "clientKey": "<client\_id>",
    "clientSecret": "<client\_secret>",
    "companyId": "<company where the app was installed>"
}'

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 GHL Customer Care API-Related Issues or Broken Marketplace Apps? Please visit https://developers.https://ghlcustomercare.com/ for API documentations and support.

---

Documentation for GHL Customer Care. Support: support@ghlcustomercare.com