> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vartiq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook Message

### Body Parameters

<ParamField body="appId" type="string" required={false}>
  The unique identifier of the app to send the webhook message to. <br />
  <b>Either <code>appId</code> or <code>webhookId</code> must be provided, but not both.</b>
</ParamField>

<ParamField body="webhookId" type="string" required={false}>
  The unique identifier of the webhook to send the message to. <br />
  <b>Either <code>appId</code> or <code>webhookId</code> must be provided, but not both.</b>
</ParamField>

<ParamField body="payload" type="object" required>
  The payload to be sent in the webhook message
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="message" type="string">
  A message describing the result of the operation
</ResponseField>

<ResponseField name="data" type="object">
  The created webhook message details

  <Expandable title="Properties">
    <ResponseField name="webhookMessage" type="object">
      Details of the created webhook message

      <Expandable title="Properties">
        <ResponseField name="id" type="string">
          Unique identifier for the webhook message
        </ResponseField>

        <ResponseField name="isDelivered" type="boolean">
          Indicates if the message has been delivered
        </ResponseField>

        <ResponseField name="payload" type="string">
          The stringified payload of the message
        </ResponseField>

        <ResponseField name="signature" type="string">
          HMAC signature of the message
        </ResponseField>

        <ResponseField name="headers" type="array">
          Array of header objects containing key-value pairs
        </ResponseField>

        <ResponseField name="createdAt" type="string">
          Timestamp when the message was created
        </ResponseField>

        <ResponseField name="updatedAt" type="string">
          Timestamp when the message was last updated
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="webhookMessageAttempt" type="object">
      Details of the delivery attempt

      <Expandable title="Properties">
        <ResponseField name="id" type="string">
          Unique identifier for the attempt
        </ResponseField>

        <ResponseField name="isProcessed" type="boolean">
          Indicates if the attempt has been processed
        </ResponseField>

        <ResponseField name="isResend" type="boolean">
          Indicates if this is a resend attempt
        </ResponseField>

        <ResponseField name="statusCode" type="number">
          HTTP status code of the attempt
        </ResponseField>

        <ResponseField name="response" type="string">
          Response received from the webhook endpoint
        </ResponseField>

        <ResponseField name="headers" type="array">
          Array of header objects containing key-value pairs
        </ResponseField>

        <ResponseField name="createdAt" type="string">
          Timestamp when the attempt was created
        </ResponseField>

        <ResponseField name="updatedAt" type="string">
          Timestamp when the attempt was last updated
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

### Response Example
