Skip to main content
POST
/
webhook-register
Register webhook
curl --request POST \
  --url https://api.agentic.scope3.com/mcp/webhook-register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'mcp-session-id: <mcp-session-id>' \
  --data '{
  "tool": "webhook_register",
  "arguments": {
    "brandAgentId": 123,
    "endpoint": {
      "url": "<string>",
      "method": "POST",
      "headers": {},
      "authentication": {
        "type": "bearer",
        "credentials": "<string>"
      }
    },
    "eventTypes": [
      "<string>"
    ],
    "filters": {
      "campaigns": [
        "<string>"
      ],
      "tactics": [
        "<string>"
      ],
      "creatives": [
        "<string>"
      ],
      "mediaBuys": [
        "<string>"
      ],
      "metrics": [
        "<string>"
      ],
      "minSeverity": "info"
    },
    "retryPolicy": {
      "maxRetries": 4503599627370495,
      "backoffMultiplier": 1,
      "maxBackoffSeconds": 1
    }
  }
}'
{
  "content": [
    {
      "type": "text",
      "text": "<string>"
    }
  ],
  "structuredContent": {
    "id": "<string>",
    "brandAgentId": 123,
    "endpoint": {
      "url": "<string>",
      "method": "<string>",
      "authenticationType": "<string>"
    },
    "eventTypes": [
      "<string>"
    ],
    "filters": {
      "campaigns": [
        "<string>"
      ],
      "tactics": [
        "<string>"
      ],
      "creatives": [
        "<string>"
      ],
      "mediaBuys": [
        "<string>"
      ],
      "metrics": [
        "<string>"
      ],
      "minSeverity": "<string>"
    },
    "retryPolicy": {
      "maxRetries": 4503599627370495,
      "backoffMultiplier": 1,
      "maxBackoffSeconds": 1
    },
    "status": "<string>",
    "testResult": {
      "success": true,
      "statusCode": 0,
      "error": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

mcp-session-id
string<uuid>
required

MCP session identifier (UUID). Initialize your session using the /mcp-initialize endpoint first to obtain a session ID, then reuse it for all subsequent tool requests in the same session.

Body

application/json
tool
enum<string>
required
Available options:
webhook_register
arguments
object
required

Response

Successful response

content
object[]
required
structuredContent
object
required
I