{
  "openapi": "3.0.1",
  "info": {
    "title": "Slack and Microsoft Teams Alert Payload Builder",
    "description": "Build one deterministic unsent Slack, Teams, or generic webhook payload from a buyer-supplied signal. Review target formatting, truncation, warnings, evidence gaps, stable digests, and billing metadata. No webhook is sent or destination account verified.",
    "version": "0.2",
    "x-build-id": "j4FmHBSskijYa8dPz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zinin~us-brand-signal-webhook-payload-builder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zinin-us-brand-signal-webhook-payload-builder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/zinin~us-brand-signal-webhook-payload-builder/runs": {
      "post": {
        "operationId": "runs-sync-zinin-us-brand-signal-webhook-payload-builder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/zinin~us-brand-signal-webhook-payload-builder/run-sync": {
      "post": {
        "operationId": "run-sync-zinin-us-brand-signal-webhook-payload-builder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "schemaVersion",
          "signal",
          "target",
          "presentation"
        ],
        "properties": {
          "schemaVersion": {
            "title": "Report contract version",
            "enum": [
              "1.1",
              "1.0"
            ],
            "type": "string",
            "description": "Use 1.1 for the additive evidence-to-action decision. Legacy 1.0 preserves the exact closed UNSENT report and result digest without decision.",
            "default": "1.1"
          },
          "signal": {
            "title": "One normalized signal and evidence object",
            "required": [
              "signalId",
              "signalType",
              "headline",
              "summary",
              "severity",
              "occurredAt",
              "evidence"
            ],
            "type": "object",
            "description": "Buyer-provided text and one to three HTTPS evidence records. No identity or live-source lookup is performed.",
            "properties": {
              "signalId": {
                "title": "Opaque signal ID",
                "description": "Printable opaque identifier; no identity lookup is performed.",
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$"
              },
              "signalType": {
                "title": "Signal type",
                "description": "Closed signal category enum.",
                "type": "string",
                "enum": [
                  "brand_mention",
                  "price_change",
                  "recall",
                  "regulatory",
                  "availability",
                  "other"
                ]
              },
              "headline": {
                "title": "Headline",
                "description": "Buyer-supplied headline, without control characters.",
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "summary": {
                "title": "Summary",
                "description": "Buyer-supplied bounded summary, without control characters.",
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "severity": {
                "title": "Severity",
                "description": "Closed severity enum.",
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "occurredAt": {
                "title": "Occurred UTC timestamp",
                "description": "Strict real Gregorian UTC timestamp in YYYY-MM-DDTHH:mm:ssZ form.",
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              "evidence": {
                "title": "Evidence records",
                "description": "One to three buyer-supplied HTTPS attribution records; pages are not fetched.",
                "type": "array",
                "minItems": 1,
                "maxItems": 3,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "url",
                    "title",
                    "capturedAt"
                  ],
                  "properties": {
                    "url": {
                      "title": "HTTPS evidence URL",
                      "description": "HTTPS attribution URL without credentials or a non-default port.",
                      "type": "string",
                      "minLength": 12,
                      "maxLength": 2048,
                      "pattern": "^https://"
                    },
                    "title": {
                      "title": "Evidence title",
                      "description": "Buyer-supplied evidence label.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "capturedAt": {
                      "title": "Evidence capture UTC timestamp",
                      "description": "Strict real Gregorian UTC timestamp.",
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                    }
                  }
                }
              }
            },
            "additionalProperties": false
          },
          "target": {
            "title": "Payload target",
            "enum": [
              "slack",
              "teams",
              "generic"
            ],
            "type": "string",
            "description": "A closed enum only. This selects a local JSON shape; it never supplies a destination.",
            "default": "slack"
          },
          "presentation": {
            "title": "Allowlisted presentation settings",
            "required": [
              "includeHeadline",
              "includeSummary",
              "includeSeverity",
              "includeSource",
              "includeOccurredAt",
              "maxContentChars",
              "style"
            ],
            "type": "object",
            "description": "Only these booleans, style enum, and bounded character limit are accepted. Templates and expressions are not supported.",
            "properties": {
              "includeHeadline": {
                "title": "Include headline",
                "description": "Include the normalized headline in text content.",
                "type": "boolean",
                "default": true
              },
              "includeSummary": {
                "title": "Include summary",
                "description": "Include the normalized summary in text content.",
                "type": "boolean",
                "default": true
              },
              "includeSeverity": {
                "title": "Include severity",
                "description": "Include the normalized severity in text content.",
                "type": "boolean",
                "default": true
              },
              "includeSource": {
                "title": "Include source",
                "description": "Include source labels and HTTPS evidence links in text content.",
                "type": "boolean",
                "default": true
              },
              "includeOccurredAt": {
                "title": "Include occurred time",
                "description": "Include the buyer-supplied UTC occurredAt value in text content.",
                "type": "boolean",
                "default": true
              },
              "maxContentChars": {
                "title": "Maximum content characters",
                "description": "Bounded deterministic output text limit from 120 through 1200 characters.",
                "type": "integer",
                "minimum": 120,
                "maximum": 1200,
                "default": 600
              },
              "style": {
                "title": "Presentation style",
                "description": "Closed formatting style enum; no templates or expressions.",
                "type": "string",
                "enum": [
                  "compact",
                  "standard"
                ],
                "default": "standard"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}