Create a detection

POST /api/v1/public/detections

POST /api/v1/public/detections

Create or trigger public detections.

Operation ID: post_api_v1_public_detections.

Authentication

Choose a credential. Each row is an accepted alternative; access also depends on current roles, project bindings, and entitlements.

CredentialCarrierOAuth scopes
ServiceAccountBearerAuthAuthorization: BearerSee credential policy
OAuth2Authorization: Bearerconfiguration:write

For OAuth and service-account credentials, send the selected project UUID in x-project-id, including when the header is optional for legacy keys.

Service-account tokens need the corresponding functional scopes listed for OAuth, as well as an active binding and role for the selected project.

Availability

This operation requires the public-api-mutations capability to be enabled for the deployment. Its presence in the contract does not guarantee availability. See operation availability.

Request parameters

NameLocationRequiredType / allowed valuesDescription / constraints
idempotency-keyheaderYesstringidempotency-key header parameter; Required canonical UUIDv4 or high-entropy base64url idempotency key; minLength: 22; maxLength: 43; Pattern constrained; see the downloadable schema.
x-project-idheaderYesstringx-project-id header parameter; format: uuid; Pattern constrained; see the downloadable schema.

Request body

Body required: yes.

application/json

FieldType / allowed valuesRequired in parentDescription / constraints
$object | object | object | object | object | object | object | object | objectYes—
$ (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 1).batchFieldsarray<string> | nullNo—
$ (anyOf 1).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 1).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 1).descriptionstring | nullNo—
$ (anyOf 1).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 1).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 1).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 1).isActivebooleanNodefault: true
$ (anyOf 1).runOnobjectNoadditionalProperties: false
$ (anyOf 1).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 1).runOn.span_namesarray<string> | nullNo—
$ (anyOf 1).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 1).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 1).runOn.span_typesarray<string> | nullNo—
$ (anyOf 1).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 1).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 1).thresholdnumberNodefault: 0.5; minimum: 0; maximum: 1
$ (anyOf 1).type"classifier"Yes—
$ (anyOf 1).configobjectYesadditionalProperties: false
$ (anyOf 1).config.classifier_slug"jailbreaking" | "nsfw" | "hate" | "refusals"Yes—
$ (anyOf 2)objectYesadditionalProperties: false
$ (anyOf 2).batchFieldsarray<string> | nullNo—
$ (anyOf 2).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 2).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 2).descriptionstring | nullNo—
$ (anyOf 2).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 2).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 2).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 2).isActivebooleanNodefault: true
$ (anyOf 2).runOnobjectNoadditionalProperties: false
$ (anyOf 2).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 2).runOn.span_namesarray<string> | nullNo—
$ (anyOf 2).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 2).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 2).runOn.span_typesarray<string> | nullNo—
$ (anyOf 2).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 2).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 2).thresholdnumberNominimum: 0; maximum: 1
$ (anyOf 2).type"classifier"Yes—
$ (anyOf 2).configobjectYesadditionalProperties: false
$ (anyOf 2).config.classifier_slugstringYesminLength: 1; maxLength: 100
$ (anyOf 2).config.backend"azure" | "decision"No—
$ (anyOf 2).config.target"span" | "trace"No—
$ (anyOf 3)objectYesadditionalProperties: false
$ (anyOf 3).batchFieldsarray<string> | nullNo—
$ (anyOf 3).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 3).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 3).descriptionstring | nullNo—
$ (anyOf 3).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 3).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 3).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 3).isActivebooleanNodefault: true
$ (anyOf 3).runOnobjectNoadditionalProperties: false
$ (anyOf 3).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 3).runOn.span_namesarray<string> | nullNo—
$ (anyOf 3).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 3).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 3).runOn.span_typesarray<string> | nullNo—
$ (anyOf 3).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 3).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 3).thresholdnumberNodefault: 0.5; minimum: 0; maximum: 1
$ (anyOf 3).type"regex"Yes—
$ (anyOf 3).configobjectYesadditionalProperties: false
$ (anyOf 3).config.case_sensitivebooleanNodefault: false
$ (anyOf 3).config.input_patternstring | nullNo—
$ (anyOf 3).config.input_pattern (anyOf 1)stringYesminLength: 1; maxLength: 32768
$ (anyOf 3).config.operator"AND" | "OR"Nodefault: OR
$ (anyOf 3).config.output_patternstring | nullNo—
$ (anyOf 3).config.output_pattern (anyOf 1)stringYesminLength: 1; maxLength: 32768
$ (anyOf 4)objectYesadditionalProperties: false
$ (anyOf 4).batchFieldsarray<string> | nullNo—
$ (anyOf 4).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 4).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 4).descriptionstring | nullNo—
$ (anyOf 4).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 4).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 4).isActivebooleanNodefault: true
$ (anyOf 4).runOnobjectNoadditionalProperties: false
$ (anyOf 4).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 4).runOn.span_namesarray<string> | nullNo—
$ (anyOf 4).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 4).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 4).runOn.span_typesarray<string> | nullNo—
$ (anyOf 4).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 4).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 4).thresholdnumberNodefault: 0.5; minimum: 0; maximum: 1
$ (anyOf 4).type"conditional"Yes—
$ (anyOf 4).configobjectYesadditionalProperties: false
$ (anyOf 4).config.conditionsarray<object> | nullNo—
$ (anyOf 4).config.conditions (anyOf 1)array<object>YesminItems: 1; maxItems: 100
$ (anyOf 4).config.conditions (anyOf 1)[]objectYesadditionalProperties: false
$ (anyOf 4).config.conditions (anyOf 1)[].fieldstringYesminLength: 1; maxLength: 512
$ (anyOf 4).config.conditions (anyOf 1)[].operator"=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty"Yes—
$ (anyOf 4).config.conditions (anyOf 1)[].valuestring | number | boolean | null | array<string | number | boolean>No—
$ (anyOf 4).config.conditions (anyOf 1)[].value (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.conditions (anyOf 1)[].value (anyOf 2)numberYes—
$ (anyOf 4).config.conditions (anyOf 1)[].value (anyOf 3)booleanYes—
$ (anyOf 4).config.conditions (anyOf 1)[].value (anyOf 5)array<string | number | boolean>YesmaxItems: 100
$ (anyOf 4).config.conditions (anyOf 1)[].value (anyOf 5)[]string | number | booleanYes—
$ (anyOf 4).config.conditions (anyOf 1)[].value (anyOf 5)[] (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.conditions (anyOf 1)[].value (anyOf 5)[] (anyOf 2)numberYes—
$ (anyOf 4).config.conditions (anyOf 1)[].value (anyOf 5)[] (anyOf 3)booleanYes—
$ (anyOf 4).config.logic"AND" | "OR" | nullNo—
$ (anyOf 4).config.logic (anyOf 1)"AND" | "OR"Yes—
$ (anyOf 4).config.rootobject | nullNo—
$ (anyOf 4).config.root (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).childrenarray<object | object>YesminItems: 1; maxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[]object | objectYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).fieldstringYesminLength: 1; maxLength: 512
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).operator"=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).type"rule"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).valuestring | number | boolean | null | array<string | number | boolean>No—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).value (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).value (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).value (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).value (anyOf 5)array<string | number | boolean>YesmaxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).value (anyOf 5)[]string | number | booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).childrenarray<object | object>YesminItems: 1; maxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[]object | objectYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).fieldstringYesminLength: 1; maxLength: 512
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).operator"=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).type"rule"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).valuestring | number | boolean | null | array<string | number | boolean>No—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)array<string | number | boolean>YesmaxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[]string | number | booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).childrenarray<object | object>YesminItems: 1; maxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[]object | objectYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).fieldstringYesminLength: 1; maxLength: 512
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).operator"=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).type"rule"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).valuestring | number | boolean | null | array<string | number | boolean>No—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)array<string | number | boolean>YesmaxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[]string | number | booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).childrenarray<object | object>YesminItems: 1; maxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[]object | objectYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).fieldstringYesminLength: 1; maxLength: 512
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).operator"=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).type"rule"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).valuestring | number | boolean | null | array<string | number | boolean>No—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)array<string | number | boolean>YesmaxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[]string | number | booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).childrenarray<object | object>YesminItems: 1; maxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[]object | objectYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).fieldstringYesminLength: 1; maxLength: 512
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).operator"=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).type"rule"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).valuestring | number | boolean | null | array<string | number | boolean>No—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)array<string | number | boolean>YesmaxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[]string | number | booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2)objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).childrenarray<object>YesminItems: 1; maxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[]objectYesadditionalProperties: false
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].fieldstringYesminLength: 1; maxLength: 512
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].operator"=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].type"rule"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].valuestring | number | boolean | null | array<string | number | boolean>No—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)array<string | number | boolean>YesmaxItems: 100
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)[]string | number | booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)[] (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)[] (anyOf 2)numberYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)[] (anyOf 3)booleanYes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).logic"AND" | "OR"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).type"group"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).logic"AND" | "OR"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).type"group"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).logic"AND" | "OR"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).type"group"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).logic"AND" | "OR"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).type"group"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).logic"AND" | "OR"Yes—
$ (anyOf 4).config.root (anyOf 1).children[] (anyOf 2).type"group"Yes—
$ (anyOf 4).config.root (anyOf 1).logic"AND" | "OR"Yes—
$ (anyOf 4).config.root (anyOf 1).type"group"Yes—
$ (anyOf 5)objectYesadditionalProperties: false
$ (anyOf 5).batchFieldsarray<string> | nullNo—
$ (anyOf 5).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 5).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 5).descriptionstring | nullNo—
$ (anyOf 5).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 5).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 5).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 5).isActivebooleanNodefault: true
$ (anyOf 5).runOnobjectNoadditionalProperties: false
$ (anyOf 5).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 5).runOn.span_namesarray<string> | nullNo—
$ (anyOf 5).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 5).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 5).runOn.span_typesarray<string> | nullNo—
$ (anyOf 5).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 5).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 5).thresholdnumberNodefault: 0.5; minimum: 0; maximum: 1
$ (anyOf 5).type"pii"Yes—
$ (anyOf 5).configobjectYesadditionalProperties: false
$ (anyOf 5).config.entitiesarray<"EMAIL_ADDRESS" | "PHONE_NUMBER" | "CREDIT_CARD" | "IP_ADDRESS" | "URL"> | nullNo—
$ (anyOf 5).config.entities (anyOf 1)array<"EMAIL_ADDRESS" | "PHONE_NUMBER" | "CREDIT_CARD" | "IP_ADDRESS" | "URL">YesmaxItems: 5
$ (anyOf 5).config.entities (anyOf 1)[]"EMAIL_ADDRESS" | "PHONE_NUMBER" | "CREDIT_CARD" | "IP_ADDRESS" | "URL"Yes—
$ (anyOf 6)objectYesadditionalProperties: false
$ (anyOf 6).batchFieldsarray<string> | nullNo—
$ (anyOf 6).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 6).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 6).descriptionstring | nullNo—
$ (anyOf 6).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 6).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 6).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 6).isActivebooleanNodefault: true
$ (anyOf 6).runOnobjectNoadditionalProperties: false
$ (anyOf 6).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 6).runOn.span_namesarray<string> | nullNo—
$ (anyOf 6).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 6).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 6).runOn.span_typesarray<string> | nullNo—
$ (anyOf 6).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 6).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 6).thresholdnumberNominimum: 0; maximum: 1
$ (anyOf 6).type"custom_trained"Yes—
$ (anyOf 6).configobjectYesadditionalProperties: false
$ (anyOf 6).config.project_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 6).config.custom_detection_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 6).config.versionintegerYesmaximum: 9007199254740991; exclusiveMinimum: 0
$ (anyOf 6).config.method"setfit" | "qlora"Yes—
$ (anyOf 6).config.artifact_uristring | nullNo—
$ (anyOf 6).config.artifact_uri (anyOf 1)stringYes—
$ (anyOf 6).config.temperaturenumberNodefault: 1; exclusiveMinimum: 0
$ (anyOf 7)objectYesadditionalProperties: false
$ (anyOf 7).batchFieldsarray<string> | nullNo—
$ (anyOf 7).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 7).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 7).descriptionstring | nullNo—
$ (anyOf 7).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 7).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 7).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 7).isActivebooleanNodefault: true
$ (anyOf 7).runOnobjectNoadditionalProperties: false
$ (anyOf 7).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 7).runOn.span_namesarray<string> | nullNo—
$ (anyOf 7).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 7).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 7).runOn.span_typesarray<string> | nullNo—
$ (anyOf 7).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 7).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 7).thresholdnumberNominimum: 0; maximum: 1
$ (anyOf 7).type"trace_rules"Yes—
$ (anyOf 7).configobjectYesadditionalProperties: false
$ (anyOf 7).config.schema_version"trace-rules.v1"Nodefault: trace-rules.v1
$ (anyOf 7).config.combine"all" | "any"Yes—
$ (anyOf 7).config.rowsarray<object | object | object | object>YesminItems: 1; maxItems: 20
$ (anyOf 7).config.rows[]object | object | object | objectYes—
$ (anyOf 7).config.rows[] (oneOf 1)objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 1).kind"match"Yes—
$ (anyOf 7).config.rows[] (oneOf 1).spanobjectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 1).span.testsarray<object>YesminItems: 1; maxItems: 12
$ (anyOf 7).config.rows[] (oneOf 1).span.tests[]objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 1).span.tests[].fieldstringYesminLength: 1; maxLength: 128
$ (anyOf 7).config.rows[] (oneOf 1).span.tests[].op"is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists"Yes—
$ (anyOf 7).config.rows[] (oneOf 1).span.tests[].valueany | nullNo—
$ (anyOf 7).config.rows[] (oneOf 1).span.tests[].value (anyOf 1)anyYes—
$ (anyOf 7).config.rows[] (oneOf 1).quantifierobjectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 1).quantifier.kind"at_least" | "at_most" | "exactly" | "none"Yes—
$ (anyOf 7).config.rows[] (oneOf 1).quantifier.countinteger | nullNo—
$ (anyOf 7).config.rows[] (oneOf 1).quantifier.count (anyOf 1)integerYesminimum: 0; maximum: 100000
$ (anyOf 7).config.rows[] (oneOf 1).relationobject | nullNo—
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1).kind"preceded_by" | "not_preceded_by" | "followed_by" | "not_followed_by"Yes—
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1).spanobjectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1).span.testsarray<object>YesminItems: 1; maxItems: 12
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1).span.tests[]objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1).span.tests[].fieldstringYesminLength: 1; maxLength: 128
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1).span.tests[].op"is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists"Yes—
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1).span.tests[].valueany | nullNo—
$ (anyOf 7).config.rows[] (oneOf 1).relation (anyOf 1).span.tests[].value (anyOf 1)anyYes—
$ (anyOf 7).config.rows[] (oneOf 2)objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 2).kind"aggregate"Yes—
$ (anyOf 7).config.rows[] (oneOf 2).function"count" | "sum" | "average" | "minimum" | "maximum"Yes—
$ (anyOf 7).config.rows[] (oneOf 2).fieldstring | nullNo—
$ (anyOf 7).config.rows[] (oneOf 2).field (anyOf 1)stringYesmaxLength: 128
$ (anyOf 7).config.rows[] (oneOf 2).whereobject | nullNo—
$ (anyOf 7).config.rows[] (oneOf 2).where (anyOf 1)objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 2).where (anyOf 1).testsarray<object>YesminItems: 1; maxItems: 12
$ (anyOf 7).config.rows[] (oneOf 2).where (anyOf 1).tests[]objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 2).where (anyOf 1).tests[].fieldstringYesminLength: 1; maxLength: 128
$ (anyOf 7).config.rows[] (oneOf 2).where (anyOf 1).tests[].op"is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists"Yes—
$ (anyOf 7).config.rows[] (oneOf 2).where (anyOf 1).tests[].valueany | nullNo—
$ (anyOf 7).config.rows[] (oneOf 2).where (anyOf 1).tests[].value (anyOf 1)anyYes—
$ (anyOf 7).config.rows[] (oneOf 2).compareobjectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 2).compare.kind"at_least" | "at_most" | "exactly"Yes—
$ (anyOf 7).config.rows[] (oneOf 2).compare.valuenumberYesminimum: 0; maximum: 1000000000
$ (anyOf 7).config.rows[] (oneOf 3)objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 3).kind"repeat"Yes—
$ (anyOf 7).config.rows[] (oneOf 3).spanobjectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 3).span.testsarray<object>YesminItems: 1; maxItems: 12
$ (anyOf 7).config.rows[] (oneOf 3).span.tests[]objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 3).span.tests[].fieldstringYesminLength: 1; maxLength: 128
$ (anyOf 7).config.rows[] (oneOf 3).span.tests[].op"is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists"Yes—
$ (anyOf 7).config.rows[] (oneOf 3).span.tests[].valueany | nullNo—
$ (anyOf 7).config.rows[] (oneOf 3).span.tests[].value (anyOf 1)anyYes—
$ (anyOf 7).config.rows[] (oneOf 3).group_by"name" | "type" | "tool.name" | "llm.model"Yes—
$ (anyOf 7).config.rows[] (oneOf 3).compareobjectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 3).compare.kind"at_least" | "at_most" | "exactly"Yes—
$ (anyOf 7).config.rows[] (oneOf 3).compare.valuenumberYesminimum: 0; maximum: 1000000000
$ (anyOf 7).config.rows[] (oneOf 4)objectYesadditionalProperties: false
$ (anyOf 7).config.rows[] (oneOf 4).kind"trace"Yes—
$ (anyOf 7).config.rows[] (oneOf 4).field"trace.input" | "trace.output" | "trace.status" | "trace.duration_ms"Yes—
$ (anyOf 7).config.rows[] (oneOf 4).op"is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists"Yes—
$ (anyOf 7).config.rows[] (oneOf 4).valueany | nullNo—
$ (anyOf 7).config.rows[] (oneOf 4).value (anyOf 1)anyYes—
$ (anyOf 8)objectYesadditionalProperties: false
$ (anyOf 8).batchFieldsarray<string> | nullNo—
$ (anyOf 8).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 8).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 8).descriptionstring | nullNo—
$ (anyOf 8).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 8).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 8).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 8).isActivebooleanNodefault: true
$ (anyOf 8).runOnobjectNoadditionalProperties: false
$ (anyOf 8).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 8).runOn.span_namesarray<string> | nullNo—
$ (anyOf 8).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 8).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 8).runOn.span_typesarray<string> | nullNo—
$ (anyOf 8).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 8).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 8).thresholdnumberNominimum: 0; maximum: 1
$ (anyOf 8).type"decision"Yes—
$ (anyOf 8).configobjectYesadditionalProperties: false
$ (anyOf 8).config.criterionstringYesminLength: 1; maxLength: 4000
$ (anyOf 8).config.target"span" | "trace" | "session"Nodefault: span
$ (anyOf 8).config.context"target" | "related"Nodefault: target
$ (anyOf 9)objectYesadditionalProperties: false
$ (anyOf 9).batchFieldsarray<string> | nullNo—
$ (anyOf 9).batchFields (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 9).batchFields (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 9).descriptionstring | nullNo—
$ (anyOf 9).description (anyOf 1)stringYesmaxLength: 32768
$ (anyOf 9).displayNamestringYesminLength: 1; maxLength: 255
$ (anyOf 9).groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
$ (anyOf 9).isActivebooleanNodefault: true
$ (anyOf 9).runOnobjectNoadditionalProperties: false
$ (anyOf 9).runOn.frequency"trace" | "session" | "span_type" | "span_name"Nodefault: trace
$ (anyOf 9).runOn.span_namesarray<string> | nullNo—
$ (anyOf 9).runOn.span_names (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 9).runOn.span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 1024
$ (anyOf 9).runOn.span_typesarray<string> | nullNo—
$ (anyOf 9).runOn.span_types (anyOf 1)array<string>YesmaxItems: 128
$ (anyOf 9).runOn.span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
$ (anyOf 9).thresholdnumberNominimum: 0; maximum: 1
$ (anyOf 9).type"code"Yes—
$ (anyOf 9).configobjectYesadditionalProperties: false
$ (anyOf 9).config.entrypoint"detect"No—
$ (anyOf 9).config.input_schema"span.v1" | "trace.v1" | "session.v1"No—
$ (anyOf 9).config.language"python" | "javascript"Yes—
$ (anyOf 9).config.sourcestringYesminLength: 1; maxLength: 16384
$ (anyOf 9).config.required_evidencearray<string>NomaxItems: 32
$ (anyOf 9).config.required_evidence[]stringYesminLength: 1; maxLength: 128
$ (anyOf 9).config.target"span" | "trace" | "session"Yes—

