curl -X POST "https://api.oxenty.api.br/api/messages/sticker" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessionId": "550e8400-e29b-41d4-a716-446655440000",
"to": "5511999999999",
"sticker": "https://example.com/sticker.webp",
"isAnimated": false
}'
const result = await client.messages.sendSticker({
sessionId: '550e8400-e29b-41d4-a716-446655440000',
to: '5511999999999',
sticker: 'https://example.com/sticker.webp',
isAnimated: false,
});
{
"messageId": "3EB0A1B2C3D4E5F6",
"status": "sent",
"timestamp": "2024-01-15T10:30:00.000Z"
}
Mensagens
Enviar Sticker
Envia um sticker para um número WhatsApp
POST
/
api
/
messages
/
sticker
curl -X POST "https://api.oxenty.api.br/api/messages/sticker" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessionId": "550e8400-e29b-41d4-a716-446655440000",
"to": "5511999999999",
"sticker": "https://example.com/sticker.webp",
"isAnimated": false
}'
const result = await client.messages.sendSticker({
sessionId: '550e8400-e29b-41d4-a716-446655440000',
to: '5511999999999',
sticker: 'https://example.com/sticker.webp',
isAnimated: false,
});
{
"messageId": "3EB0A1B2C3D4E5F6",
"status": "sent",
"timestamp": "2024-01-15T10:30:00.000Z"
}
Envia um sticker para um contato ou grupo. O sticker deve estar em formato WebP.
Request Body
string
required
ID da sessão WhatsApp.
string
required
Número do destinatário (ex:
5511999999999) ou JID de grupo.string
required
Sticker em formato base64 ou URL. Deve ser formato WebP.
boolean
default:"false"
Se é um sticker animado.
Resposta
string
ID único da mensagem enviada.
string
Status do envio (
sent, pending).curl -X POST "https://api.oxenty.api.br/api/messages/sticker" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessionId": "550e8400-e29b-41d4-a716-446655440000",
"to": "5511999999999",
"sticker": "https://example.com/sticker.webp",
"isAnimated": false
}'
const result = await client.messages.sendSticker({
sessionId: '550e8400-e29b-41d4-a716-446655440000',
to: '5511999999999',
sticker: 'https://example.com/sticker.webp',
isAnimated: false,
});
{
"messageId": "3EB0A1B2C3D4E5F6",
"status": "sent",
"timestamp": "2024-01-15T10:30:00.000Z"
}
- Formato obrigatório: WebP
- Tamanho máximo: 100KB (estático) ou 500KB (animado)
- Dimensões: 512x512 pixels