---
title: "fswa_success — Action Hook"
description: "Fires after a webhook is delivered successfully (2xx response received)."
url: "https://wpwebhooks.org/docs/fswa-success/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / fswa\_success

Action since v1.0.0

# fswa\_success

Fires after a webhook is delivered successfully (2xx response received).

/ Signature

```
do_action( 'fswa_success', $trigger, $url, $payload, $response )
```

/ When it fires

Fires once per successful delivery attempt, after a 2xx HTTP status is received and the log entry is written.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $trigger | param | string | yes | The WordPress action name that triggered the delivery. |
| $url | param | string | yes | The endpoint URL the payload was sent to. |
| $payload | param | array | yes | The final payload that was delivered. |
| $response | param | array | yes | \`wp\_remote\_post()\` response array (includes \`response\`, \`headers\`, \`body\`). |

/ Examples

Log successful deliveries to an external monitoring service

```
add_action( 'fswa_success', function ( $trigger, $url, $payload, $response ) {
    $code = wp_remote_retrieve_response_code( $response );
    error_log( "[fswa] Delivered {$trigger} to {$url} — HTTP {$code}" );
}, 10, 4 );
```

/ Related

[fswa\_error](https://wpwebhooks.org/docs/fswa-error/)[fswa\_webhook\_response](https://wpwebhooks.org/docs/fswa-webhook-response/)[Delivery Logs](https://wpwebhooks.org/docs/delivery-logs/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"fswa_success — Action Hook — Webhook Actions Docs","description":"Fires after a webhook is delivered successfully (2xx response received).","url":"https://wpwebhooks.org/docs/fswa-success/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
