Send a message to a Bot
curl --request POST \
--url https://omnicommerce.ai/api/v1/bots/{botId}/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({message: '<string>', requestId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://omnicommerce.ai/api/v1/bots/{botId}/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/bots/{botId}/runs"
payload = {
"message": "<string>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"runId": "<string>",
"threadId": "<string>"
}Bots
Send a message to a Bot
Requires agents:invoke and assistant.use. Use a signed-in member session or a member’s CLI token. Organization OAuth and Computer credentials cannot access personal Bots.
Reuse the same requestId when retrying a submission. The response Location points to the run status.
POST
/
api
/
v1
/
bots
/
{botId}
/
runs
Send a message to a Bot
curl --request POST \
--url https://omnicommerce.ai/api/v1/bots/{botId}/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({message: '<string>', requestId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://omnicommerce.ai/api/v1/bots/{botId}/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/bots/{botId}/runs"
payload = {
"message": "<string>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"runId": "<string>",
"threadId": "<string>"
}Authorizations
Query Parameters
Body
application/json