Skip to main content
POST
Create GenAI Filter

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name of the GenAI filter

Required string length: 1 - 255
definition
string
required

FQL filter definition: a boolean expression each span must match. See Custom and Saved Filters for GenAI Charts for the attribute(), span(), evaluator() and annotation() functions.

Required string length: 1 - 8192
Example:

"evaluator(name='Safety', output='Is Toxic') == true"

project_id
string<uuid> | null

If this is a project specific filter, the UUID of the project this filter belongs to. If this filter is global, then set to null

description
string | null

Description of the filter

Maximum string length: 65536

Response

GenAI filter successfully created

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object