How to Connect Your Apps to the WhatsApp Business API

Content

topic0 cover en 8

Connecting your apps, CRM, or e-commerce platform to the WhatsApp Business API lets you send and receive WhatsApp messages from your own systems: order notifications, support replies, and campaigns in one place. With Spoki you get a simple path to API access, webhooks, and template management so your integration stays compliant and scalable.

This guide explains how to connect your apps to the WhatsApp Business API, what you need (account, templates, webhooks), and how Spoki helps. You will find links to registration, pricing, support, and the ROI calculator.

What You Need Before Connecting

Checklist:

  • WhatsApp Business API access (e.g. via Spoki). You need a verified business and a phone number for WhatsApp.
  • Approved templates for outbound messages outside the 24-hour session. Spoki guides you through template creation and approval.
  • Opt-in: Only message users who have agreed to receive WhatsApp messages. Store consent in your CRM or Spoki. See registration and support for consent flows.
  • An app or system that can send HTTP requests (e.g. REST API) or receive webhooks. Most CRMs, e-commerce platforms, and custom apps support this.

Spoki provides the API layer and webhook endpoints so you can connect your existing tools without building everything from scratch. Check pricing and book for your use case.

How the WhatsApp Business API and Spoki Work Together

The WhatsApp Business API has two main ways your apps interact with it:

  • Outbound: Your app sends a request (e.g. via Spoki or the provider’s API) to send a template or session message. Templates are for the first message or after the 24-hour window; session messages are for replies within 24 hours of the user’s last message.
  • Inbound: When a user sends a WhatsApp message, the API can send a webhook to your app (e.g. your server or Spoki). Your app then processes the message, updates the CRM, or triggers a reply.
  • Spoki sits between your apps and the WhatsApp Business API: you connect your CRM, e-commerce, or custom code to Spoki, and Spoki handles templates, sessions, and opt-in so you stay compliant. Use registration to get started and support for integration help.

    Step-by-Step: Connecting Your App with Spoki

    1. Create your Spoki account and connect WhatsApp

    Complete registration and link your WhatsApp Business number. Spoki will guide you through business verification and template submission so you can send approved messages.

    2. Get your API credentials and webhook URL

    From Spoki you get API credentials (or webhook configuration) to send messages and receive inbound events. Your app will call Spoki to send templates or session messages, and Spoki can forward inbound messages to your webhook URL so your app can react (e.g. log in CRM, reply automatically).

    3. Implement send and receive in your app

    • Send: When your app needs to send a WhatsApp message (e.g. order confirmed, support reply), it calls Spoki’s API with the template name and parameters or the session message content. Spoki handles delivery and 24-hour rules.
    • Receive: Configure your webhook in Spoki so inbound messages are posted to your app. Your app parses the event, updates your database or CRM, and can trigger a reply via Spoki within the session window. See book and support for examples.

    4. Respect opt-in and templates

    Only send to users who have given opt-in. For the first message or after 24 hours of inactivity, use only approved templates. Spoki helps you manage opt-in and templates so your app integration stays within WhatsApp’s policies. The ROI calculator helps you estimate volume and cost.

    Common Use Cases: CRM, E-Commerce, Support

    • CRM: Your CRM sends Spoki a request when a lead opts in or when you want to send a template campaign. Inbound messages are sent to your CRM via webhook so agents see the full thread. Spoki and your CRM keep opt-in and session logic in sync. Links: registration, pricing.
    • E-commerce: Order confirmation, shipping update, or support follow-up: your e-commerce platform calls Spoki to send templates or session messages. Inbound messages (e.g. “Where is my order?”) hit your webhook; your app can reply via Spoki within 24 hours. Use support and book for design help.
    • Support: Incoming WhatsApp messages are delivered to your app via webhook. Your app can assign the chat to an agent, show history from your CRM, and send replies through Spoki as long as the session is active. After 24 hours, the next outbound message must be a template. Spoki keeps this clear so your app does not break the rules.

    Pitfalls to Avoid

    • Sending without opt-in: Your app must only send to users who have consented. Spoki helps you store and check opt-in so your API or webhook logic stays compliant.
    • Using free-form for the first message or after 24h: The API requires approved templates in those cases. Your app should call Spoki with the correct template name and parameters; Spoki handles the rest.
    • Ignoring webhook security: Validate webhook requests (e.g. signature or token) so only Spoki can post to your app. Spoki and support can guide you.
    • Not handling opt-out: When a user sends STOP, your app must process it (e.g. update CRM, stop sending). Spoki can forward opt-out events to your webhook so your app stays compliant. See pricing and registration to scale.

    Testing and Going Live

    Before going live, test your webhook with sample inbound events and confirm your app sends templates and session messages correctly. Use a staging or test number if Spoki offers one, and verify opt-in is checked before every send. Monitor the first days for delivery errors and webhook timeouts; Spoki and support can help you tune retries and timeouts. The ROI calculator helps you plan capacity as you scale API and webhook traffic.

    Conclusion

    Connecting your apps to the WhatsApp Business API with Spoki gives you a single API and webhook layer for templates, session messages, and opt-in. Your CRM, e-commerce, or custom app can send and receive WhatsApp messages while Spoki keeps you within the rules.

    Ready to connect your apps? Visit Spoki for the WhatsApp Business API, registration, and pricing. Use the ROI calculator to plan your integration and support or book for technical help.

    Related Articles

    Frequently Asked Questions

    What is Spoki?

    Spoki is a comprehensive WhatsApp Business API platform that enables businesses to transform WhatsApp into a powerful channel for marketing, sales, and customer support.

    With Spoki, you can:

    Automate communications: Send automated messages, create chatbots, and set up intelligent workflows

    Manage customer support: Multi-operator team management with ticketing system and conversation routing

    Increase sales: Recover abandoned carts, send payment requests, and manage your product catalog directly on WhatsApp

    Marketing campaigns: Send bulk messages to thousands of contacts with personalized templates

    AI-powered features: Leverage artificial intelligence to automate responses and qualify leads 24/7

    Integrate with your tools: Connect with over 4,000 platforms including CRM, e-commerce, and marketing tools

    Spoki is an official Meta Tech Partner, guaranteeing reliability, security, and access to all official WhatsApp Business API features.

    How does the WhatsApp Business API work?

    The WhatsApp Business App and the WhatsApp Business API (used by Spoki) are two completely different solutions designed for different business needs:

    WhatsApp Business App: • Designed for small businesses and sole proprietors • Manual message management • Limited to 5 devices simultaneously • Maximum 256 contacts per broadcast • No automation capabilities • Free but with significant limitations • No CRM or integration support

    WhatsApp Business API (Spoki): • Designed for medium to large businesses • Unlimited operators: Your entire team can manage conversations simultaneously • Unlimited broadcasts: Send messages to thousands of contacts • Advanced automation: Chatbots, automatic responses, intelligent workflows • CRM integration: Connect with your existing tools (HubSpot, Salesforce, etc.) • Analytics & reporting: Detailed statistics on your communications • No ban risk: Official API approved by Meta for bulk messaging • Cloud-based: No need to keep a phone connected • Multi-channel: Integrate WhatsApp with SMS, Voice, and other channels

    How much does a Spoki subscription cost?

    We have different plans suitable for various needs. Visit the Pricing page for updated details.

    Is there a free trial?

    Yes, Spoki usually offers a trial period or a free plan to test the platform.

    Can I integrate Spoki with other tools?

    Spoki integrates with thousands of platforms through native integrations, Zapier, Make (Integromat), and Webhooks.

    Native Integrations:

    E-commerce: Shopify, WooCommerce, PrestaShop, Magento

    CRM: HubSpot, Salesforce, Pipedrive, Zoho, ActiveCampaign

    Marketing: Mailchimp, Google Sheets

    Payment: Stripe, PayPal

    Support: Zendesk

    Via Zapier/Make:

    Connect to 4,000+ platforms including: • Google Workspace (Sheets, Calendar, Drive) • Microsoft Office 365 • Slack, Trello, Asana • WordPress, Webflow • Custom apps via API

    Webhooks & API:

    Full REST API for developers to build custom integrations.

    Try Spoki for Free

    No credit card required

    I accept the General Terms and Conditions and the processing of personal data related to the use of the Services pursuant to the Privacy Policy. *

    I accept specific articles of the Client Agreement, the GDPR Data Processing Agreement, and the General Terms and Conditions. *