Groups
Create and manage WhatsApp 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.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthlimit?integerMaximum number of groups to return (default: 10, max: 100)
1 <= value <= 10010offset?integerNumber of groups to skip from the start (default: 0)
0 <= value <= 90071992547409910sortBy?stringField to sort by: id or subject (default: subject)
"subject""id""subject"sortOrder?stringSort order: asc (ascending) or desc (descending) (default: asc)
"asc""asc""desc"Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups?limit=20&offset=0'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}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.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthCreate a new WhatsApp group with name and initial participants
application/json- body
Create a new WhatsApp group with name and initial participants
name*stringGroup name/subject (1-100 characters)
1 <= length <= 100participants*array<>Array of participant contact IDs to add to the group (minimum 1)
1 <= itemsdescription?stringOptional group description (max 500 characters)
length <= 500Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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" } ]}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Count groups visible to your connected session. The response data is returned by the messaging engine.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/count'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Join a WhatsApp group using the code from its invite link. This changes group membership; avoid automatically repeating a request with an uncertain outcome.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthapplication/json- body
code*stringGroup 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" }
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/join' \ -H 'Content-Type: application/json' \ -d '{ "code": "AbCdEfGhIjKlMnOpQrStUv"}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Refresh the messaging engine’s group information for your session. Read the group list again after the refresh.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/refresh'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Read a group using a groupId from listGroups or a group webhook. Your linked account must be able to access the group.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}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.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X DELETE 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Leave the group identified by groupId using your linked WhatsApp account. This changes membership; confirm state before repeating a request with an uncertain outcome.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/leave'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Change the group title to subject (1–100 characters). Your linked account needs the WhatsApp permissions required by the group settings.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthUpdate group title/subject
application/json- body
Update group title/subject
subject*stringNew group name/subject (1-100 characters)
1 <= length <= 100Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/subject' \ -H 'Content-Type: application/json' \ -d '{ "subject": "Project updates"}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Change the group description (at most 500 characters). Your linked account needs the WhatsApp permissions required by the group settings.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthUpdate group description
application/json- body
Update group description
description*stringNew group description (max 500 characters)
length <= 500Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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."}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Read whether only administrators can edit group information. Use the same groupId returned by group listing or creation.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/settings/security/info-admin-only'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Set adminsOnly=true to restrict group-info edits to administrators, or false to allow participants. Your linked account must have administrator permission.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthUpdate group info admin-only setting
application/json- body
Update group info admin-only setting
adminsOnly*booleanSet to true to restrict group info edits to admins only
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Read whether only administrators can send messages to this group. Your linked account must be able to access the group.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/settings/security/messages-admin-only'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Set adminsOnly=true to restrict posting to administrators, or false to allow participants. Your linked account must have administrator permission.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthUpdate group messages admin-only setting
application/json- body
Update group messages admin-only setting
adminsOnly*booleanSet to true to restrict message sending to admins only
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}List group participants. Use returned contact IDs for membership and administrator operations; check whether a participant is already present before adding them.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/participants'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}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.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthAdd participants to an existing group
application/json- body
Add participants to an existing group
participants*array<>Array of contact IDs to add to the group
1 <= itemsInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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" } ]}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Remove participants using objects with an id from the group participant list. Your linked account needs administrator permission. This changes group membership.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthRemove participants from the group
application/json- body
Remove participants from the group
participants*array<>Array of contact IDs to remove from the group
1 <= itemsInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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" } ]}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Promote existing group participants to administrators using their contact IDs. Your linked account must have permission to manage administrators.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthPromote participants to group admin
application/json- body
Promote participants to group admin
participants*array<>Array of contact IDs to promote to admin
1 <= itemsInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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" } ]}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Remove administrator privileges from existing participants using their contact IDs. Your linked account must have permission to manage administrators.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthDemote group admins to regular participants
application/json- body
Demote group admins to regular participants
participants*array<>Array of contact IDs to demote from admin
1 <= itemsInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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" } ]}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}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.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/invite-code'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Revoke the current group invitation and request a replacement. Previously shared invite links can stop working. Your linked account needs administrator permission.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/invite-code/revoke'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Read the group picture information available to your linked account. The response format depends on the messaging engine.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/picture'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Remove the group picture. Your linked account needs permission and the messaging engine must support this operation.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X DELETE 'https://wp-rapidapi.retentionstack.agency/v1/sessions/me/groups/120363024802736123%40g.us/picture'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Replace the group picture using file.url or base64 file.data. Your linked account needs permission and the messaging engine must support this operation.
BearerAuthAuthorizationBearer <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.
session*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthgroupId*stringGroup ID in format: 120363...@g.us
1 <= lengthapplication/json- body
file*Image file object with URL and optional MIME type
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -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" }}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}