> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackshift.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Targets

> Send a matched event to a webhook, a Function, a durable queue or waiting job, a hosted agent or Stackie, Slack, email or the dashboard, or an automation.

> [!TIP]
>
> **Live.** This area is documented as current, user-reliable behavior.

## Goal

Pick the right target for a rule and fill in its fields.

## Prerequisites

* A rule in progress.

## Workflow

**Step 1**

In the rule panel, pick a target kind.

**Step 2**

Fill in its fields.

**Step 3**

Save, then use Send a test event.

## Webhook

Pick a destination from Destinations, or Add a destination with its HTTPS URL. StackShift posts the event with a StackShift-Signature header; see Verify webhook signatures. The URL must be public HTTPS; StackShift follows up to 3 redirects and waits up to 10 seconds. A 2xx answer is success.

## Function

Pick the project and the function, for example api/resize.ts. The function receives the event envelope. In JavaScript and Go, wrap the handler with onEvent so it only runs for matching types.

```ts api/resize.ts theme={null}
import { onEvent } from '@stackshift-cloud/sdk'

export default onEvent('storage.object.created', async (event) => {
  console.log(event.data.key)
})
```

## Job or queue

* Add a job to a queue: pick one of your durable queues and the job name. The job payload is the envelope.
* Wake a waiting job: give the event name a Durable Job is waiting for with waitForEvent, and Match on the field that holds the correlation key (subject.id by default; also id, type, project\_id, or a path under subject., data. or actor.).
* Both are for personal rules. Queue names starting with \_ are reserved.

## Agent or Stackie

* One of your agents: wakes a hosted agent with a platform.event input.
* Stackie: starts a Stackie task. Use What should it look into? to say what to do, up to 2,000 characters. By default Stackie investigates and proposes fixes for you to approve; it does not change anything by itself.

## Slack, email, in-app

Choose In the dashboard, Email, Slack, or several, and an optional title. Team rules notify the team’s Owners and Admins. Slack must be connected in notification settings.

## Automation

Starts a run of one of your automations, with the event as the run input. An automation can also have its own event trigger; see Automations.

## Expected result

> [!TIP]
>
> Matching events reach the target, and each attempt is listed in Deliveries.

## Related guides

> [card] [Verify webhook signatures](https://docs.stackshift.cloud/events/verify-webhooks.md)
>
> Every webhook is signed with HMAC-SHA256 of the timestamp and raw body. Verify it with the SDK for JavaScript, Python, Go, Ruby or PHP.

> [card] [Automations overview](https://docs.stackshift.cloud/automations/overview.md)
>
> An automation is a trigger plus steps that run by themselves: on an event, on a schedule, from a webhook URL, or when you press Run.

> [card] [Durable Jobs overview](https://docs.stackshift.cloud/durable-jobs/overview.md)
>
> Durable Jobs is the reliable execution engine for backend work on StackShift. Deploy the app. Offload the work.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.