Skip to Content
WhatsApp API by Retention Stack

Groups

Create and manage WhatsApp groups

GET
/v1/sessions/{session}/groups

List groups visible to your connected session. Use a returned group ID, ending in @g.us, in groupId parameters. Results and fields depend on the messaging engine.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length

Query Parameters

limit?integer

Maximum number of groups to return (default: 10, max: 100)

Range1 <= value <= 100
Default10
offset?integer

Number of groups to skip from the start (default: 0)

Range0 <= value <= 9007199254740991
Default0
sortBy?string

Field to sort by: id or subject (default: subject)

Default"subject"
Value in"id""subject"
sortOrder?string

Sort order: asc (ascending) or desc (descending) (default: asc)

Default"asc"
Value in"asc""desc"

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups?limit=20&offset=0'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Create group

POST
/v1/sessions/{session}/groups

Create a WhatsApp group with a name and at least one participant. participants must be objects with an id, such as {"id":"15551234567@c.us"}. Use the returned group identifier for later group calls. Space out membership changes.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length

Request Body

Create a new WhatsApp group with name and initial participants

application/json
  1. body

Create a new WhatsApp group with name and initial participants

name*string

Group name/subject (1-100 characters)

Length1 <= length <= 100
participants*array<>

Array of participant contact IDs to add to the group (minimum 1)

Items1 <= items
description?string

Optional group description (max 500 characters)

Lengthlength <= 500

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups' \  -H 'Content-Type: application/json' \  -d '{  "name": "Order updates",  "participants": [    {      "id": "15551234567@c.us"    }  ]}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Get groups count

GET
/v1/sessions/{session}/groups/count

Count groups visible to your connected session. The response data is returned by the messaging engine.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/count'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Join group

POST
/v1/sessions/{session}/groups/join

Join a WhatsApp group using the code from its invite link. This changes group membership; avoid automatically repeating a request with an uncertain outcome.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length

Request Body

application/json
  1. body
code*string

Group invite code or full invite URL. Accepted formats: • Invite code only: "invitecode" (from https://chat.whatsapp.com/invitecode) • Full URL: "https://chat.whatsapp.com/invitecode" Returns: { "id": "123123123@g.us" }

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/join' \  -H 'Content-Type: application/json' \  -d '{  "code": "AbCdEfGhIjKlMnOpQrStUv"}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Refresh groups

POST
/v1/sessions/{session}/groups/refresh

Refresh the messaging engine’s group information for your session. Read the group list again after the refresh.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/refresh'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Get group

GET
/v1/sessions/{session}/groups/{groupId}

Read a group using a groupId from listGroups or a group webhook. Your linked account must be able to access the group.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Delete group

DELETE
/v1/sessions/{session}/groups/{groupId}

Request deletion of the group identified by groupId. WhatsApp permissions and engine support determine whether it succeeds. This is a destructive operation; check the resulting state before repeating it.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X DELETE 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Leave group

POST
/v1/sessions/{session}/groups/{groupId}/leave

Leave the group identified by groupId using your linked WhatsApp account. This changes membership; confirm state before repeating a request with an uncertain outcome.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/leave'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Set group subject

PUT
/v1/sessions/{session}/groups/{groupId}/subject

Change the group title to subject (1–100 characters). Your linked account needs the WhatsApp permissions required by the group settings.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

Update group title/subject

application/json
  1. body

Update group title/subject

subject*string

New group name/subject (1-100 characters)

Length1 <= length <= 100

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/subject' \  -H 'Content-Type: application/json' \  -d '{  "subject": "Project updates"}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Set group description

PUT
/v1/sessions/{session}/groups/{groupId}/description

Change the group description (at most 500 characters). Your linked account needs the WhatsApp permissions required by the group settings.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

Update group description

application/json
  1. body

Update group description

description*string

New group description (max 500 characters)

Lengthlength <= 500

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/description' \  -H 'Content-Type: application/json' \  -d '{  "description": "Updates for the project team."}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}
GET
/v1/sessions/{session}/groups/{groupId}/settings/security/info-admin-only

Read whether only administrators can edit group information. Use the same groupId returned by group listing or creation.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/settings/security/info-admin-only'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Set info admin-only

PUT
/v1/sessions/{session}/groups/{groupId}/settings/security/info-admin-only

Set adminsOnly=true to restrict group-info edits to administrators, or false to allow participants. Your linked account must have administrator permission.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

Update group info admin-only setting

application/json
  1. body

Update group info admin-only setting

adminsOnly*boolean

