Skip to main content

Create an invite

POST 

/invites.json

Create an invite

Request

Header Parameters

    Api-Key stringrequired
    Api-Username stringrequired

Body

    email stringrequired

    required for email invites only

    skip_email booleanrequired

    Default value: false

    custom_message stringrequired

    optional, for email invites

    max_redemptions_allowed integerrequired

    Default value: 1

    optional, for link invites

    topic_id integerrequired
    group_ids stringrequired

    Optional, either this or group_names. Comma separated list for multiple ids.

    group_names stringrequired

    Optional, either this or group_ids. Comma separated list for multiple names.

    expires_at stringrequired

    optional, if not supplied, the invite_expiry_days site setting is used

Responses

success response

Schema
    id integerrequired
    link stringrequired
    email stringrequired
    emailed booleanrequired
    custom_message stringnullrequired
    topics undefined[]required
    groups undefined[]required
    created_at stringrequired
    updated_at stringrequired
    expires_at stringrequired
    expired booleanrequired
Loading...