Request example

Replace placeholder IDs and environment variables with values from your authorized project. Credentials are expanded into curl's stdin configuration, not its command arguments. Keep shell tracing off and do not log this configuration. For requests with a body, put a payload matching the schema in request-body.txt; form requests use URL-encoded content.

curl --fail-with-body --silent --show-error --config - <<CURL_CONFIG
request = "POST"
header = "Authorization: Bearer ${NEATLOGS_TOKEN}"
header = "idempotency-key: ${IDEMPOTENCY_KEY}"
header = "x-project-id: ${NEATLOGS_PROJECT_ID}"
header = "Content-Type: application/json"
data-binary = "@request-body.txt"
url = "https://app.neatlogs.com/api/v1/public/detections"
CURL_CONFIG

Responses

StatusDescriptionContent type
201Detection createdapplication/json
400Invalid public API requestapplication/problem+json
401Missing or invalid public API credentialapplication/problem+json
403Public API request is not authorizedapplication/problem+json
404Public API resource not foundapplication/problem+json
409Detection conflictapplication/problem+json
413Public API request body too largeapplication/problem+json
415Unsupported public API request bodyapplication/problem+json
429Public API rate limit exceededapplication/problem+json
500Internal server errorapplication/problem+json
503Public API credential, project context, or rate limiting unavailable. Backend is draining; retry after the Retry-After delay.application/problem+json, application/json

