Searches the case's messages for the given terms and creates one collection per matching conversation, holding the matching messages. Returns how many collections were created.
POST
/case/collections/{caseId}/bulk
curl \
--request POST 'http://api.example.com/case/collections/{caseId}/bulk' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"searchTerms": [
{
"searchTerm": "string",
"searchFullWord": true
}
],
"paddingMessagesCount": 0
}'
Request examples
# Headers
organization: string
# Payload
{
"searchTerms": [
{
"searchTerm": "string",
"searchFullWord": true
}
],
"paddingMessagesCount": 0
}
Response examples (201)
{
"data": {
"createdCollectionsCount": 3
},
"statusCode": 201,
"timestamp": "2026-01-15T10:15:00.000Z"
}