{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appy-to/json-schema/appy-to-postback-schema.json",
  "title": "Postback",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appy-to-postbacks-api-openapi.yml#/components/schemas/Postback",
  "type": "object",
  "required": [
    "id",
    "name",
    "trigger",
    "eventNames",
    "method",
    "url",
    "attributedOnly",
    "requiredParameter",
    "enabled",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string",
      "maxLength": 80
    },
    "trigger": {
      "type": "string",
      "enum": [
        "install",
        "event"
      ]
    },
    "eventNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Event postbacks only. Empty means every event."
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST"
      ]
    },
    "url": {
      "type": "string",
      "description": "HTTPS URL template with macros."
    },
    "attributedOnly": {
      "type": "boolean",
      "description": "Skip organic installs and their events."
    },
    "requiredParameter": {
      "type": [
        "string",
        "null"
      ],
      "description": "Only fire when the clicked link carried this query parameter, such as the network's click id."
    },
    "enabled": {
      "type": "boolean"
    },
    "signingSecret": {
      "type": "string",
      "description": "Only in the create and rotate-secret responses."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}