POST
/
api
/
end_users
curl --request POST \
  --url https://app.herondata.io/api/end_users \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "end_user": {
    "crm_sync_result": {
      "crm_record_url": "<string>",
      "error_message": "<string>",
      "heron_id": "<string>",
      "name": "<string>",
      "occurred_at": "2023-11-07T05:31:56Z",
      "provider": "<string>",
      "result": "success"
    },
    "end_user_id": "aa9a5fc0-b76d-42f6-baa4-57720087f802",
    "files": [
      {
        "file_class": "<string>",
        "filename": "<string>",
        "heron_id": "<string>",
        "renamed_filename": "<string>"
      }
    ],
    "is_portfolio": true,
    "name": "Company Name Inc.",
    "policy_evaluations": [
      "passed"
    ],
    "profit_and_loss_layout": "<any>"
  }
}'
{
  "end_user": {
    "confidence": 0.42,
    "created": "2025-03-04T17:04:45.036344",
    "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": "<any>"
      }
    ],
    "data_sources": [
      {
        "status": "new",
        "type": "pdf"
      }
    ],
    "end_user_id": "aa9a5fc0-b76d-42f6-baa4-57720087f802",
    "heron_id": "eus_eax7aztRyuAq5wvtsBZZSQ",
    "is_portfolio": true,
    "last_processed_at": "2025-04-15T17:04:45.036555",
    "last_updated": "2025-04-15T17:04:45.036373",
    "name": "Company Name Inc.",
    "profit_and_loss_layout": "<any>",
    "status": "ready"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
end_user
object

Response

201 - application/json
OK
end_user
object