Create a custom behavior
Creates a behavior from a plain-language definition. New spans are scored against it from then on; past spans are not rescored.
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
The plain-language definition span-01 scores each span against. Say what counts and what doesn't. At least 3 characters after trimming.
Display name. Optional and not unique. Blank is stored as null.
Whether the behavior firing is good or bad: negative (an Issue), positive (a Win) or neutral (Info). Display metadata only; it does not change how spans are scored. Defaults to neutral.
Response
Display name. Optional and not unique; behaviors are identified by id.
The plain-language definition span-01 scores each span against. Say what counts and what doesn't. At least 3 characters after trimming.
Whether the behavior firing is good or bad: negative (an Issue), positive (a Win) or neutral (Info). Display metadata only; it does not change how spans are scored.