List Follow-ups
curl --request GET \
--url https://omnicommerce.ai/api/v1/follow-ups \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/follow-ups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/follow-ups"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"operationId": "<string>",
"status": "<string>",
"data": {
"followUps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"threadId": "<string>",
"state": "waiting",
"trigger": "schedule",
"note": "<string>",
"then": "resume",
"expiresAt": "2023-11-07T05:31:56Z",
"ownerUserId": "<string>",
"fireAt": "2023-11-07T05:31:56Z",
"eventType": "<string>",
"match": "<string>",
"firedAt": "2023-11-07T05:31:56Z",
"failure": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"url": "<string>"
}
]
}
}Follow Ups
List Follow-ups
Your follow-ups on every conversation, plus every follow-up on threadId (whoever left it) when you can open that conversation. Waiting follow-ups come first.
state is waiting, fired, expired (it waited past expiresAt), canceled or failed (failure says why: its owner lost access, or the conversation was stopped or its last run failed).
Authorization
Requires agents:invoke.
GET
/
api
/
v1
/
follow-ups
List Follow-ups
curl --request GET \
--url https://omnicommerce.ai/api/v1/follow-ups \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/follow-ups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/follow-ups"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"operationId": "<string>",
"status": "<string>",
"data": {
"followUps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"threadId": "<string>",
"state": "waiting",
"trigger": "schedule",
"note": "<string>",
"then": "resume",
"expiresAt": "2023-11-07T05:31:56Z",
"ownerUserId": "<string>",
"fireAt": "2023-11-07T05:31:56Z",
"eventType": "<string>",
"match": "<string>",
"firedAt": "2023-11-07T05:31:56Z",
"failure": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"url": "<string>"
}
]
}
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Query Parameters
Also list every follow-up on this conversation.
1–50; 20 when omitted.
Required range:
1 <= x <= 50Required for session auth. Optional for API keys, which already belong to one organization.
Maximum string length:
120