Skip to main content
GET
/
groups
/
invitation-code
cURL
curl --request GET \
  --url https://api.crunchz.app/api/groups/invitation-code \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "group_id": "[email protected]"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "code": "KHFAM4UWGUE7g75K1o7BFw",
    "url": "https://chat.whatsapp.com/KHFAM4UWGUE7g75K1o7BFw"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
group_id
string
required

The Group ID for which to generate an invitation code

Response

GroupInvitationCodeResource

success
boolean
required

The success status of response.

message
string
required

The message of response.

data
object
required