πŸ”—
Technical9 min leestijd28 januari 2026

Webhooks & API: e-mail integreren in je eigen systeem

Hoe je inkomende e-mail automatisch verwerkt in je CRM, helpdesk of eigen applicatie.

Waarom integreren?

E-mail staat niet op zichzelf. Het is verbonden met je CRM, je helpdesk, je boekhoudsoftware, je projectmanagement. Door e-mail te integreren via webhooks of API, creΓ«er je automatische workflows.

Voorbeelden

  • Nieuwe klant mailt β†’ Automatisch contactpersoon aanmaken in CRM
  • Factuurvraag β†’ Ticket aanmaken in helpdesk
  • Bestelling geannuleerd β†’ Notificatie naar Slack
  • Support verzoek β†’ Prioriteit bepalen en toewijzen
  • Webhooks: push-notificaties

    Een webhook stuurt automatisch een HTTP POST naar jouw URL wanneer er iets gebeurt.

    Beschikbare events

    EventWanneer
    `message.received`Nieuwe inkomende mail
    `thread.created`Nieuwe thread aangemaakt
    `thread.closed`Thread afgesloten
    `thread.assigned`Thread toegewezen aan teamlid

    Webhook payload voorbeeld

    json
    { "event": "message.received", "thread_id": "clx123...", "from": "klant@bedrijf.nl", "to": "support@jouwdomein.nl", "subject": "Vraag over factuur", "body_text": "Hallo, ik heb een vraag...", "timestamp": "2026-02-25T10:30:00Z" }

    Webhook instellen

  • Ga naar Instellingen β†’ Webhooks
  • Klik Nieuwe webhook
  • Vul je URL in (bijv. https://jouwapp.nl/api/webhook)
  • Selecteer de events
  • Kopieer het webhook secret voor verificatie
  • REST API: pull data

    De REST API laat je data ophalen en acties uitvoeren.

    Authenticatie

    Authorization: Bearer jouw-api-key

    Endpoints

    Threads ophalen:

    GET /api/v1/threads?status=open&domain=jouwdomein.nl

    Thread details:

    GET /api/v1/threads/:id

    Antwoord versturen:

    POST /api/v1/threads/:id/reply
    {
      "body": "Bedankt voor je bericht..."
    }

    Best practices

  • Verifieer webhook signatures β€” Controleer het secret om spoofing te voorkomen
  • Retry logica β€” Webhooks falen soms, bouw retry-logica in
  • Rate limiting β€” Respecteer API-limieten
  • Idempotency β€” Verwerk dezelfde webhook niet twee keer
  • Conclusie

    Webhooks en API's maken e-mail een bouwsteen in je tech-stack. Begin met één integratie, test grondig, en breid uit naarmate je behoeften groeien.

    #api#webhooks#integration#developer

    Klaar om te beginnen?

    Start gratis met MailBelly. Geen creditcard nodig.

    Gratis account aanmaken β†’