https://discord.gg/botpress logo
runtime API authorization
# 🤝help
r
hi i have tried the runtime API, createMessage. I have already used the createUser and createConversation to get the ID for the required data in the body. But the tags, payload and the authorization header is confusing me. I tried to type some random thing in this two data like "Text". But it show { "id": "5ecb8d8fef24cf6321334b214f99b103", "code": 401, "type": "Unauthorized", "message": "Request is missing a valid authentication token" } Could you help me by showing me some example in using this API in curl and Javascript way?🙏
Also the createUser runtimeAPI. the integrationID is show deprecated in the document. But when I tried to use it in postman. it shows 401, "message": "Must specify integrationName or integrationId". And it can not use webchat or whatsapp for it.
i just created a integration. but there is aa error pops when i tried to save and activate it. here is some info of the integration: { "integration": { "id": "...", "name": "eee/myintegration", "title": "eee/myintegration", "description": "", "iconUrl": "https://mediafiles.botpress.cloud/int_01K0RK5794WSR57BBHB0TSX6YV/integration/icon.svg", "readmeUrl": "https://mediafiles.botpress.cloud/intver_01K0RK579Q1SQDGP52GX3XE2K8/integration-version/readme.md", "createdAt": "2025-07-22T08:14:19.308Z", "updatedAt": "2025-07-22T08:35:40.835Z", "version": "0.0.1", "public": false, "url": "", "verificationStatus": "unapproved", "interfaces": {}, "configuration": { "identifier": { "required": false }, "schema": { "type": "object" } }, "configurations": {}, "actions": {}, "events": {}, "user": { "tags": {}, "creation": { "enabled": false, "requiredTags": [] } }, "identifier": {}, "states": {}, "channels": {}, "entities": {}, "dev": false, "secrets": [] } } https://cdn.discordapp.com/attachments/1396872370286760027/1397136768226168852/image.png?ex=6880a083&is=687f4f03&hm=7dc44897110f4998c6fdd5641ee5948da692a42399005a14fed4e8093e6cbfa5&
You can then use this generated conversation id to send and retrieve more messages within this conversation in a similar format: https://botpress.com/docs/api-reference/runtime-api/openapi/createMessage
r
the chat API is working fine. I would like to use the runtime and admin API now.
r
Yes
p
Are you still encountering the authentication token missing issue?
r
I fixed that now
But now I am getting into the integration. I can’t save my integration and enable it.
I just use the create integration API to create this
I heard someone in developers channel say it need more setting to do so. It I don’t know how
p
Can you clarify why you needed to create an integration?
r
i am trying to use the runtime createUser this morning. but the it require a integration. i am just testing the API which one can help me to build my web app.
actually i just want to use the runtime createMessage. this should be my final goal.
this is more major error i want to fix.
p
Have you tried using the chat api instead? Why did you pick the runtime API?
r
i want to use API to send message from the bot side to the chat.
the chat api can only create the user side message. which is not what i need. although its working.
i dont find an doc on how to fix the error or what i need before using this runtime api🙏
is there a botpress team member add me in discord before. i think i reject it accidentally.
m
hi @ripe-businessperson-56829 just wondering how did you solve it? I run into the same issue too…appreciate your help
r
@User i stopped the project. it toke me too many times to do the research and seems Leanne is also not familiar with this topic. there is not much information in the official documents too. so i have to follow the endpoint api body to tried it one by one. i tried to create my own integrations. it seems like one of the way to do it since it require a integration to use some of the runtime API. maybe you can look it up. https://botpress.com/docs/for-developers/sdk/integration/getting-started
@prehistoric-airplane-85682 i really hope they can give more info on this. it seems really useful for many projects. I know they are also busy on their own work. but i asked questions many times on this API but still don't get any useful help.
m
@ripe-businessperson-56829 i figured out a way to bypass the authorisation on runtime api, let me know if you open for any discussion!
was quite frustrated to test every single method and finally got one
r
sure. how did you do it?
m
the header will need to attach with x-integration-id
which can only be found from the integration marketplace url lol
if you want to create a message to a webchat then you have to attach webchat’s integration id
3 Views