APIWebhooks

Get the webhook condition schema

The fields a condition expression can reference.

GET
/webhooks/schema

The fields a condition expression can reference.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.

Required permission

view_webhooks

Response Body

The request has succeeded.

application/json
  1. response

The condition surface: envelope fields every event carries, plus the payload fields each action adds.

envelope*

Fields under the event variable.

payloads*

Payload fields, keyed by action.

Example Request
curl -X GET 'https://your-org.aisecurity.services.us.connect.secureauth.com/api/v1/webhooks/schema'
Example Response
{  "envelope": {    "property1": {      "type": "string",      "description": "string",      "fields": {        "property1": {},        "property2": {}      }    },    "property2": {      "type": "string",      "description": "string",      "fields": {        "property1": {},        "property2": {}      }    }  },  "payloads": {    "property1": {      "property1": {        "type": "string",        "description": "string",        "fields": {          "property1": {},          "property2": {}        }      },      "property2": {        "type": "string",        "description": "string",        "fields": {          "property1": {},          "property2": {}        }      }    },    "property2": {      "property1": {        "type": "string",        "description": "string",        "fields": {          "property1": {},          "property2": {}        }      },      "property2": {        "type": "string",        "description": "string",        "fields": {          "property1": {},          "property2": {}        }      }    }  }}