Skip to content

Webhook action

The Webhook action in Stack allows you to seamlessly send data to external systems using HTTP POST requests. This feature is ideal for integrating with third-party applications, automating data transfers, or triggering events in other platforms based on specific workflow conditions. For instance, you can use this action to send form submissions to another platform.

Webhook

The Webhook action enables you to send an HTTP POST or GET request to a specified URL, facilitating data transfer to an external application or service. This action is versatile, allowing you to trigger automations in third-party systems, update external databases, or send data to custom APIs, thereby enhancing the integration capabilities of your workflows.

  1. Choose the Action Type:

    • Select Webhook from the list of available actions in the workflow builder.
  2. Name Your Action:

    • Enter a descriptive name for the action, such as “Send Contact Info to External CRM.”
  3. Enter the Webhook URL:

    • Provide the URL of the external application where the data should be sent. This is typically an endpoint URL provided by systems like CRMs, email marketing tools, or other APIs.
  4. Configure Payload:

    • Define the data to be sent through the webhook using JSON format. Utilize merge fields to dynamically include information like contact details, opportunity status, or custom fields. Example:
      {
      "first_name": "`{{contact.first_name}}`",
      "last_name": "`{{contact.last_name}}`",
      "email": "`{{contact.email}}`",
      "phone": "`{{contact.phone}}`",
      "status": "`{{contact.status}}`"
      }
  5. Add Headers (Optional):

    • If the external system requires authentication or specific headers, add them here. For example, you might need to include an API key or content-type header:
      Authorization: Bearer <API_KEY>
      Content-Type: application/json
  6. Add Custom Data (Optional):

    • If needed, send custom data by adding key-value pairs in the action, such as:
      • Key: Addr
      • Value: Address from the value picker
  7. Test Webhook (Optional):

    • Before finalizing, use testing tools like Webhook.site or Postman to ensure the data is correctly sent to the external system.

You want to sync contact data with an external CRM whenever a new contact is created.

  1. Create Workflow Trigger:

    • Set up a workflow trigger to initiate when a new contact is created.
  2. Add Webhook Action:

    • Select the Webhook action and name it “Sync Contact with CRM.”
  3. Enter Webhook URL:

    • Provide the CRM’s API endpoint for contact updates, e.g., https://api.externaltestcrm.com/contacts/create.
  4. Configure Payload:

    • Define the contact details to be sent in JSON format:
      {
      "first_name": "`{{contact.first_name}}`",
      "last_name": "`{{contact.last_name}}`",
      "email": "`{{contact.email}}`",
      "phone": "`{{contact.phone}}`"
      }
  5. Add Headers:

    • Include any necessary authentication details:
      Authorization: Bearer abc123xyz
      Content-Type: application/json
  6. Save and Activate the Workflow:

    • Once the workflow is active, every time a new contact is created, their details will automatically be sent to the external CRM.

Webhooks operate by firing off either a POST or GET request to a specified API URL. This can be incredibly useful for integrating with other platforms or services that your business relies on.

  • POST Method: This method sends data to the server, typically used when you need to create or update resources.

  • GET Method: This method retrieves data from the server, useful when you need to request information.

When using webhooks, you can choose to send:

  • Standard Data: Predefined data sets that are automatically included in the webhook.
  • Custom Data/Headers: Tailor the data and headers to fit your specific needs, allowing for more flexible integrations.

Keep in mind that webhooks send data in a one-way direction. This means that while Stack will transmit the information to the specified endpoint, it does not process or handle any responses that might be returned from the POST or GET requests.

Use webhooks to enhance your workflows by connecting Stack with other tools and services, ensuring your processes are efficient and automated.

Can't find what you need? Call or text +1 787 665-9212 or email support@stackapp.co.© Stack · Privacy · Terms