# Trigger an automation using a webhook

> Start an automation with a POST from a system outside Rippling.

## Overview

An incoming webhook lets a system outside of Rippling start an automation by sending a POST request to a unique webhook URL.

### Use cases

-   **ATS/recruiting** - An offer is accepted or a candidate is hired in an external system, and the webhook initiates an onboarding-style automation in Rippling.
-   **Ticketing system** - An external ticket reaches a specific status (e.g., laptop request approved, access request), and the webhook sets off an automation that assigns IT a task or provisions access.
-   **Identity/security** - The webhook kicks off on a risky login or group change, and the automation notifies IT or locks down access.
-   **Background check systems** - A background-check vendor completes a step in the third-party system and sends a webhook, which sets off an automation to continue the process in Rippling.

> **Note:**
> While this guide details triggering a Rippling automation from an external system, there is also the option to call a third-party’s API/webhook using a Rippling automation. For more information, see [Call an API or webhook using an automation](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/call-api).

* * *

## Requirements

-   Once the Developer app is enabled for your company, you have access to Automation Studio. For more information, see [Permissions for the Developer app](https://developer.rippling.com/documentation/rippling-platform/developer/permissions).

* * *

## Setup

### Configure the automation trigger

1.  Navigate to **Tools** > **Automation Studio** > click **Create automation**.
2.  Name the automation and select **Choose your automation trigger** > **From a webhook**.
3.  Copy the **Webhook URL** (this is the endpoint the external client makes the POST request to).
4.  Click **Generate token** to generate the Bearer Auth token. The external system must include this token in the Authorization header, and requests without a valid token are rejected. The Bearer token will not be visible after clicking out of the dialog box.
5.  _Optional_: Define the payload. If the external system only needs to initiate a task and Rippling already has the employee data, you can skip this step.

> **When to define a payload:**
> -   You need specific values from the webhook (e.g., ticket ID, candidate ID, device serial).
> -   You might branch on a field (e.g. priority: high vs low, `event_type`: `access_granted`).
> -   Multiple systems share the same pattern and you want a contract (required fields, nested objects).

6.  Under **Advanced Security** > **IP Allowlist**, add the IPs that are allowed to call the webhook URL. If the list includes any IPs, requests from other addresses are rejected even with a valid Bearer token. If the list is empty, requests from any IP are allowed as long as they include a valid Bearer token.
7.  Use Postman to use the test webhook URL and practice sending a POST request with a payload. An example payload can include:

```json
{
   "id": "6789",
   "name": "Webhook 1",
   "address": {
       "street": "4567 Broadway St.",
       "unit": "12",
       "floor": "14"
   }
}
```

If successful, the response will return a **record ID**, and you’ll see the same response in the Rippling UI.

```json
{
   "trigger_record_ids": [
       "6a85e7768ffc69862bd25dba"
   ]
}
```

8.  Click **Save**.

### Define the automation step

Now that the automation trigger has been created, add one or more steps. For more information on HTTP calls, see [Call an API](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/call-api). For more information on custom object writes and queries, see [Automation steps](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/steps).

When you’re done, save as a draft or publish the automation, then activate it.

> **Note:**
> An automation needs to be both **published and activated** in order to run successfully. You can publish an automation without activating, and activate later using the "Status" toggle on the **Automation Studio** > **Dashboards** homepage. For more information, see [Automation statuses](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/statuses).

### Configure the request in the third-party system

1.  In the third-party system, open the outgoing webhook/HTTP/automation action.
2.  POST to the **Rippling Webhook URL** generated earlier in the automation trigger.
3.  Set `Authorization: Bearer <token>` and `Content-Type: application/json`.
4.  If you defined a payload in the automation, send JSON that matches it. Otherwise, send an empty request body.
5.  Configure any third-party settings so that the POST request is sent when the real event occurs (offer accepted, ticket approved, etc.).

An automation needs to be both **published and activated** in order to run successfully.

Once the automation is published, you can view successful or failed instances by going to **Automation Studio** > **Dashboards** > select the automation > **Execution history**.

* * *

## See also

-   [Get started with automations](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/get-started)
-   [Automation triggers](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/triggers)
-   [Automation steps](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/steps)
-   [Call an API or webhook using an automation](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/call-api)
-   [Automation statuses](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/statuses)
-   [Automation troubleshooting](https://developer.rippling.com/documentation/rippling-platform/developer/workflows/troubleshooting)
-   [Permissions for the Developer app](https://developer.rippling.com/documentation/rippling-platform/developer/permissions)

Source: https://developer.rippling.com/documentation/rippling-platform/developer/workflows/trigger-workflow

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
