List a Bot's message runs
curl --request GET \
--url https://omnicommerce.ai/api/v1/bots/{botId}/runs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"runs": [
{
"runId": "<string>",
"status": "queued",
"createdAt": "2023-11-07T05:31:56Z",
"href": "<string>"
}
]
}Bots
List a Bot's message runs
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.
GET
/
api
/
v1
/
bots
/
{botId}
/
runs
List a Bot's message runs
curl --request GET \
--url https://omnicommerce.ai/api/v1/bots/{botId}/runs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"runs": [
{
"runId": "<string>",
"status": "queued",
"createdAt": "2023-11-07T05:31:56Z",
"href": "<string>"
}
]
}