Set to true to restrict group info edits to admins only

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/settings/security/info-admin-only' \  -H 'Content-Type: application/json' \  -d '{  "adminsOnly": true}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}
GET
/v1/sessions/{session}/groups/{groupId}/settings/security/messages-admin-only

Read whether only administrators can send messages to this group. Your linked account must be able to access the group.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/settings/security/messages-admin-only'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Set messages admin-only

PUT
/v1/sessions/{session}/groups/{groupId}/settings/security/messages-admin-only

Set adminsOnly=true to restrict posting to administrators, or false to allow participants. Your linked account must have administrator permission.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

Update group messages admin-only setting

application/json
  1. body

Update group messages admin-only setting

adminsOnly*boolean

Set to true to restrict message sending to admins only

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/settings/security/messages-admin-only' \  -H 'Content-Type: application/json' \  -d '{  "adminsOnly": true}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Get participants

GET
/v1/sessions/{session}/groups/{groupId}/participants

List group participants. Use returned contact IDs for membership and administrator operations; check whether a participant is already present before adding them.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/participants'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Add participants

POST
/v1/sessions/{session}/groups/{groupId}/participants/add

Add participants using objects with an id, not plain strings. Verify phone numbers with checkContactExists first. Space out additions and avoid re-adding current participants; WhatsApp can restrict excessive changes.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

Add participants to an existing group

application/json
  1. body

Add participants to an existing group

participants*array<>

Array of contact IDs to add to the group

Items1 <= items

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/participants/add' \  -H 'Content-Type: application/json' \  -d '{  "participants": [    {      "id": "15551234567@c.us"    }  ]}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Remove participants

POST
/v1/sessions/{session}/groups/{groupId}/participants/remove

Remove participants using objects with an id from the group participant list. Your linked account needs administrator permission. This changes group membership.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

Remove participants from the group

application/json
  1. body

Remove participants from the group

participants*array<>

Array of contact IDs to remove from the group

Items1 <= items

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/participants/remove' \  -H 'Content-Type: application/json' \  -d '{  "participants": [    {      "id": "15551234567@c.us"    }  ]}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Promote to admin

POST
/v1/sessions/{session}/groups/{groupId}/admin/promote

Promote existing group participants to administrators using their contact IDs. Your linked account must have permission to manage administrators.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

Promote participants to group admin

application/json
  1. body

Promote participants to group admin

participants*array<>

Array of contact IDs to promote to admin

Items1 <= items

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/admin/promote' \  -H 'Content-Type: application/json' \  -d '{  "participants": [    {      "id": "15551234567@c.us"    }  ]}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Demote from admin

POST
/v1/sessions/{session}/groups/{groupId}/admin/demote

Remove administrator privileges from existing participants using their contact IDs. Your linked account must have permission to manage administrators.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

Demote group admins to regular participants

application/json
  1. body

Demote group admins to regular participants

participants*array<>

Array of contact IDs to demote from admin

Items1 <= items

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/admin/demote' \  -H 'Content-Type: application/json' \  -d '{  "participants": [    {      "id": "15551234567@c.us"    }  ]}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Get invite code

GET
/v1/sessions/{session}/groups/{groupId}/invite-code

Read the group invite code. Your linked account must have permission to access it. Treat invite codes as sensitive: anyone with a valid invitation may be able to join.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/invite-code'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Revoke invite code

POST
/v1/sessions/{session}/groups/{groupId}/invite-code/revoke

Revoke the current group invitation and request a replacement. Previously shared invite links can stop working. Your linked account needs administrator permission.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/invite-code/revoke'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Get group picture

GET
/v1/sessions/{session}/groups/{groupId}/picture

Read the group picture information available to your linked account. The response format depends on the messaging engine.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/picture'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Delete group picture

DELETE
/v1/sessions/{session}/groups/{groupId}/picture

Remove the group picture. Your linked account needs permission and the messaging engine must support this operation.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X DELETE 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/picture'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Set group picture

PUT
/v1/sessions/{session}/groups/{groupId}/picture

Replace the group picture using file.url or base64 file.data. Your linked account needs permission and the messaging engine must support this operation.

Authorization

BearerAuth
headerAuthorizationBearer <ch_live_... | ak_live_...>

Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.

Path Parameters

session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
groupId*string

Group ID in format: 120363...@g.us

Length1 <= length

Request Body

application/json
  1. body
file*

Image file object with URL and optional MIME type

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/picture' \  -H 'Content-Type: application/json' \  -d '{  "file": {    "url": "https://your-server.example/assets/image.png",    "mimetype": "image/png",    "filename": "image.png"  }}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}