i am using chatwoot api for adding label to conversations , so now when running it
“Access to this endpoint is not authorized for bots”
this error comes , how can i fix that
i am using chatwoot api for adding label to conversations , so now when running it
“Access to this endpoint is not authorized for bots”
this error comes , how can i fix that
This error, Access to this endpoint is not authorized for bots, means that the specific API endpoint you are calling (likkely the one for adding labels) is restricted and cannot be used with an Agent Bot Token or Platform API Token.
The Chatwoot API documentation confirms that the endpoint for managing labels on a conversation (/conversations/{conversation_id}/labels) is part of the Application APIs, which require a specific type of token,.
To resolve this, you need to authenticate your n8n request using a User Access Token (sometimes referred to as an Application API Key) instead of a bot token. This token grants the permissions of a specific human user (an agent) to perform actions like adding or removing conversation labels.
Gemini AI told me this
Please let me know, I think I have drafted some related documentation sudh as How to Get the Correct Token, and How to Use the Token in n8n.
thanks buddy , but can you tell me where to get application token? i am using the token which is provided by creating product app from super admin console , and i have also tried to use the access token given on profile , which work best
You have to use a Chatwoot API key.
You need to generate an api_access_token from an active agent’s profile settings:
Log in to your Chatwoot instance as an Agent or Admin user.
Go to Profile Settings by clicking on your avatar/name.
Navigate to the Access Tokens tab.
Generate a new token.
“Important!!: This token is linked to that user. If the user is deleted or their permissions change, the token may stop working. For production use, it’s best to create a dedicated, non-human “API User” account with appropriate permissions and use their token.“
Ensure the new token is correctly replacing the old one in your n8n HTTP Request or Chatwoot Node setup:
Method: Use HTTP Header authentication.
Header Key: api_access_token
Header Value: The token you just generated.
By switching from a Bot/Platform token to a User/Application token, the Chatwoot API will recognize the request as being made by a human agent’s authority, which is what is required for the conversation label endpoint. Happy to help.