Get Script
curl --request GET \
--url https://omnicommerce.sg/api/v1/scripts/{scriptId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.sg/api/v1/scripts/{scriptId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/scripts/{scriptId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"script": {
"id": "<string>",
"organizationId": "<string>",
"slug": "<string>",
"toolName": "<string>",
"title": "<string>",
"description": "<string>",
"kind": "general",
"windmillPath": "<string>",
"approvalMode": "no_approval",
"isActive": true,
"archivedAt": "<string>",
"activeVersionId": "<string>",
"createdByUserId": "<string>",
"updatedByUserId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"versions": [
{
"id": "<string>",
"organizationId": "<string>",
"scriptId": "<string>",
"version": 0,
"windmillHash": "<string>",
"language": "<string>",
"lockfile": "<string>",
"argsJsonSchema": {},
"outputJsonSchema": {},
"sourceAdapterContractVersion": "<string>",
"capabilitySnapshot": {},
"sourceDigest": "<string>",
"activationStatus": "draft",
"createdByUserId": "<string>",
"createdAt": "<string>"
}
]
}Scripts
Get Script
Read script metadata, tool name, and all immutable versions with argument/output JSON schemas. Requires scripts:read. The activeVersionId identifies the current execution schema.
GET
/
api
/
v1
/
scripts
/
{scriptId}
Get Script
curl --request GET \
--url https://omnicommerce.sg/api/v1/scripts/{scriptId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.sg/api/v1/scripts/{scriptId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/scripts/{scriptId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"script": {
"id": "<string>",
"organizationId": "<string>",
"slug": "<string>",
"toolName": "<string>",
"title": "<string>",
"description": "<string>",
"kind": "general",
"windmillPath": "<string>",
"approvalMode": "no_approval",
"isActive": true,
"archivedAt": "<string>",
"activeVersionId": "<string>",
"createdByUserId": "<string>",
"updatedByUserId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"versions": [
{
"id": "<string>",
"organizationId": "<string>",
"scriptId": "<string>",
"version": 0,
"windmillHash": "<string>",
"language": "<string>",
"lockfile": "<string>",
"argsJsonSchema": {},
"outputJsonSchema": {},
"sourceAdapterContractVersion": "<string>",
"capabilitySnapshot": {},
"sourceDigest": "<string>",
"activationStatus": "draft",
"createdByUserId": "<string>",
"createdAt": "<string>"
}
]
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Path Parameters
Query Parameters
Required for browser sessions. Bearer credentials resolve organization scope.