List a Bot's routines
curl --request GET \
--url https://omnicommerce.ai/api/v1/bots/{botId}/routines \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/bots/{botId}/routines', 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}/routines"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"routines": [
{
"id": "<string>",
"botId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"instruction": "<string>",
"triggers": [
{
"id": "<string>",
"type": "<string>",
"enabled": true
}
],
"variables": [
{
"id": "<string>"
}
],
"version": "<string>",
"active": true,
"canEdit": true,
"canRun": true
}
],
"canLink": true
}Bots
List a Bot's routines
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}
/
routines
List a Bot's routines
curl --request GET \
--url https://omnicommerce.ai/api/v1/bots/{botId}/routines \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/bots/{botId}/routines', 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}/routines"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"routines": [
{
"id": "<string>",
"botId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"instruction": "<string>",
"triggers": [
{
"id": "<string>",
"type": "<string>",
"enabled": true
}
],
"variables": [
{
"id": "<string>"
}
],
"version": "<string>",
"active": true,
"canEdit": true,
"canRun": true
}
],
"canLink": true
}