How to Send/Receive Messages/Responses (via REST API) to my Botpress Cloud Bot

Hi botpress Cloud community!

I have successfully integrated my bot (created with botpress cloud) on my website and on Messenger.

But now, I want to use my own app, and I want to know how to send a message to my bot and get a response using rest API call:

Something like:

POST /v1/chat/webhook HTTP/1.1
Authorization: Bearer bp_fffffffffffffffffffffffffff
Accept: application/json
Content-Type: application/json
Content-Length: 167

    "messages": [{"type": "text", "text": "How much is 2*6 ?"}]

I have all informations like, webhookUrl, x-bot-id, x-workspace-id, Bearer key, etc…

Hi @ryan ,

Our APIs are currently in Beta, and we are enhancing the documentation and working on videos for it.
I am sure it will be easier for you to build it if you can wait two weeks.

What do you think?

We would appreciate even for some simple HTTP requests examples.

1 Like

hey @robothr ,

First post :tada:

Can you tell me more about what you mean by simple HTTP examples?
Are you referring to Botpress API requests?

Yes, like this but for cloud:

curl 'http://localhost:3001/api/v1/bots/weather/mod/channel-web/messages?__ts=1625757442879' 
-H 'Accept: application/json, text/plain, */*' 
-H 'Authorization: Bearer {{BEARER_TOKEN}}'

Which host, where is bot_id...

Hi @robothr ,

We are working on something, stay tuned :slight_smile:

Hello @bassam.tantawi, do you have any updates regarding this request?

I have developed a customized chatbot and now I would like to send an API Rest request in order to utilize it within my own application. Is it possible to create a Postman request for interacting with my chatbot? Could you please guide me on how to proceed? I have been unable to locate any relevant information regarding this matter.

1 Like

Hi @david.zomada ,

No not yet.