I am trying to send a response from manychat to get the response my botpress bot will get but it is stating:
{
"code": 403,
"type": "Forbidden",
"message": "Bot \"6405f949-a07a-4450-8f99-b462f9add309\" is not authorized to create messages as an integration"
}
All the values in the header works for get requests and other ones all except this create message reaquest that I need. The code is below. Please help.
POST URL:
https://api.botpress.cloud/v1/chat/messages
Header 1:
Key: Authorization
Value: Bearer bp_pat_15bWm3bI2q1GmNGx3L9wz9PN8FTAwQlfo {xxx - can provide the remaining three letters if required}
Header 2:
Key: Content-Type
Value: application/json
Header 3:
Key: x-bot-id
Value: 6405f949-a07a-4450-8f99-b462f9add309
Header 4:
Key: x-workspace-id
Value: e5506855-b5a8-4be2-9c60-c16e1cd0305b
BODY
{
"conversationId": "64dedbb2-ae3a-4a1b-8dac-9c2fbcc2412a",
"payload": {
"type": "text",
"text": "hinow"
},
"tags": {
"webchat:id": "7fce346f-82b8-4773-8117-a17eda8ab2f9"
},
"userId": "8f310e91-199e-4ff9-9d19-f27a87304a18",
"type": "text",
"direction": "incoming"
}
I got the header values from my account that correctly worked for other response methods. It is this post to create message that is not working, and what I really need.
Please I will apprecate technical assistance as I almost have no one else to assist me get this done but you, as no video or web content has been helpful.