Observe
bashCopyEditcurl --location \
--request POST 'https://api.cros.one/env/observe' \
--header 'Authorization: Bearer your-api-key' \
--header 'Content-Type: application/json' \
--data '{
"session_id": "1234567890abcdef",
"url": "https://example.com",
"max_nb_actions": 50,
"min_nb_actions": 10,
"keep_alive": true,
"screenshot": true,
"session_timeout_minutes": 10
}'jsonCopyEdit{
"metadata": {
"url": "https://example.com",
"page_title": "Example Website",
"timestamp": "2025-02-06T14:00:00.000Z"
},
"session": {
"session_id": "1234567890abcdef",
"status": "active",
"last_accessed_at": "2025-02-06T14:05:00.000Z",
"timeout_minutes": 10
},
"data": {
"extracted_information": "..."
},
"screenshot": "base64_encoded_image_data_here",
"space": {
"description": "Available actions on the current page",
"actions": [
{
"id": "I1",
"description": "Click on the login button",
"category": "User Interaction"
},
{
"id": "I2",
"description": "Submit the form",
"category": "Form Submission"
}
]
}
}Last updated