whatsapp-api-js - v6.3.0
    Preparing search index...

    Type Alias ServerStatusPayload

    ServerStatusPayload: {
        biz_opaque_callback_data?: string;
        id: string;
        internal_1p_only_data?: { webhook_extra_data: string };
        recipient_id?: string;
        recipient_identity_key_hash?: string;
        recipient_logical_id?: string;
        recipient_parent_user_id?: string;
        recipient_participant_id?: string;
        recipient_type?: "individual" | "group";
        recipient_user_id?: string;
        status: ServerStatus;
        timestamp: string;
    } & (
        | {
            recipient_id?: string;
            recipient_participant_id?: undefined;
            recipient_type?: "individual";
        }
        | {
            recipient_id: string;
            recipient_participant_id: string;
            recipient_type: "group";
        }
    ) & (
        | {
            conversation?: ServerConversation;
            errors?: undefined;
            pricing?: ServerPricing;
        }
        | { conversation: undefined; errors: [ServerError]; pricing: undefined }
    )

    Type Declaration

    • Optionalbiz_opaque_callback_data?: string

      Only included if message sent with biz_opaque_callback_data

    • id: string

      The message's ids

    • Optionalinternal_1p_only_data?: { webhook_extra_data: string }

      Internal undocumented property

    • Optionalrecipient_id?: string

      Will be set to the user’s phone number, if you sent the message to the user’s phone number. Will be set to the group ID, if you sent the message to a group. Will be omitted if you sent the message to the user’s BSUID or parent BSUID.

    • Optionalrecipient_identity_key_hash?: string

      Only included if identity change check enabled

    • Optionalrecipient_logical_id?: string

      Undocumented on the docs, but exists on the payloads

    • Optionalrecipient_parent_user_id?: string

      Will be set to the user’s parent BSUID if you have enabled parent BSUIDs

    • Optionalrecipient_participant_id?: string

      WhatsApp user phone number. Only included if message sent to a group.

    • Optionalrecipient_type?: "individual" | "group"

      If the recipient is a user or a group, defaults to "individual"

    • Optionalrecipient_user_id?: string

      Will always be set to the user’s BSUID, regardless of whether the message was sent to the user’s phone number or BSUID. For failed status messages, will be omitted if the message was sent to the user’s phone number.

    • status: ServerStatus

      The message's status

    • timestamp: string

      The message's timestamp

    • {
          recipient_id?: string;
          recipient_participant_id?: undefined;
          recipient_type?: "individual";
      }
    • {
          recipient_id: string;
          recipient_participant_id: string;
          recipient_type: "group";
      }