Import Bot
curl --request POST \
--url http://127.0.0.1:3333/v3/bots/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"bot": {}
}
'import requests
url = "http://127.0.0.1:3333/v3/bots/import"
payload = {
"workspaceId": "<string>",
"bot": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '<string>', bot: {}})
};
fetch('http://127.0.0.1:3333/v3/bots/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"bot": "<unknown>"
}Bot Engineering
Import Bot
Import a bot.
POST
/
v3
/
bots
/
import
Import Bot
curl --request POST \
--url http://127.0.0.1:3333/v3/bots/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"bot": {}
}
'import requests
url = "http://127.0.0.1:3333/v3/bots/import"
payload = {
"workspaceId": "<string>",
"bot": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '<string>', bot: {}})
};
fetch('http://127.0.0.1:3333/v3/bots/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"bot": "<unknown>"
}Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
201 - application/json
Default Response