---
updatedAt: 2026-09-06T16:21:22.000Z
agentTools:
  projectIndex: https://spektr.readme.io/llms.txt
---

# external_data_received

An External Data step receives and accepts data.

Sent as an HTTPS POST to your configured webhook endpoint. A batch can contain different event types. See [HMAC verification](https://spektr.readme.io/docs/webhook-hmac-signature-verification) for optional signature headers.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Import API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://ingest.spektr.com"
    }
  ],
  "webhooks": {
    "external_data_received": {
      "post": {
        "tags": [
          "Events API"
        ],
        "operationId": "ProcessExecutionWebhook_external_data_received",
        "summary": "external_data_received",
        "description": "An External Data step receives and accepts data.\n\nSent as an HTTPS POST to your configured webhook endpoint. A batch can contain different event types. See [HMAC verification](https://spektr.readme.io/docs/webhook-hmac-signature-verification) for optional signature headers.",
        "deprecated": false,
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique event ID. Use it to deduplicate deliveries."
                        },
                        "workspaceId": {
                          "type": "string",
                          "description": "Workspace that emitted the event."
                        },
                        "eventType": {
                          "type": "string",
                          "const": "external_data_received",
                          "description": "Type of event: external_data_received."
                        },
                        "timestamp": {
                          "type": "number",
                          "description": "Event creation time: Unix epoch milliseconds. HMAC header timestamps use seconds."
                        },
                        "spektrId": {
                          "description": "Customer related to this event, when present.",
                          "type": "string"
                        },
                        "source": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "sourceType": {
                                  "type": "string",
                                  "const": "spektr_process",
                                  "description": "Origin: spektr_process, external, manual, or unknown."
                                },
                                "processId": {
                                  "type": "string",
                                  "description": "ID of the originating process when sourceType is spektr_process."
                                }
                              },
                              "required": [
                                "sourceType",
                                "processId"
                              ],
                              "description": "Origin of the event, when known."
                            },
                            {
                              "type": "object",
                              "properties": {
                                "sourceType": {
                                  "type": "string",
                                  "const": "external",
                                  "description": "Origin: spektr_process, external, manual, or unknown."
                                }
                              },
                              "required": [
                                "sourceType"
                              ],
                              "description": "Origin of the event, when known."
                            },
                            {
                              "type": "object",
                              "properties": {
                                "sourceType": {
                                  "type": "string",
                                  "const": "manual",
                                  "description": "Origin: spektr_process, external, manual, or unknown."
                                },
                                "userId": {
                                  "type": "string",
                                  "description": "ID of the user who triggered a manual event, when available."
                                },
                                "userName": {
                                  "type": "string",
                                  "description": "Name of the user who triggered a manual event, when available."
                                },
                                "userEmail": {
                                  "type": "string",
                                  "description": "Email of the user who triggered a manual event, when available."
                                }
                              },
                              "required": [
                                "sourceType"
                              ],
                              "description": "Origin of the event, when known."
                            },
                            {
                              "type": "object",
                              "properties": {
                                "sourceType": {
                                  "type": "string",
                                  "const": "unknown",
                                  "description": "Origin: spektr_process, external, manual, or unknown."
                                }
                              },
                              "required": [
                                "sourceType"
                              ],
                              "description": "Origin of the event, when known."
                            }
                          ],
                          "description": "Origin of the event, when known."
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "stepType": {
                              "type": "string",
                              "const": "externalData",
                              "description": "Type of the step, for example form, ownershipTreeForm, complyAdvantageKyc, or externalData."
                            },
                            "stepId": {
                              "type": "string",
                              "description": "ID of the step associated with the event."
                            },
                            "contextId": {
                              "type": "string",
                              "description": "ID of the process run (execution context)."
                            },
                            "processId": {
                              "type": "string",
                              "description": "ID of the process associated with this event."
                            },
                            "processName": {
                              "type": "string",
                              "description": "Name of the process."
                            },
                            "processType": {
                              "type": "string",
                              "description": "Type of process, for example risk, monitoring, onboarding, or loop."
                            },
                            "stepTitle": {
                              "type": "string",
                              "description": "Display title of the step, when configured."
                            },
                            "reference": {
                              "type": "string",
                              "description": "Optional reference associated with the customer or run. For onboarding, this can be passed through the reference query parameter."
                            },
                            "receivedFields": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Keys of the external data fields received and accepted."
                            },
                            "receivedData": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {},
                              "description": "Accepted external data, keyed by spektr data field."
                            }
                          },
                          "required": [
                            "stepType",
                            "stepId",
                            "contextId",
                            "processId",
                            "processName",
                            "processType"
                          ],
                          "additionalProperties": {},
                          "description": "Event-specific payload."
                        },
                        "additionalFields": {
                          "description": "Customer fields selected in the matching delivery setting, when available.",
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "id",
                        "workspaceId",
                        "eventType",
                        "timestamp",
                        "data"
                      ]
                    },
                    "description": "Batch of webhook events. A delivery can contain different event types."
                  }
                },
                "required": [
                  "results"
                ]
              },
              "examples": {
                "sample": {
                  "summary": "external_data_received",
                  "value": {
                    "results": [
                      {
                        "id": "6867b8db50ffa326d667ac63",
                        "workspaceId": "workspace-123",
                        "spektrId": "customer-123",
                        "eventType": "external_data_received",
                        "timestamp": 1788278400000,
                        "data": {
                          "processType": "onboarding",
                          "processName": "Customer onboarding",
                          "processId": "686660b573833dea357e86f6",
                          "contextId": "6867b8db50ffa326d667ac60",
                          "reference": "customer-123",
                          "stepType": "externalData",
                          "stepId": "686660b873833dea357e8702",
                          "receivedFields": [
                            "credit_score"
                          ],
                          "receivedData": {
                            "credit_score": 720
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledge receipt. Any 2xx response is accepted; failed deliveries may be retried."
          }
        }
      }
    }
  }
}
```