201 response fields

Content type: application/json.

FieldType / allowed valuesRequired in parentDescription / constraints
$objectYesadditionalProperties: false
dataobjectYesadditionalProperties: false
data.createdAtstringYesformat: date-time; Pattern constrained; see the downloadable schema.
data.displayNamestringYesminLength: 1; maxLength: 255
data.groupIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.groupNamestring | nullYes—
data.groupName (anyOf 1)stringYesmaxLength: 255
data.idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.isActivebooleanYes—
data.showHistoricalResultsbooleanNo—
data.activeAlertCountintegerNominimum: 0; maximum: 9007199254740991
data.lifecycleStatus"active" | "paused" | "disabled"No—
data.catalogRevisionstringNomaxLength: 128
data.policyRevisionstringNomaxLength: 128
data.issueSemanticsobject | nullNo—
data.issueSemantics (anyOf 1)objectYesadditionalProperties: false
data.issueSemantics (anyOf 1).schema_version"detector-issue-semantics-v1"Yes—
data.issueSemantics (anyOf 1).polarity"problem" | "healthy" | "informational" | "unknown"Yes—
data.issueSemantics (anyOf 1).authority"none" | "project_authoritative"Yesdefault: none
data.issueSemantics (anyOf 1).truth_rolestringNominLength: 1; maxLength: 100
data.issueSemantics (anyOf 1).contract_idstringNominLength: 1; maxLength: 256
data.issueSemantics (anyOf 1).contract_versionstringNominLength: 1; maxLength: 100
data.slugstringYesminLength: 1; maxLength: 100
data.thresholdnumberYesminimum: 0; maximum: 1
data.type"classifier" | "regex" | "conditional" | "pii" | "custom_trained" | "code" | "trace_rules" | "decision"Yes—
data.updatedAtstringYesformat: date-time; Pattern constrained; see the downloadable schema.
requestIdstringYesPattern constrained; see the downloadable schema.
successtrueYes—

Response headers

HeaderDescription / constraints
RateLimit-LimitEffective request ceiling for the current window; minimum: 1
RateLimit-RemainingRequests remaining in the current window; minimum: 0
RateLimit-ResetUnix timestamp in seconds when the current window resets; minimum: 0
X-NeatLogs-RateLimit-DegradedWhether bounded emergency enforcement is active; —
X-NeatLogs-RateLimit-LimitEffective request ceiling for the current window; minimum: 1
X-NeatLogs-RateLimit-PolicyApplied pre-authentication or authenticated rate class; —
X-NeatLogs-RateLimit-RemainingRequests remaining in the current window; minimum: 0
X-NeatLogs-RateLimit-Reset-AfterWhole seconds until the current window resets; minimum: 1
X-NeatLogs-RateLimit-VersionNeatLogs rate-limit contract version; —
X-Request-IdServer-owned request correlation identifier; Pattern constrained; see the downloadable schema.

Failures use Problem Details. For exact validation patterns and all response schemas, download the OpenAPI specification.

On this page

neatlogs
neatlogs

Ask neatlogs AI

Answers grounded in the docs

neatlogs

How can I help?

Ask anything about Incidents, Experiments, tracing, or the neatlogs dashboard.