Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Receitas práticas para usar a CLI da Zapster em scripts e automações.
#!/usr/bin/env bash set -euo pipefail zapsterapi auth login --token "$ZAPSTERAPI_TOKEN" >/dev/null zapsterapi message send \ --recipient "$RECIPIENT" \ --text "Build $GITHUB_RUN_ID concluído com sucesso." \ --json
exists=$(zapsterapi recipient fetch --recipient "$NUMERO" --json | jq '.data.exists') if [ "$exists" = "true" ]; then zapsterapi message send --recipient "$NUMERO" --text "Olá!" else echo "Número não está no WhatsApp" fi
zapsterapi instance list --json | jq -r '.data.rows[] | select(.status=="connected") | .id' | while read -r id; do echo "Instância conectada: $id" done
zapsterapi auth login --token "$TOKEN_CLIENTE" zapsterapi auth login --token "$TOKEN_INTERNO" --profile interno zapsterapi message send --recipient 5511 --text "Para o cliente" zapsterapi --profile interno message send --recipient 5511 --text "Para o time"