powerful-restaurant-49993
10/08/2025, 1:48 PMwhite-nest-40686
10/08/2025, 2:07 PM{{workflow.conversationId}}.
You are looking at the docs and executing an API call the same way you would in Postman.powerful-restaurant-49993
10/08/2025, 2:13 PMpowerful-restaurant-49993
10/08/2025, 2:14 PMwhite-nest-40686
10/08/2025, 2:15 PMaxios.post() call inside an Execute card and need the conversation ID, use the {{event.conversationId}} https://botpress.com/docs/learn/guides/advanced/event-properties#event-propertieswhite-nest-40686
10/08/2025, 2:17 PMevent.conversationId in a workflow variablepowerful-restaurant-49993
10/08/2025, 2:20 PMpowerful-restaurant-49993
10/08/2025, 2:21 PMwide-umbrella-5226
10/08/2025, 2:25 PMwide-umbrella-5226
10/08/2025, 2:25 PMwide-umbrella-5226
10/08/2025, 2:26 PMwide-umbrella-5226
10/08/2025, 2:26 PMwhite-nest-40686
10/08/2025, 2:28 PMpowerful-restaurant-49993
10/08/2025, 2:44 PMwide-umbrella-5226
10/08/2025, 2:57 PMwide-umbrella-5226
10/08/2025, 3:08 PMwide-umbrella-5226
10/08/2025, 3:08 PM${event.conversationID}wide-umbrella-5226
10/08/2025, 3:09 PMwide-umbrella-5226
10/08/2025, 3:09 PMwide-umbrella-5226
10/08/2025, 3:10 PMwide-umbrella-5226
10/08/2025, 3:10 PMwide-umbrella-5226
10/08/2025, 3:10 PMwhite-nest-40686
10/08/2025, 3:11 PMpowerful-restaurant-49993
10/08/2025, 3:12 PMwide-umbrella-5226
10/08/2025, 3:13 PMwide-umbrella-5226
10/08/2025, 3:13 PMwide-umbrella-5226
10/08/2025, 3:13 PMwhite-nest-40686
10/08/2025, 3:13 PMwide-umbrella-5226
10/08/2025, 3:18 PMpowerful-restaurant-49993
10/08/2025, 3:19 PMwide-umbrella-5226
10/08/2025, 3:19 PMjavascript
const axios = require('axios');
const config = {
method: 'delete',
url: `https://api.botpress.cloud/v1/chat/conversations/${event.conversationId}`,
headers: {
'x-bot-id': 'YOUR_BOT_ID', // you can grab this on the url after "studio.botpress.cloud" and before /flows/
'Authorization': 'Bearer YOUR_PERSONAL_TOKEN' // you can grab this in your botpress profile. go back to your botpress app, click your profile picture, enter account settings, "access tokens" and then create one. don't delete the "Bearer"
}
};
axios.request(config)
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.error('Error:', error.message);
});wide-umbrella-5226
10/08/2025, 3:19 PMwide-umbrella-5226
10/08/2025, 3:19 PMwide-umbrella-5226
10/08/2025, 3:19 PMwide-umbrella-5226
10/08/2025, 3:19 PMpowerful-restaurant-49993
10/08/2025, 3:22 PMpowerful-restaurant-49993
10/08/2025, 3:22 PMwhite-nest-40686
10/08/2025, 3:22 PMconst axios = require('axios'); is not necessary, axios is already importedwide-umbrella-5226
10/08/2025, 3:24 PMwide-umbrella-5226
10/08/2025, 3:25 PMwide-umbrella-5226
10/08/2025, 3:25 PMjavascript
const config = {
method: 'delete',
url: `https://api.botpress.cloud/v1/chat/conversations/${event.conversationId}`,
headers: {
'x-bot-id': 'YOUR_BOT_ID', // you can grab this on the url after "studio.botpress.cloud" and before /flows/
'Authorization': 'Bearer YOUR_PERSONAL_TOKEN' // you can grab this in your botpress profile. go back to your botpress app, click your profile picture, enter account settings, "access tokens" and then create one. don't delete the "Bearer"
}
};
axios.request(config)
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.error('Error:', error.message);
});wide-umbrella-5226
10/08/2025, 3:25 PMwhite-nest-40686
10/08/2025, 3:26 PMpowerful-restaurant-49993
10/08/2025, 3:28 PMwhite-nest-40686
10/08/2025, 3:32 PMpowerful-restaurant-49993
10/08/2025, 3:45 PMpowerful-restaurant-49993
10/08/2025, 3:46 PMwhite-nest-40686
10/08/2025, 3:56 PMwhite-nest-40686
10/08/2025, 3:59 PMpowerful-restaurant-49993
10/08/2025, 4:06 PMwhite-nest-40686
10/08/2025, 4:13 PM