Collections
Preview a Collection filter without changing the feed
Classifies a bounded recent sample and returns both binary decisions, uncertainty counts, reasons, and degradation status. Save with applyFeedFilter using this preview token and Collection revision.
POST
https://api.smry.ai
/
v1
/
feeds
/
filters
/
preview
Preview a Collection filter without changing the feed
curl --request POST \
--url https://api.smry.ai/v1/feeds/filters/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"collection": {
"id": 12
},
"filter": {
"prompt": "Software engineering articles",
"whenUncertain": "include"
}
}
'import requests
url = "https://api.smry.ai/v1/feeds/filters/preview"
payload = {
"collection": { "id": 12 },
"filter": {
"prompt": "Software engineering articles",
"whenUncertain": "include"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
collection: {id: 12},
filter: {prompt: 'Software engineering articles', whenUncertain: 'include'}
})
};
fetch('https://api.smry.ai/v1/feeds/filters/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "feed_filter_preview",
"previewToken": "<string>",
"collection": {},
"collectionRevision": 123,
"filter": {
"prompt": "<string>",
"whenUncertain": "include"
},
"counts": {
"included": 123,
"excluded": 123,
"uncertain": 123
},
"samples": {
"included": [
{}
],
"excluded": [
{}
]
},
"coverage": {}
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}Authorizations
oauth2AuthbearerAuthapiKeyAuth
Clerk OAuth 2.0 Authorization Code flow with PKCE. Request the minimum scope required by the operation.
Body
application/json
Response
Preview a Collection filter without changing the feed. The operation succeeded.
Preview a Collection filter without changing the feed. The operation succeeded.
Allowed value:
"feed_filter_preview"Last modified on September 13, 2026
⌘I
Preview a Collection filter without changing the feed
curl --request POST \
--url https://api.smry.ai/v1/feeds/filters/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"collection": {
"id": 12
},
"filter": {
"prompt": "Software engineering articles",
"whenUncertain": "include"
}
}
'import requests
url = "https://api.smry.ai/v1/feeds/filters/preview"
payload = {
"collection": { "id": 12 },
"filter": {
"prompt": "Software engineering articles",
"whenUncertain": "include"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
collection: {id: 12},
filter: {prompt: 'Software engineering articles', whenUncertain: 'include'}
})
};
fetch('https://api.smry.ai/v1/feeds/filters/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "feed_filter_preview",
"previewToken": "<string>",
"collection": {},
"collectionRevision": 123,
"filter": {
"prompt": "<string>",
"whenUncertain": "include"
},
"counts": {
"included": 123,
"excluded": 123,
"uncertain": 123
},
"samples": {
"included": [
{}
],
"excluded": [
{}
]
},
"coverage": {}
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}{
"error": "cursor: expected a next_cursor from a previous response.",
"code": "invalid_request",
"field": "where.published_after",
"hint": "<string>",
"retryable": true,
"retryAfter": 123,
"details": "<string>"
}