AhaSend · JSON Structure

Openapi V2 Create Webhook Request Structure

CreateWebhookRequest schema from AhaSend API

Type: object Properties: 15 Required: 2
EmailTransactional EmailDeveloper ToolsSMTPWebhook

CreateWebhookRequest is a JSON Structure definition published by AhaSend, describing 15 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name url enabled on_reception on_delivered on_transient_error on_failed on_bounced on_suppressed on_opened on_clicked on_suppression_created on_dns_error scope domains

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-structure/openapi-v2-create-webhook-request-structure.json",
  "name": "CreateWebhookRequest",
  "description": "CreateWebhookRequest schema from AhaSend API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255,
      "description": "Webhook name",
      "example": "Example Name"
    },
    "url": {
      "type": "uri",
      "description": "Webhook URL",
      "example": "https://example.com"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the webhook is enabled",
      "default": true,
      "example": true
    },
    "on_reception": {
      "type": "boolean",
      "description": "Trigger on message reception",
      "default": false,
      "example": true
    },
    "on_delivered": {
      "type": "boolean",
      "description": "Trigger on message delivery",
      "default": false,
      "example": true
    },
    "on_transient_error": {
      "type": "boolean",
      "description": "Trigger on transient errors",
      "default": false,
      "example": true
    },
    "on_failed": {
      "type": "boolean",
      "description": "Trigger on permanent failures",
      "default": false,
      "example": true
    },
    "on_bounced": {
      "type": "boolean",
      "description": "Trigger on bounces",
      "default": false,
      "example": true
    },
    "on_suppressed": {
      "type": "boolean",
      "description": "Trigger on suppressions",
      "default": false,
      "example": true
    },
    "on_opened": {
      "type": "boolean",
      "description": "Trigger on opens",
      "default": false,
      "example": true
    },
    "on_clicked": {
      "type": "boolean",
      "description": "Trigger on clicks",
      "default": false,
      "example": true
    },
    "on_suppression_created": {
      "type": "boolean",
      "description": "Trigger on suppression creation",
      "default": false,
      "example": true
    },
    "on_dns_error": {
      "type": "boolean",
      "description": "Trigger on DNS errors",
      "default": false,
      "example": true
    },
    "scope": {
      "type": "string",
      "description": "Webhook scope",
      "example": "example_value"
    },
    "domains": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "nullable": true,
      "description": "Domains this webhook applies to",
      "example": [
        "mail.example.com"
      ]
    }
  },
  "required": [
    "name",
    "url"
  ],
  "example": {
    "name": "Delivery Webhook",
    "url": "https://example.com/webhook",
    "enabled": true,
    "on_delivered": true
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/openapi-v2-create-webhook-request-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.