# Additional data reporting

As journeys run, each step emits activity events that include standard metadata that you can inspect in the [Journey analytics](/guides/orchestration/getting-started/journey_analytics) and in the [User activity](/guides/user/user_audit_logs) log, or stream via [Activities APIs](/openapi/risk/activities.openapi) to external monitoring systems.

For diagnostic purposes or deeper troubleshooting, you can configure journey steps (except Success/Reject steps) and external connectors, including SMTP, Apple & Google push notifications, [Custom HTTP](/guides/orchestration/external-connections/web_service_function), and Custom Web Service connectors for SMS, email, and push, to record additional data and extend their standard activity events.

## Report step data

In each step's **Step data & reporting** settings, you can enable **Report Step Data** to include additional data in the related **Step completed** event.

Use **Step Input & Output** to record the step-specific data received and produced by that step during the journey execution. Use **Custom Data** to record a payload that you define with an authscript expression, such as selected fields, derived values, or a smaller diagnostic object tailored to your investigation.

The step-level configurations are:

| Field | Description |
|  --- | --- |
| **Report Step Data** | Enables additional event reporting for the step. |
| **Data Reported** | Determines whether the step records:**Step Input & Output**—the step-specific input and output metadata.**Custom Data**—an authscript expression that defines the custom payload recorded for the step. For syntax details, see [About expressions](/guides/orchestration/getting-started/expressions/overview) and [Expressions: Constructors](/guides/orchestration/getting-started/expressions/constructors). |


### Step payload examples

The reported additional data is surfaced in the **Step completed** events in fragments such as the following:

#### Inputs & Outputs

```json
"step_data": {
  "step_input": {
    "name": {},
    "username": {
      "raw": "@uuid()",
      "evaluated": "7bc6cc96-dd05-455e-a8c9-949c5257c5d5"
    },
    "secondary_emails": [],
    "address": {}
  },
  "step_output": {
    "result": {
      "user_id": "BWhayr_JWxLGiI6K22wRG",
      "created_at": 1779274063221,
      "updated_at": 1779274063221,
      "status": "Pending",
      "app_id": "xvxo4bqhu9PGMkE772AdN",
      "username": "7bc6cc96-dd05-455e-a8c9-949c5257c5d5",
      "app_name": "Acme LTD"
    }
  }
}
```

#### Custom data

```json
"step_data": {
  "custom": {
    "variables": [
      {
        "name": "ClientID",
        "value": {
          "raw": "@policy.clientInfo().client_id",
          "evaluated": "BWhayr_JWxLGiI6K22wRG"
        }
      }
    ]
  }
}
```

## Report external connectors data

When integrating external services into journeys using external connectors, such as [SMTP email services](/guides/orchestration/external-connections/smtp), [Apple & Google push notifications](/guides/orchestration/external-connections/apple_google_push), [Custom HTTP](/guides/orchestration/external-connections/web_service_function), [Custom server for emails](/guides/orchestration/external-connections/custom_web_service_email), [Custom web services for SMS](/guides/orchestration/external-connections/custom_web_service_sms), and [Custom provider for push notifications](/guides/orchestration/external-connections/custom_web_service_push), you can report external connector data for troubleshooting the integration, validating request mappings, or checking how a third-party service responded during a journey execution.

Use **External Connect Request/Response** to record the request sent by the connector and the response returned by the external service during the journey execution. Use **Custom** to record a payload that you define with an expression, such as selected headers, response fields, derived values, or a smaller diagnostic object tailored to your investigation. Use **Custom** when you need to exclude personally identifiable information (PII), such as recipient addresses or message bodies, from the reported event.

The connector-level configurations are:

| Field | Description |
|  --- | --- |
| **Report External Connection Data** | Enables additional event reporting for the connector. |
| **Data Reported** | Determines whether the connector records **External Connect Request/Response** or **Custom**. |
| **Custom Data Reported** | Expression that defines the custom payload recorded for the connector. For syntax details, see [About expressions](/guides/orchestration/getting-started/expressions/overview) and [Expressions: Constructors](/guides/orchestration/getting-started/expressions/constructors). |


These connector-level settings are available across SMTP, Apple & Google push notifications, [Custom HTTP](/guides/orchestration/external-connections/web_service_function), and Custom Web Service connectors for SMS, email, and push.

### Custom expressions

In the connector settings, when choosing **Data Reported** > **Custom**, you enter an expression to be evaluated against the `external_connection_request` object. It exposes three top-level properties:

| Field | Description |
|  --- | --- |
| `external_connection_request.provider_type` | Connector type identifier, such as `smtp`, `push`, or `push-external`. |
| `external_connection_request.provider_id` | The configured connector instance ID. |
| `external_connection_request.external_connection_data` | Object containing the connector request and response data captured for the event. |


In **Custom Data Reported**, use the expression editor's autocomplete to select fields available for your connector. For example, SMTP and Apple & Google push connectors expose `response.result`, while Custom HTTP and Custom Web Service connectors expose HTTP response fields such as `response.status_code`.

SMTP, Apple & Google Push
```json
{
  "provider": external_connection_request.provider_type,
  "result": external_connection_request.external_connection_data.response.result,
  "latency_ms": external_connection_request.external_connection_data.response.latency_ms
}
```

Custom HTTP, Custom Web Service SMS, Email, and Push
```json
{
  "provider": external_connection_request.provider_type,
  "status_code": external_connection_request.external_connection_data.response.status_code,
  "latency_ms": external_connection_request.external_connection_data.response.latency_ms
}
```

### Response formats by connector family

In reported connector events, the structure of `external_connection_data.response` depends on the connector type.

| Connectors | Response fields |
|  --- | --- |
| [SMTP email services](/guides/orchestration/external-connections/smtp) | `result`: `EmailSuccess`, `EmailFailure`, or `RateLimitEmailError`.`latency_ms`: round-trip time in milliseconds.`error_message`: present on failure. |
| [Apple & Google push notifications](/guides/orchestration/external-connections/apple_google_push) | `result`: `PushNotificationsSuccess`, `PushNotificationsFailure`, or `PushNotificationsError`.`latency_ms`: round-trip time in milliseconds.`error_message`: present on failure. |
| [Custom HTTP](/guides/orchestration/external-connections/web_service_function)[Custom web services for SMS](/guides/orchestration/external-connections/custom_web_service_sms)[Custom server for emails](/guides/orchestration/external-connections/custom_web_service_email)[Custom provider for push notifications](/guides/orchestration/external-connections/custom_web_service_push) | `status_code`: HTTP status code.`status_text`: HTTP status text.`headers`: response headers.`body`: response body.`timestamp`: response timestamp.`latency_ms`: round-trip time in milliseconds.`error`: present on HTTP error. |


## Best practices

- Keep additional journey event data off by default. Enable it only for the steps or connectors where the extra context is needed for troubleshooting, monitoring, or forensic analysis.
- Prefer stable field names in custom payloads so logs remain easy to search and compare across executions.
- When connector payloads may include sensitive values, prefer a custom payload that records only the fields needed for investigation.
- Avoid recording secrets or unnecessary personal data. There is no automatic global filter for sensitive data, so use **Custom Data** to define explicitly which fields are recorded.