---
updatedAt: 2025-10-02T13:19:12.000Z
agentTools:
  projectIndex: https://developer.alloy.com/public/llms.txt
---

# Multiple External Entity IDs

Alloy supports having multiple External IDs assigned to a single Entity record. This feature is helpful in scenarios where multiple systems may need to interact with Alloy using their own identifiers that differ across each system.

Each External ID assigned to a given Entity still must be unique to that Entity and cannot be re-used across multiple Entity records. Additionally, one of the External IDs will be designated as the **primary** External ID; the primary designation dictates what's visible in the Alloy UI as well as what's returned in API calls.

You can use any of the External IDs to specify the Entity on requests to the [Events API](https://developer.alloy.com/public/reference/post_events), [Journeys API](https://developer.alloy.com/public/reference/post_journeys-journey-token-applications), [Evaluations API](https://alloy-group.readme.io/public/reference/post_evaluations), and [Entities APIs](https://alloy-group.readme.io/public/reference/get_entities-persons-entity-token).

## How to Assign Multiple IDs

#### Using Person Updated Events

After an Entity record is created, you can use the [Events API](https://developer.alloy.com/public/reference/post_events) to append additional External IDs via `person_updated` or `business_updated` Events.

In your request, you must specify either the Entity Token or an already assigned External ID on your request in addition to the `external_entity_ids[]` field with your multiple identifiers:

```json Specify by Entity Token
{
       "event_type": "person_updated",
       "data": {
          "entity_token": "P-FsGCs0P9aytzrMe7vLVh",
          "external_entity_ids": [
            {
                "external_entity_id": "yourExternalEntityId",
                "designation": "primary"
            },
            {
                "external_entity_id": "yourOtherExternalEntityId"
            }
          ],
          "timestamp": "2024-01-01T00:00:00Z"
       }
}
```
```json Specify by External ID
{
       "event_type": "person_updated",
       "data": {
          "external_entity_id": "yourExternalEntityId",
          "external_entity_ids": [
            {
                "external_entity_id": "yourExternalEntityId",
                "designation": "primary"
            },
            {
                "external_entity_id": "yourOtherExternalEntityId"
            }
        ],
          "timestamp": "2024-01-01T00:00:00Z"
       }
}
```
```json Specify by External ID & Change Primary
{
       "event_type": "person_updated",
       "data": {
          "external_entity_id": "yourExternalEntityId",
          "external_entity_ids": [
            {
                "external_entity_id": "yourExternalEntityId"
            },
            {
                "external_entity_id": "yourOtherExternalEntityId",
                "designation": "primary"
            }
        ],
          "timestamp": "2024-01-01T00:00:00Z"
       }
}
```

#### Using Entity Merging

When [merging two Entities](https://developer.alloy.com/public/docs/entity-merging) , the resulting Entity will automatically inherit the External IDs for both Entities associated with the merge. The primary External ID will be inherited from the `primary` Entity specified during the merge.