Behaviors
List spans where a behavior fired
Changed onLists 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.
post/api/pulses/behaviors/logs/
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/pulses/behaviors/logs/
- AuthHTTP bearer
Request body
Example request
{
"behavior": "refusal",
"start_time": "2026-09-24T00:00:00Z",
"end_time": "2026-10-01T00:00:00Z",
"environment": "prod",
"page": 1,
"page_size": 50
}Response
A page of spans.
Example response
{
"behavior": "refusal",
"page": 1,
"page_size": 50,
"logs": [
{
"unique_id": "c3a1f8e2b9d04e6f8a7b5c4d3e2f1a0b",
"model": "gpt-4o-mini",
"status": "success",
"environment": "prod",
"timestamp": "2026-09-30T14:22:05.381204"
}
]
}Changes
- breaking
request body became required
- info
api operation id
behaviors_listBehaviorSpansremoved and replaced withlistBehaviorSpans - info
api tag
Behaviorsadded - info
api tag
behaviorsremoved
- breaking
- info
endpoint added
- info