I found the solution, and it seems to work:
@component
@SlingServletFilter(
scope = { SlingServletFilterScope.REQUEST },
pattern = "/bin/api/.*",
methods = { "GET", "POST" }
)
@ServiceRanking(-200)
@Designate(ocd = CorrelationLoggingFilter.Config.class)
The next question is which fitler is...