Behaviors
Create a custom behavior
Changed onCreates a behavior from a plain-language definition. New spans are scored against it from then on; past spans are not rescored.
post/api/pulses/behaviors/custom/
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/pulses/behaviors/custom/
- AuthHTTP bearer
Request body
Example request
{
"description": "The assistant promises a refund, credit, or compensation that the policy in the system prompt does not allow.",
"name": "Refund promise",
"polarity": "negative"
}Response
The created behavior.
Example response
{
"id": "6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93",
"name": "Refund promise",
"description": "The assistant promises a refund, credit, or compensation that the policy in the system prompt does not allow.",
"polarity": "negative",
"created_at": "2026-09-28T17:41:09.512340Z",
"updated_at": "2026-09-28T17:41:09.512340Z"
}Changes
- breaking
request body became required
- breaking
added to the
request propertyallOflist - breaking
removed the enum value
negativeof the request property - breaking
removed the enum value
neutralof the request property - breaking
removed the enum value
positiveof the request property - breaking
the
request property type changed fromstringto no type - breaking
the response property
became nullable for the status - info
api operation id
behaviors_createCustomBehaviorremoved and replaced withcreateCustomBehavior - info
api tag
Behaviorsadded - info
api tag
behaviorsremoved - info
the request property
became nullable - info
the
request property default valueneutralwas added
- breaking
- info
endpoint added
- info