curl --request POST \
--url https://api2.rhombussystems.com/api/scenequery/triggerPrompt \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"deviceFacetUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0",
"multiImageTimeDeltasSeconds": [
-10,
-5,
5
],
"prompt": "Count people in the scene",
"region": {
"coordinates": [
{
"x": 123,
"y": 123
}
]
},
"timestampMs": 1640995200000
}
'import requests
url = "https://api2.rhombussystems.com/api/scenequery/triggerPrompt"
payload = {
"deviceFacetUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0",
"multiImageTimeDeltasSeconds": [-10, -5, 5],
"prompt": "Count people in the scene",
"region": { "coordinates": [
{
"x": 123,
"y": 123
}
] },
"timestampMs": 1640995200000
}
headers = {
"x-auth-scheme": "<x-auth-scheme>",
"x-auth-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-auth-scheme': '<x-auth-scheme>',
'x-auth-apikey': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
deviceFacetUuid: 'AAAAAAAAAAAAAAAAAAAAAA.v0',
multiImageTimeDeltasSeconds: [-10, -5, 5],
prompt: 'Count people in the scene',
region: {coordinates: [{x: 123, y: 123}]},
timestampMs: 1640995200000
})
};
fetch('https://api2.rhombussystems.com/api/scenequery/triggerPrompt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api2.rhombussystems.com/api/scenequery/triggerPrompt")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"deviceFacetUuid\": \"AAAAAAAAAAAAAAAAAAAAAA.v0\",\n \"multiImageTimeDeltasSeconds\": [\n -10,\n -5,\n 5\n ],\n \"prompt\": \"Count people in the scene\",\n \"region\": {\n \"coordinates\": [\n {\n \"x\": 123,\n \"y\": 123\n }\n ]\n },\n \"timestampMs\": 1640995200000\n}")
.asString();{
"error": true,
"errorMsg": "<string>",
"event": {
"checkCondition": true,
"image": "<string>",
"imageOffsets": [
123
],
"prompt": "<string>",
"timestampMs": 123,
"value": "<string>"
},
"warningMsg": "<string>"
}Trigger prompt
Trigger scene query with a custom prompt
curl --request POST \
--url https://api2.rhombussystems.com/api/scenequery/triggerPrompt \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"deviceFacetUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0",
"multiImageTimeDeltasSeconds": [
-10,
-5,
5
],
"prompt": "Count people in the scene",
"region": {
"coordinates": [
{
"x": 123,
"y": 123
}
]
},
"timestampMs": 1640995200000
}
'import requests
url = "https://api2.rhombussystems.com/api/scenequery/triggerPrompt"
payload = {
"deviceFacetUuid": "AAAAAAAAAAAAAAAAAAAAAA.v0",
"multiImageTimeDeltasSeconds": [-10, -5, 5],
"prompt": "Count people in the scene",
"region": { "coordinates": [
{
"x": 123,
"y": 123
}
] },
"timestampMs": 1640995200000
}
headers = {
"x-auth-scheme": "<x-auth-scheme>",
"x-auth-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-auth-scheme': '<x-auth-scheme>',
'x-auth-apikey': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
deviceFacetUuid: 'AAAAAAAAAAAAAAAAAAAAAA.v0',
multiImageTimeDeltasSeconds: [-10, -5, 5],
prompt: 'Count people in the scene',
region: {coordinates: [{x: 123, y: 123}]},
timestampMs: 1640995200000
})
};
fetch('https://api2.rhombussystems.com/api/scenequery/triggerPrompt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api2.rhombussystems.com/api/scenequery/triggerPrompt")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"deviceFacetUuid\": \"AAAAAAAAAAAAAAAAAAAAAA.v0\",\n \"multiImageTimeDeltasSeconds\": [\n -10,\n -5,\n 5\n ],\n \"prompt\": \"Count people in the scene\",\n \"region\": {\n \"coordinates\": [\n {\n \"x\": 123,\n \"y\": 123\n }\n ]\n },\n \"timestampMs\": 1640995200000\n}")
.asString();{
"error": true,
"errorMsg": "<string>",
"event": {
"checkCondition": true,
"image": "<string>",
"imageOffsets": [
123
],
"prompt": "<string>",
"timestampMs": 123,
"value": "<string>"
},
"warningMsg": "<string>"
}Authorizations
Your Rhombus API key. Must be accompanied by the x-auth-scheme header set to api-token (or partner-api-token for partner endpoints).
Headers
Authentication scheme identifier. Use api-token for standard API key authentication, partner-api-token for partner API key authentication. Must be paired with the x-auth-apikey header containing your API key.
api-token, api, partner-api-token, partner-api Body
Request object for triggering a prompt.
RUUID with optional appended facet information
"AAAAAAAAAAAAAAAAAAAAAA.v0"
Optional list of time deltas in seconds (relative to timestampMs) for multi-image mode. Max 5 entries, each in range [-30, 3600]. When non-empty, the prompt runs against a set of frames: the base image at timestampMs (always included) plus one frame per distinct non-zero delta. Duplicates and 0 are deduped. Omit or send null/empty for single-image mode.
Optional list of time deltas in seconds (relative to timestampMs) for multi-image mode. Max 5 entries, each in range [-30, 3600]. When non-empty, the prompt runs against a set of frames: the base image at timestampMs (always included) plus one frame per distinct non-zero delta. Duplicates and 0 are deduped. Omit or send null/empty for single-image mode.
[-10, -5, 5]
Prompt text to trigger
"Count people in the scene"
COUNT, PERCENT, BOOLEAN, TEXT Show child attributes
Show child attributes
Timestamp in milliseconds for the trigger
1640995200000