Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/dashboards/{dashboardId}/filters \
--header 'Authorization: Bearer <token>'{
"identifier": "abc123",
"filters": {
"order_status": {
"type": "string",
"kind": "EQUALS",
"values": [
"completed",
"pending"
],
"label": "Order Status",
"description": "Filter by order status",
"required": false,
"hidden": false
},
"order_date": {
"type": "date",
"kind": "WITHIN_RANGE",
"left_side": "2024-01-01",
"right_side": "2024-12-31",
"label": "Order Date"
}
},
"controls": [
{
"id": "field_selector",
"type": "FIELD_SELECTION",
"kind": "FIELD",
"label": "Metric Selector",
"field": "orders.revenue",
"options": [
{
"label": "Revenue",
"value": "orders.revenue"
},
{
"label": "Quantity",
"value": "orders.quantity"
}
]
}
],
"filterOrder": [
"order_status",
"order_date",
"field_selector"
]
}Returns the filter and control configuration for a dashboard, including IDs, types, current default values, and metadata.
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/dashboards/{dashboardId}/filters \
--header 'Authorization: Bearer <token>'{
"identifier": "abc123",
"filters": {
"order_status": {
"type": "string",
"kind": "EQUALS",
"values": [
"completed",
"pending"
],
"label": "Order Status",
"description": "Filter by order status",
"required": false,
"hidden": false
},
"order_date": {
"type": "date",
"kind": "WITHIN_RANGE",
"left_side": "2024-01-01",
"right_side": "2024-12-31",
"label": "Order Date"
}
},
"controls": [
{
"id": "field_selector",
"type": "FIELD_SELECTION",
"kind": "FIELD",
"label": "Metric Selector",
"field": "orders.revenue",
"options": [
{
"label": "Revenue",
"value": "orders.revenue"
},
{
"label": "Quantity",
"value": "orders.quantity"
}
]
}
],
"filterOrder": [
"order_status",
"order_date",
"field_selector"
]
}Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The dashboard identifier
Requires an Organization API key. Optional user ID that attributes the action to the specified user.
Personal Access Tokens (PATs) cannot use this parameter.
Dashboard filter and control configuration
Was this page helpful?