curl --request POST \
--url https://api.avidoai.com/v0/reporting/query \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>' \
--data '
{
"query": [
{
"type": "datasource",
"value": "task"
}
]
}
'{
"data": {
"datasource": "task",
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"orgId": "org_123456",
"title": "Example Task",
"type": "STATIC",
"createdAt": "2024-01-05T12:34:56.789Z"
}
]
}
}Queries reporting data from specified datasources with optional filters. Requires exactly one datasource and supports multiple filters using whitelisted columns.
curl --request POST \
--url https://api.avidoai.com/v0/reporting/query \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>' \
--data '
{
"query": [
{
"type": "datasource",
"value": "task"
}
]
}
'{
"data": {
"datasource": "task",
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"orgId": "org_123456",
"title": "Example Task",
"type": "STATIC",
"createdAt": "2024-01-05T12:34:56.789Z"
}
]
}
}Your unique Avido API key
Your unique Avido Application ID
Request body for querying reporting data
Array of query items
1A single query item (datasource or filter) for the reporting query endpoint
Successfully queried reporting data
Successful response from reporting query
Show child attributes
The datasource that was queried
"task"