Saved views
List saved views
The built-in presets and the workspace's shared views, each with its filter rows.
GET
/api/v1/contact-viewsScope
contacts:readReturns the views your team saved on the Contacts page (shared ones only, never anyone's private views) and the built-in presets, each with the filter rows behind it. Pass a view's id as viewId to list contacts, or send its filters on with your own changes.
Preset ids are fixed: preset:never_contacted, preset:no_response, preset:replied, preset:follow_up_due and preset:unsubscribed.
Example request
curl "https://api.pedibee.com/api/v1/contact-views" \
-H "Authorization: Bearer $PEDIBEE_API_KEY"Response
{
"data": [
{
"id": "preset:never_contacted",
"name": "Never contacted",
"description": "People you haven’t emailed or logged a touch with yet.",
"preset": true,
"shared": true,
"filters": [{ "field": "lastContacted", "op": "is_empty" }],
"sort": null,
"dir": null
},
{
"id": "66f1c2a9e4b0a1b2c3d4e201",
"name": "Pro customers renewing soon",
"description": null,
"preset": false,
"shared": true,
"filters": [
{ "field": "custom.plan", "op": "is_any_of", "value": ["Pro"] },
{ "field": "custom.renewal_date", "op": "in_next", "value": 30 }
],
"sort": "followUp",
"dir": "asc"
}
]
}Views are made and changed on the Contacts page, not through the API.
