{
  "opencollection": "1.0.0",
  "info": {
    "name": "LangWatch Agents Triggers API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-Auth-Token",
      "value": "{{X-Auth-Token}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Triggers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "getApiTriggers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.langwatch.ai/api/triggers"
          },
          "docs": "List all active triggers (automations) for the project"
        },
        {
          "info": {
            "name": "postApiTriggers",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.langwatch.ai/api/triggers",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new trigger (automation)"
        },
        {
          "info": {
            "name": "getApiTriggersById",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.langwatch.ai/api/triggers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a trigger by its ID"
        },
        {
          "info": {
            "name": "patchApiTriggersById",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://app.langwatch.ai/api/triggers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a trigger (name, active state, message, filters)"
        },
        {
          "info": {
            "name": "deleteApiTriggersById",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.langwatch.ai/api/triggers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete (soft-delete) a trigger"
        }
      ]
    }
  ],
  "bundled": true
}