Groups

    Invite people to a group

    POSThttps://api.batzap.com/v1/groups/{jid}/invite

    Adds people to a group the best way possible: first directly, and for anyone whose privacy settings block that, it sends the invite link by direct message.

    At most 20 numbers per call; duplicates are removed. People who are already members or have no WhatsApp are reported, not messaged.

    Invite DMs appear in the inbox like any other message. The response is success: false when at least one number failed.

    Path parameters

    jidstringrequired

    Group JID (...@g.us), URL-encoded.

    Body parameters

    phone_numbersstring[]required

    1 to 20 numbers in E.164 format.

    messagestringoptional

    Text sent before the link in the invite DM.

    integration_iduuidoptional

    WhatsApp number to act from (see List integrations). Filled in automatically when the key is restricted to a single number.

    Errors

    400
    Invalid group JID, empty list, more than 20 numbers or a number not in E.164.

    Plus the errors every route can return: see Errors.