Flatfile's webhooks give you the freedom to subscribe to events that happen with your imports as opposed to having to pull the information via our API. With webhooks, you will specify a
webhookUrl
This is one of our optional configurations and can simply be ignored if this doesn't interest you or meet your needs. You might want to look into this feature if:
To use webhooks, use the optional
webhookUrl
FlatfileImporter()
webhookUrl: "https://your-data.com/endpoint"
Parameter | Data type | Description |
---|---|---|
event.id | String | Uniquely generated webhook event ID |
event.type | String | Event type e.g batch.update |
event.sequence.count | Integer | Total number of requests to be made for this event |
event.sequence.index | Integer | Current request number, starting at 1 |
data.meta.batch.id | String | Current Batch ID |
data.meta.schema.id | Integer | Current Schema ID |
data.meta.count | Integer | How many records in the request, currently this is not configurable and is set at 1,000 records per request maximum |
data.validRows | Object[] | Array of row data objects that passed validation |
data.invalidRows | Object[] | Array of row data objects that failed validation |