Skip to main content
POST
/
pipeline
/
ai
/
expression
Use AI to generate Regular Expressions
curl --request POST \
  --url https://api.mezmo.com/v3/pipeline/ai/expression \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "samples": [
    "<string>"
  ]
}
'

Documentation Index

Fetch the complete documentation index at: https://mezmo-9a59581a-mintlify-926f893d.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Enter your token in the format: Token mytokengoeshere

Body

application/json
samples
string[]
required

At least 1 line to pass to the AI model for pattern generation. If the lines are not all from the same application, it will generate an expression for each identified app. It accepts a maximum of 5 lines.

Required array length: 1 - 5 elements

A log line

Required string length: 1 - 4096

Response

200

Default Response