List spans where a behavior fired
Lists the spans in a time range where one behavior fired, newest first. Use the span IDs with Get a span for the full request and response.
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
Behavior key: a built-in behavior's name (for example refusal) or a custom behavior's id.
Only count spans from this environment, such as prod or test. Omit it to include every environment.
Response
Behavior key: a built-in behavior's name (for example refusal) or a custom behavior's id.
Spans where the behavior fired, newest first. Fewer than page_size items means this is the last page. Empty when the behavior is turned off.