{
  "name": "AMT · Webhook → screenshot (JSON body)",
  "meta": {
    "templateCredsSetupCompleted": false,
    "description": "Webhook receives {\"url\":\"https://example.com\"}, posts JSON to /api/screenshot with Header Auth (Bearer mt_…), returns PNG binary. Public-network URLs only."
  },
  "settings": {
    "executionOrder": "v1"
  },
  "nodes": [
    {
      "parameters": {
        "path": "amt-screenshot",
        "httpMethod": "POST",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "amt-ss-webhook",
      "name": "Screenshot webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [240, 300],
      "webhookId": "amt-screenshot"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://agentmediatools.com/api/screenshot",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"url\": {{ JSON.stringify($json.body.url || $json.url) }},\n  \"width\": 1280,\n  \"full_page\": true,\n  \"format\": \"png\"\n}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "data"
            }
          }
        }
      },
      "id": "amt-ss-http",
      "name": "POST /api/screenshot",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [520, 300],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE_WITH_AMT_HEADER_AUTH",
          "name": "AMT Bearer (Authorization: Bearer mt_…)"
        }
      }
    }
  ],
  "connections": {
    "Screenshot webhook": {
      "main": [
        [
          {
            "node": "POST /api/screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
