---
title: "Trigger webhooks"
full: true
_openapi:
  method: POST
  toc: []
  structuredData:
    headings: []
    contents:
      - content: "Triggers webhooks subscribed to a specific event"
_apiData:
  document: "https://reloop.sh/api/webhook/openapi/json"
  operationData: [{"path":"/api/webhook/v1/trigger","method":"post"}]
  parameterList: [{"name":"event","type":"string","required":true,"description":"","location":"body","pattern":"^(domain\\.create|domain\\.update|domain\\.delete|domain\\.undelete|domain\\.list|domain\\.get|domain\\.dns\\.get|domain\\.verify|api-key\\.create|api-key\\.update|api-key\\.delete|api-key\\.revoke|api-key\\.rate_limited|api-key\\.list|api-key\\.get|contact\\.create|contact\\.update|contact\\.delete|contact\\.subscribed|contact\\.unsubscribed|contact\\.blocked|contact\\.group\\.create|contact\\.group\\.update|contact\\.group\\.delete|contact\\.channel\\.create|contact\\.channel\\.update|contact\\.channel\\.delete|contact\\.property\\.create|contact\\.property\\.update|contact\\.property\\.delete|contact\\.list|contact\\.group\\.list|contact\\.channel\\.list|contact\\.property\\.list|contact\\.get|contact\\.group\\.get|contact\\.channel\\.get|email\\.sent|email\\.delivered|email\\.delivery_delayed|email\\.complained|email\\.bounced|email\\.opened|email\\.clicked)$"},{"name":"payload","type":"object","required":true,"description":"Event payload","location":"body"},{"name":"organizationId","type":"string","required":false,"description":"Organization ID to trigger webhooks for","location":"body"},{"name":"userId","type":"string","required":false,"description":"User ID to trigger webhooks for","location":"body"}]
  responseMap: {"200":{"description":"Response for status 200","schema":{"success":true,"message":"Contact already exists","jobId":"example_jobId"}},"401":{"description":"Response for status 401","schema":{"name":"Newsletter","message":"Contact already exists","status":0,"data":{"why":"A contact with this email already exists in your organization.","fix":"Use a different email address or update the existing contact instead.","link":"https://reloop.sh/docs/api/contacts"}}}}
  codeSamples:
    - id: node
      lang: javascript
      label: Node.js
      source: |-
        import { Reloop } from "reloop-email";
        
        const reloop = new Reloop({ apiKey: "rl_123456789" });
        
        const { webhook, webhookError } = await reloop.webhook.trigger({
          event: "domain.created",
          payload: { domainId: "dom_123456789" },
        });
        if (webhookError) throw webhookError;
    - id: curl
      lang: bash
      label: cURL
      source: |-
        curl -X POST https://reloop.sh/api/webhook/v1/trigger \\
          -H "x-api-key: rl_123456789" \\
          -H "Content-Type: application/json" \\
          -d '{"event":"domain.created","payload":{"domainId":"dom_123456789"}}'
    - id: python
      lang: python
      label: Python
      source: |-
        # Webhook SDK support coming soon
    - id: php
      lang: php
      label: PHP
      source: |-
        // Webhook SDK support coming soon
    - id: java
      lang: java
      label: Java
      source: |-
        // Webhook SDK support coming soon
    - id: dotnet
      lang: csharp
      label: .NET
      source: |-
        // Webhook SDK support coming soon
    - id: go
      lang: go
      label: Go
      source: |-
        // Webhook SDK support coming soon
    - id: rust
      lang: rust
      label: Rust
      source: |-
        // Webhook SDK support coming soon
    - id: ruby
      lang: ruby
      label: Ruby
      source: |-
        # Webhook SDK support coming soon
    - id: elixir
      lang: elixir
      label: Elixir
      source: |-
        # Webhook SDK support coming soon
---
> For the complete documentation index, see [llms-docs.txt](/llms-docs.txt) or the site index [llms.txt](/llms.txt). Full docs corpus: [llms-full-docs.txt](/llms-full-docs.txt). Prefer markdown URLs (append `.md`) for agent consumption. Product skill: [skill.md](/skill.md).


{/* This file was generated by the OpenAPI doc generator. Do not edit this file directly. Run `bun run generate:api-docs` to regenerate. */}

<APIPage />
