curl --request POST \
--url https://app.herondata.io/api/integrations/{heron_id}/links \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"access_token": "access-sandbox-de3ce8ef-33f8-452c-a685-8671031fc0f6",
"end_user_id": "e89114bc-ffc3-4a7f-9650-e67ce532ac8b",
"item_id": "M5eVJqLnv3tbzdngLDp9FL5OlDNxlNhlE55op",
"end_user_name": "Acme Corp"
}
'{
"link": {
"item_id": "M5eVJqLnv3tbzdngLDp9FL5OlDNxlNhlE55op",
"created": "2020-01-01T00:00:00Z",
"data_source_heron_id": "<string>",
"last_successful_sync": "2020-01-01T00:00:00Z",
"last_updated": "2020-01-01T00:00:00Z",
"status": "active",
"status_message": "[ITEM_LOGIN_REQUIRED] the login details of this item have changed (credentials, MFA, or required user action) and a user login is required to update this information. use Link's update mode to restore the item to a good state",
"type": "plaid_assets_report"
}
}Create a Link for an active Integration every time a customer connects their bank. In Plaid, this is a Plaid Link every time a customer connects their bank. For Plaid, call this after exchanging a public token for an Item access_token.
curl --request POST \
--url https://app.herondata.io/api/integrations/{heron_id}/links \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"access_token": "access-sandbox-de3ce8ef-33f8-452c-a685-8671031fc0f6",
"end_user_id": "e89114bc-ffc3-4a7f-9650-e67ce532ac8b",
"item_id": "M5eVJqLnv3tbzdngLDp9FL5OlDNxlNhlE55op",
"end_user_name": "Acme Corp"
}
'{
"link": {
"item_id": "M5eVJqLnv3tbzdngLDp9FL5OlDNxlNhlE55op",
"created": "2020-01-01T00:00:00Z",
"data_source_heron_id": "<string>",
"last_successful_sync": "2020-01-01T00:00:00Z",
"last_updated": "2020-01-01T00:00:00Z",
"status": "active",
"status_message": "[ITEM_LOGIN_REQUIRED] the login details of this item have changed (credentials, MFA, or required user action) and a user login is required to update this information. use Link's update mode to restore the item to a good state",
"type": "plaid_assets_report"
}
}The generated token that grants access to the bank (this is encrypted in transit and at-rest with a custom key)
"access-sandbox-de3ce8ef-33f8-452c-a685-8671031fc0f6"
A unique identifier for your end user (customer) generated by you
"e89114bc-ffc3-4a7f-9650-e67ce532ac8b"
Unique identifier for each bank connection made by your end users. In Plaid this is the 'item_id'.
"M5eVJqLnv3tbzdngLDp9FL5OlDNxlNhlE55op"
An human readable name for this end user, like the company legal name
"Acme Corp"
Created
Show child attributes
Unique identifier for each bank connection made by your end users. In Plaid this is the 'item_id'.
"M5eVJqLnv3tbzdngLDp9FL5OlDNxlNhlE55op"
When the integration link was created in Heron system
"2020-01-01T00:00:00Z"
When the integration link was last successfully synced
"2020-01-01T00:00:00Z"
When the integration link was last updated in Heron system
"2020-01-01T00:00:00Z"
The integration link status
pending, active, syncing, erroring, sync_disabled, deleted_in_plaid "active"
A message describing the 'erroring' status of the integration link
"[ITEM_LOGIN_REQUIRED] the login details of this item have changed (credentials, MFA, or required user action) and a user login is required to update this information. use Link's update mode to restore the item to a good state"
The integration link type, inherited from the integration: plaid_assets_report or plaid_integration
"plaid_assets_report"
Was this page helpful?