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

# Webhook

Call a webhook

This page documents the **Webhook** module, including its variants, capabilities, and the result values it returns.

## Webhook: Webhook

### Capabilities

The module returns the following capabilities.

#### Status

Status of the webhook call

| Code    | Label | Description                 |
| ------- | ----- | --------------------------- |
| `sent`  | Sent  | Webhook called successfully |
| `error` | error | Webhook call failed         |

### Default outcomes

The module is pre-configured with the following default outcomes, which can be used in evaluation and routing logic within the journey designer.

| Outcome | Condition                           | Description                                         |
| ------- | ----------------------------------- | --------------------------------------------------- |
| `Sent`  | Status is `sent`                    | \[Describe.] {/* TODO: written by the docs team */} |
| `Error` | default, when no conditions matched | \[Describe.] {/* TODO: written by the docs team */} |

### Input payload

The following is a sample payload used to submit data to the **Webhook** module for processing.

```json JSON theme={null}
{
  "context": {
    "config": {
      "previewUrl": "https://example.com/webhook",
      "productionUrl": "https://example.com/webhook",
      "message": "foo",
      "iSO8602TimeoutDuration": "PT2M",
      "includeMessage": true
    },
    "subject": {
      "identity": {
        "firstName": "John"
      }
    }
  }
}
```

### Sample response

The following is a sample response returned by the module.

```json JSON theme={null}
{
  "response": {
    "advice": {
      "status": "error"
    },
    "outcome": "Error"
  }
}
```

## Webhook: Webhook Notification

Journey-completion notification webhook (trigger-only, signed). Platform-invoked via the module executor; not customer-selectable.

### Capabilities

The module returns the following capabilities.

#### Status

Status of the notification webhook call

| Code    | Label | Description                              |
| ------- | ----- | ---------------------------------------- |
| `sent`  | Sent  | Notification webhook called successfully |
| `error` | error | Notification webhook call failed         |

### Default outcomes

The module is pre-configured with the following default outcomes, which can be used in evaluation and routing logic within the journey designer.

| Outcome | Condition                           | Description                                         |
| ------- | ----------------------------------- | --------------------------------------------------- |
| `Sent`  | Status is `sent`                    | \[Describe.] {/* TODO: written by the docs team */} |
| `Error` | default, when no conditions matched | \[Describe.] {/* TODO: written by the docs team */} |

### Input payload

The following is a sample payload used to submit data to the **Webhook Notification** module for processing.

```json JSON theme={null}
{
  "context": {
    "config": {
      "url": "http://mockfailure.internal",
      "authType": "none",
      "iSO8602TimeoutDuration": "PT2M"
    },
    "subject": {
      "identity": {}
    }
  }
}
```

### Sample response

The following is a sample response returned by the module.

```json JSON theme={null}
{
  "response": {
    "advice": {
      "status": "error"
    },
    "outcome": "Error"
  }
}
```

## Webhook

### Capabilities

#### Status

Status of the webhook call

| Value   | Description                 |
| ------- | --------------------------- |
| `sent`  | Webhook called successfully |
| `error` | Webhook call failed         |

### Input payload

The following is a sample payload used to submit data to the **Webhook** module for processing.

```json JSON theme={null}
{
  "context": {
    "config": {
      "iSO8602TimeoutDuration": "PT2M",
      "includeMessage": true,
      "message": "foo",
      "previewUrl": "https://example.com/webhook",
      "productionUrl": "https://example.com/webhook"
    },
    "subject": {
      "identity": {
        "firstName": "John"
      }
    }
  }
}
```

### Sample response

The following is a sample response returned by the module.

```json JSON theme={null}
{
  "response": {
    "advice": {
      "status": "error"
    },
    "outcome": "Error"
  }
}
```

## Webhook Notification

### Capabilities

#### Status

Status of the notification webhook call

| Value   | Description                              |
| ------- | ---------------------------------------- |
| `sent`  | Notification webhook called successfully |
| `error` | Notification webhook call failed         |

### Input payload

The following is a sample payload used to submit data to the **Webhook Notification** module for processing.

```json JSON theme={null}
{
  "context": {
    "config": {
      "authType": "none",
      "iSO8602TimeoutDuration": "PT2M",
      "url": "http://mockfailure.internal"
    },
    "subject": {
      "identity": {}
    }
  }
}
```

### Sample response

The following is a sample response returned by the module.

```json JSON theme={null}
{
  "response": {
    "advice": {
      "status": "error"
    },
    "outcome": "Error"
  }
}
```
