Read the status of your own dashboard action press
/dashboard/{id}/widget/{key}/invoke/{request_id}
The run started by the caller's own press, found by the request_id it was sent with. Signed-in person only (403 interactive_requires_session). For a row action, send row_action and row_id together. Every miss (another person's press, an unknown request_id, a widget or row action that is gone) is one 404 not_found. Errors: 400 validation_error.
Path Parameters
Resource id
Widget key
The request_id sent with the press
Query Parameters
Row action key, with row_id
Row id, with row_action
Response Body
curl -X GET 'https://api.elaichi.ai/dashboard/<id>/widget/<key>/invoke/<request_id>' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json'const response = await fetch('https://api.elaichi.ai/dashboard/<id>/widget/<key>/invoke/<request_id>', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/dashboard/<id>/widget/<key>/invoke/<request_id>"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())