Skip to main content
POST
/
api
/
e2
/
guard
/
generate
Generate rule from natural language
curl --request POST \
  --url https://inbound.new/api/e2/guard/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>"
}
'
{
  "config": {
    "mode": "<string>",
    "subject": {
      "operator": "<string>",
      "values": [
        "<string>"
      ]
    },
    "from": {
      "operator": "<string>",
      "values": [
        "<string>"
      ]
    },
    "hasAttachment": true,
    "hasWords": {
      "operator": "<string>",
      "values": [
        "<string>"
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Your Inbound API key. Include it in the Authorization header as: Bearer

Body

prompt
string
required

Natural language description of the rule

Minimum string length: 1

Response

Response for status 200

config
object
required