• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

LeadConnector V2 Custom API 401 Scope Error

Hi,

I am trying to use the Custom API action with the LeadConnecter V2.

I am trying to create a conversation via the API as per the documentation here - https://highlevel.stoplight.io/docs/integrations/8d0b19e09176e-create-conversation

Error Received: 401 Error The token is not authorized for this scope.

Do we have the conversations.write scope enabled/passed in the auth request?

1722681911561.png


1722681988251.png
 

Supreme

Well-known member
Staff member
Can you please share the workflow URL once in which you have tried the same so that we can look into it?

Also please refer to the following short recorded video on how you can get the API token from your GHL(LeadConnector) account.

 
Can you please share the workflow URL once in which you have tried the same so that we can look into it?

Also please refer to the following short recorded video on how you can get the API token from your GHL(LeadConnector) account.

Thank you for your response.

The workflow link is below:

With regards to the API key - I don't know if that will work as the API has updated to work with the OAuth flow when connecting the action listed under Connections.

1722932045535.png

The token required would be from that connection and not the standard API key on the account.

When creating the OAuth connection to LeadConnector the URL generated to grant the access contains the scopes that will be enabled. So the url has a parameter called "&scope=" with a space separated list of scopes as below.

1722932646614.png


The current list of scopes in the Pabbly integration are:

&scope=conversations/message.readonly%20conversations/message.write%20campaigns.readonly%20locations/customFields.readonly%20locations/customFields.write%20contacts.readonly%20contacts.write%20opportunities.readonly%20opportunities.write%20users.readonly%20users.write%20locations.readonly%20locations.write%20locations/tasks.readonly%20workflows.readonly%20businesses.write%20businesses.readonly%20calendars.readonly%20calendars/events.write%20locations/templates.readonly%20locations/customValues.readonly%20locations/customValues.write%20funnels/redirect.write

We are missing "conversations.write%20conversations.readonly%20"

Thanks!
 

Supreme

Well-known member
Staff member
We recommend you run that API request correctly on Postman first and then try the same CURL on API using the Pabbly action step.
 
Top