Create AOP
curl --request POST \
--url https://omnicommerce.sg/api/v1/aop/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Market Research Report",
"prompt": "Generate a comprehensive market research report for [[ company ]]",
"agentId": "research"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Market Research Report',
prompt: 'Generate a comprehensive market research report for [[ company ]]',
agentId: 'research'
})
};
fetch('https://omnicommerce.sg/api/v1/aop/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/aop/create"
payload = {
"title": "Market Research Report",
"prompt": "Generate a comprehensive market research report for [[ company ]]",
"agentId": "research"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"aop_id": "<string>",
"title": "<string>",
"status": "created",
"message": "<string>",
"parent_folder_id": "<string>"
}AOPs
Create AOP
Create an organization-scoped AOP. Use [[ placeholder ]] in the prompt for user inputs supplied at execution time. Requires aops:write.
POST
/
api
/
v1
/
aop
/
create
Create AOP
curl --request POST \
--url https://omnicommerce.sg/api/v1/aop/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Market Research Report",
"prompt": "Generate a comprehensive market research report for [[ company ]]",
"agentId": "research"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Market Research Report',
prompt: 'Generate a comprehensive market research report for [[ company ]]',
agentId: 'research'
})
};
fetch('https://omnicommerce.sg/api/v1/aop/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/aop/create"
payload = {
"title": "Market Research Report",
"prompt": "Generate a comprehensive market research report for [[ company ]]",
"agentId": "research"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"aop_id": "<string>",
"title": "<string>",
"status": "created",
"message": "<string>",
"parent_folder_id": "<string>"
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Body
application/json
Optional workstream ID.
Required for session auth. Optional for API keys.
Maximum string length:
120