Instâncias
Mensagens
Para Grupos
Para Grupos
Entrar em Grupos
Entre em grupos usando um código de convite
POST
/
wa
/
instances
/
{instance_id}
/
groups
/
join
curl --request POST \
--url https://api.zapsterapi.com/v1/wa/instances/{instance_id}/groups/join \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '""'
{
"description": "My group description",
"id": "120363279776130958",
"invite_code": "BobOM8UXL8EDR3dXoKozql",
"is_announcement": true,
"is_restricted": true,
"name": "My group name",
"owner": {
"id": "558796139874",
"name": "Owner Name",
"profile_picture": "https://zapsterapi.s3.us-east-1.amazonaws.com/..."
},
"profile_picture": "https://zapsterapi.s3.us-east-1.amazonaws.com/instances/i-7360mtucxawrpqwxxfll1/profile-pictures/hrs9ncawv3r7euulclfk684dfq9vgi7r.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAV6PM7KXCEFS4IW3T%2F20240526%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240526T235811Z&X-Amz-Expires=86400&X-Amz-Signature=dba5db50b719f5e9454ab8e9fac479c3d6dfa712842886d2da20c36595aab1dc&X-Amz-SignedHeaders=host&x-id=GetObject",
"total_participants": 2
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
success
The response is of type object
.
curl --request POST \
--url https://api.zapsterapi.com/v1/wa/instances/{instance_id}/groups/join \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '""'
{
"description": "My group description",
"id": "120363279776130958",
"invite_code": "BobOM8UXL8EDR3dXoKozql",
"is_announcement": true,
"is_restricted": true,
"name": "My group name",
"owner": {
"id": "558796139874",
"name": "Owner Name",
"profile_picture": "https://zapsterapi.s3.us-east-1.amazonaws.com/..."
},
"profile_picture": "https://zapsterapi.s3.us-east-1.amazonaws.com/instances/i-7360mtucxawrpqwxxfll1/profile-pictures/hrs9ncawv3r7euulclfk684dfq9vgi7r.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAV6PM7KXCEFS4IW3T%2F20240526%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240526T235811Z&X-Amz-Expires=86400&X-Amz-Signature=dba5db50b719f5e9454ab8e9fac479c3d6dfa712842886d2da20c36595aab1dc&X-Amz-SignedHeaders=host&x-id=GetObject",
"total_participants": 2
}