Read Script Run Results
curl --request POST \
--url https://omnicommerce.sg/api/v1/scripts/jobs/await \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jobIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({jobIds: ['<string>']})
};
fetch('https://omnicommerce.sg/api/v1/scripts/jobs/await', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/scripts/jobs/await"
payload = { "jobIds": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"jobIds": [
"<string>"
],
"succeededCount": 123,
"failedCount": 123,
"pendingCount": 123,
"results": [
{
"id": "<string>",
"organizationId": "<string>",
"scriptId": "<string>",
"scriptVersionId": "<string>",
"actorUserId": "<string>",
"agentId": "<string>",
"aopId": "<string>",
"assistantRunId": "<string>",
"idempotencyKey": "<string>",
"windmillJobId": "<string>",
"status": "submitting",
"argsRedacted": {},
"resultRef": {},
"errorRef": {},
"artifactRef": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}Scripts
Read Script Run Results
Refresh 1–100 script run IDs in first-requested order, trimming and deduplicating IDs. Requires scripts:read.
This is a status snapshot and may return pending jobs; it never submits customer code again. success is true only when all requested runs succeeded. Results retain explicit per-target not_found/unavailable failures.
Use script run IDs with this endpoint; the generic developer jobs API does not resolve them.
POST
/
api
/
v1
/
scripts
/
jobs
/
await
Read Script Run Results
curl --request POST \
--url https://omnicommerce.sg/api/v1/scripts/jobs/await \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jobIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({jobIds: ['<string>']})
};
fetch('https://omnicommerce.sg/api/v1/scripts/jobs/await', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/scripts/jobs/await"
payload = { "jobIds": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"jobIds": [
"<string>"
],
"succeededCount": 123,
"failedCount": 123,
"pendingCount": 123,
"results": [
{
"id": "<string>",
"organizationId": "<string>",
"scriptId": "<string>",
"scriptVersionId": "<string>",
"actorUserId": "<string>",
"agentId": "<string>",
"aopId": "<string>",
"assistantRunId": "<string>",
"idempotencyKey": "<string>",
"windmillJobId": "<string>",
"status": "submitting",
"argsRedacted": {},
"resultRef": {},
"errorRef": {},
"artifactRef": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Body
application/json