CAIN-42 is in Public Beta. Expect changes, and do not rely on it as your only control for anything critical. What beta means
CAIN-42 CAIN Studio

API reference · schema

PortkeyWebhookRequest

6 fields · used by 0 operations

Last reviewed 2026-10-16

Fields

FieldTypeMeaning
requestobject
responseobject
providerstring or null
requestTypestring or null
metadataobject
eventTypestringdefault "beforeRequestHook"

Smallest valid example

{
  "eventType": "beforeRequestHook"
}

JSON Schema

Show the raw definition
{
  "properties": {
    "request": {
      "additionalProperties": true,
      "type": "object",
      "title": "Request"
    },
    "response": {
      "additionalProperties": true,
      "type": "object",
      "title": "Response"
    },
    "provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider"
    },
    "requestType": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Requesttype"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    },
    "eventType": {
      "type": "string",
      "title": "Eventtype",
      "default": "beforeRequestHook"
    }
  },
  "type": "object",
  "title": "PortkeyWebhookRequest"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 30-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem