https://discord.gg/botpress logo
Api end points are working ??
# 🤝help
w
I was tried to use createUser api end point with valid botId and pat but its getting error Even tried to test end point from the api doc still getting same error that An error occured while making the request : unable to complete request Without providing any further status code details #🤝help #1116045108614287380 #💻developers
p
Can you show what your request looks like?
w
function createBotpressUser() { const url = 'https://api.botpress.cloud/v1/chat/users'; const options = { 'method': 'post', 'contentType': 'application/json', 'headers': { 'Authorization': 'Bearer ' + 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'x-bot-id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' }, 'payload': JSON.stringify({ 'tags': {}, 'integrationName': 'chat' }), 'muteHttpExceptions': true // Keep this to prevent script from crashing on HTTP errors };
which im using in appscript
And Im getting forbidden error 403 Im not having access to create user ? What is the process to get access
And my main objective of all these to trigger initial message in whatsup which will be getting from excel sheets then triggering that schedule wise but before that I need to test whether its working or not
#💻developers
p
Here are th docs with the steps to follow: https://botpress.com/docs/api-reference/chat-api/introduction Hope it helps!
2 Views