Skip to content

Resolve Entity

POST/v1/core/entities/resolve

Resolves one or more identifiers into a canonical entity. If the entity does not exist, it will be created. If identifiers match multiple entities, they will be intelligently merged.

Request

json
{
  "identifiers": {
    "email": "alice@volt.io",
    "stripe_cus": "cus_A1B2C3"
  },
  "display_name": "Alice Smith", 
  "entity_type": "customer",
  "metadata": {}
}

Parameters

NameTypeRequiredDescription
identifiersmap[string]stringYesMap of source to identifier values (e.g. {"email": "x@y.com"})
display_namestringNoOptional human-readable name for UI
entity_typestringNoE.g. user, customer, issue
metadataobjectNoCustom JSON payload

Response

Returns the canonical entity data.

json
{
  "entity_id": "ent_550e8400-e29b-41d4-a716-446655440000",
  "display_name": "Alice Smith",
  "entity_type": "customer",
  "behavioral_score": 0.0,
  "successful_interactions": 0,
  "total_interactions": 0,
  "identifiers": [
    {
      "id": "ident_123",
      "identifier_type": "email",
      "identifier_value": "alice@volt.io",
      "source": "email"
    }
  ]
}

Released under the MIT License.