Create a personal Bot
curl --request POST \
--url https://omnicommerce.ai/api/v1/bots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://omnicommerce.ai/api/v1/bots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/bots"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"bot": {
"name": "<string>",
"label": "",
"job": "",
"shape": "circle",
"color": "amber",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "<string>",
"ownerUserId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"archivedAt": "2023-11-07T05:31:56Z",
"accessMode": "standard",
"accessStores": [
{
"type": "store",
"marketplace": "shopee",
"country": "<string>",
"storeId": "<string>"
}
]
}
}Bots
Create a personal 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.
POST
/
api
/
v1
/
bots
Create a personal Bot
curl --request POST \
--url https://omnicommerce.ai/api/v1/bots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://omnicommerce.ai/api/v1/bots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/bots"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"bot": {
"name": "<string>",
"label": "",
"job": "",
"shape": "circle",
"color": "amber",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "<string>",
"ownerUserId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"archivedAt": "2023-11-07T05:31:56Z",
"accessMode": "standard",
"accessStores": [
{
"type": "store",
"marketplace": "shopee",
"country": "<string>",
"storeId": "<string>"
}
]
}
}Authorizations
Query Parameters
Body
application/json