curl --request POST \
--url https://app.herondata.io/api/end_users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"end_user": {
"end_user_id": "b583ca8b-13c9-474f-8eeb-488a6716e128",
"is_portfolio": true,
"name": "Company Name Inc.",
"profit_and_loss_layout": "<unknown>"
}
}
'{
"end_user": {
"end_user_id": "b583ca8b-13c9-474f-8eeb-488a6716e128",
"confidence": 0.42,
"created": "2025-10-15T20:46:06.502685",
"criteria": [
{
"context": "higher_is_better",
"currency": "<string>",
"date_range": "last_180_days",
"description": "The number of unique transactions with a timestamp",
"group": "data_quality",
"label": "unique_transactions",
"status": "not_available",
"unit": "n",
"value": 42.42
}
],
"data_sources": [
{
"type": "pdf",
"status": "new"
}
],
"heron_id": "eus_EfFhjRsuMDxHCEN5Y2V6PV",
"is_portfolio": true,
"last_processed_at": "2025-11-26T20:46:06.502977",
"last_updated": "2025-11-26T20:46:06.502724",
"name": "Company Name Inc.",
"profit_and_loss_layout": "<unknown>",
"status": "ready"
}
}Create a new end user. If transactions have previously been sent for this end_user_id, use PUT end_users to update instead.
curl --request POST \
--url https://app.herondata.io/api/end_users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"end_user": {
"end_user_id": "b583ca8b-13c9-474f-8eeb-488a6716e128",
"is_portfolio": true,
"name": "Company Name Inc.",
"profit_and_loss_layout": "<unknown>"
}
}
'{
"end_user": {
"end_user_id": "b583ca8b-13c9-474f-8eeb-488a6716e128",
"confidence": 0.42,
"created": "2025-10-15T20:46:06.502685",
"criteria": [
{
"context": "higher_is_better",
"currency": "<string>",
"date_range": "last_180_days",
"description": "The number of unique transactions with a timestamp",
"group": "data_quality",
"label": "unique_transactions",
"status": "not_available",
"unit": "n",
"value": 42.42
}
],
"data_sources": [
{
"type": "pdf",
"status": "new"
}
],
"heron_id": "eus_EfFhjRsuMDxHCEN5Y2V6PV",
"is_portfolio": true,
"last_processed_at": "2025-11-26T20:46:06.502977",
"last_updated": "2025-11-26T20:46:06.502724",
"name": "Company Name Inc.",
"profit_and_loss_layout": "<unknown>",
"status": "ready"
}
}Show child attributes
id defined by user; links to the end_user_id for transactions
1 - 140"b583ca8b-13c9-474f-8eeb-488a6716e128"
Whether the end user is part of a lending portfolio
true
Name of end user; may help to improve categorisation accuracy
128"Company Name Inc."
OK
Show child attributes
id defined by user; links to the end_user_id for transactions
1 - 140"b583ca8b-13c9-474f-8eeb-488a6716e128"
Aggregated confidence for the end user across all transactions; between 0 and 1
0.42
When the end user was created in Heron system
"2025-10-15T20:46:06.502685"
List of scorecard metrics
Show child attributes
Context for how to interpret the metric, e.g., whether a higher value is 'better' than a lower value
higher_is_better, lower_is_better, "higher_is_better"
The ISO currency code for metric, where applicable
Metric date range
latest, last_30_days, last_90_days, last_120_days, last_180_days, last_365_days, next_30_days, next_60_days, next_90_days, next_180_days, last_1_calendar_months, last_3_calendar_months, last_4_calendar_months, last_6_calendar_months, last_12_calendar_months, last_15_calendar_months, last_24_calendar_months, last_1_full_calendar_months, last_2_full_calendar_months, last_3_full_calendar_months, last_6_full_calendar_months, last_12_full_calendar_months, last_60_days, last_45_days, last_2_calendar_months "last_180_days"
Description of metric
"The number of unique transactions with a timestamp"
The type of metric
data_quality, processing_quality, balance, profit_and_loss, debt, risk_flag, forecast, heron, ml_feature "data_quality"
Metric label, slugified
"unique_transactions"
either 'calculated' or 'not_available' depending on the requested date range vs. date range of the data
available, partially_available, not_available, "not_available"
The unit of measurement for metric
n, day, ratio, amount, weekday, array, probability "n"
The metric value
42.42
List of data source summaries for the end user
Show child attributes
Data source type
api, csv, pdf, integration_link, legacy, legacy_pdf, legacy_integration_link "pdf"
Status of the data source entity, where applicable (e.g. pdfs, integration links)
new, parsing, parsed, processed, human_reviewing, approved, rejected, failed, transactions_loaded, transactions_unloaded, pending, active, syncing, erroring, sync_disabled, deleted_in_plaid, unknown "new"
Unique id for end user generated by Heron
"eus_EfFhjRsuMDxHCEN5Y2V6PV"
Whether the end user is part of a lending portfolio
true
When the end user was last successfully processed in Heron system
"2025-11-26T20:46:06.502977"
When the end user was last updated in Heron system
"2025-11-26T20:46:06.502724"
Name of end user; may help to improve categorisation accuracy
128"Company Name Inc."
Status of end user; 'ready' triggers async processing, 'review_requested' triggers manual review request
new, ready, processed, reviewed, review_requested, failed "ready"
Was this page helpful?