Filters API
Manage saved filters for the active Organizational Unit. Saved filters let your team quickly apply commonly-used filter criteria to lead and event lists.
GET /filters
List all saved filters.
Response
200 OK
{
"filters": [
{
"id": "filter-123",
"name": "Hot Leads This Week",
"criteria": {
"min_score": 75,
"last_active": "7d"
},
"created_at": "2025-01-15T10:00:00Z"
}
]
}
Example
curl -X GET "https://api.leadvibe.com/filters" \
-H "Authorization: Bearer <token>"
POST /filters
Create a new saved filter.
Request Body
{
"name": "Enterprise Hot Leads",
"criteria": {
"min_score": 75,
"event_type": "demo_request"
}
}
Response
201 Created
Returns the created filter.
Example
curl -X POST "https://api.leadvibe.com/filters" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"name": "Enterprise Hot Leads",
"criteria": {"min_score": 75, "event_type": "demo_request"}
}'
Common Errors
| Status | Meaning | Solution |
|---|---|---|
| 400 | Bad Request | Missing filter name or invalid criteria |
| 401 | Unauthorized | Check authentication token |
Notes
- Filters are OU-scoped to the active Organizational Unit
- Saved filters are shared across team members in the same OU
Related Endpoints
- Filter by ID - Update or delete a filter
- Leads - Apply filters when listing leads