Get behavior signals over time
Returns how many spans fired each behavior per time bucket, or per polarity with group_by: polarity. minute buckets use exact range edges; larger buckets read the hourly rollup.
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.
behavior returns one series per behavior. polarity sums them into one series per polarity.
Only include these behavior keys (built-in names or custom behavior IDs). Omit for every behavior.
Response
Points ordered by bucket. A point appears only where the behavior fired, so empty buckets are missing.