Get behavior summary
Returns how often each behavior fired in a time range, with totals and a rollup by polarity. Counts come from an hourly rollup refreshed every 10 minutes, so the range is widened to whole hours.
Authentication
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
Request
Only count spans from this environment, such as prod or test. Omit it to include every environment.
Response
One row per behavior scored in the range, most fired first. Turned-off behaviors are left out.
Behaviors in behaviors that fired at least once.
polarity_totals.positive minus polarity_totals.negative.