Using the SMS API, your application can manage the queries in a site database. In the SMS API, queries are represented as persistent machine filters in a filter container.
Your application can manage persistent machine filters within a filter container by using the filter container functions. Your application can handle persistent machine filters and their tokens by using the filter functions.
The filter container functions enable your application to open and close filter containers, retrieve persistent filters from filter containers, retrieve the identifier for a persistent filter, and write machine filters (queries) to the site database.
Note that your application can use SmsRewind to rewind persistent filters within a filter container, and to rewind scalars within a persistent filter.