Skip to main content
POST
/
webhook-register
Register webhook
curl --request POST \
  --url https://api.agentic.scope3.com/mcp/v1/webhook-register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'mcp-session-id: <mcp-session-id>' \
  --data '
{
  "params": {
    "name": "webhook_register",
    "arguments": {
      "endpoint": {
        "url": "https://example.com",
        "method": "POST"
      },
      "eventTypes": []
    }
  },
  "method": "tools/call",
  "jsonrpc": "2.0",
  "id": 1
}
'
{
  "content": [
    {
      "type": "text",
      "text": "string"
    }
  ],
  "structuredContent": {
    "id": "example_id_123",
    "endpoint": {
      "url": "<string>",
      "method": "<string>",
      "authenticationType": "<string>"
    },
    "eventTypes": [],
    "retryPolicy": {
      "maxRetries": 4503599627370495,
      "backoffMultiplier": 1,
      "maxBackoffSeconds": 1
    },
    "status": "string",
    "testResult": {
      "success": true,
      "statusCode": 0,
      "error": "<string>"
    },
    "brandAgentId": 100,
    "filters": {
      "campaigns": [
        "<string>"
      ],
      "tactics": [
        "<string>"
      ],
      "creatives": [
        "<string>"
      ],
      "mediaBuys": [
        "<string>"
      ],
      "metrics": [
        "<string>"
      ],
      "minSeverity": "<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 by sending a POST request to this endpoint with method: "initialize" in the JSON-RPC body, then reuse the same session ID for all subsequent tool requests.

Body

application/json

Request body for webhook_register

params
object
required
method
enum<string>
required
Available options:
tools/call
jsonrpc
enum<string>
required
Available options:
2.0
id
required

Response

Successful response

content
object[]
required
structuredContent
object
required