For Developers

Create Link

POST https://ed.link/api/v2/teams/:team_id/sources/:source_id/links

Creates a new link between two team-owned sources and queues an enrichment job.

Permissions

Requires the links.update system permission.

Parameters

ParameterTypeRequiredDescription
:team_idUUIDYesThe ID of the team.
:source_idUUIDYesThe ID of the primary source.

Request Body

PropertyTypeRequiredDescription
primary_source_idUUIDYesPrimary source identifier.
secondary_source_idUUIDYesSecondary source identifier to link.
priorityNumberNoEnrichment priority ordering (higher values take precedence).
propertiesObjectNoMatching rules and field mapping overrides.
permissionsArrayNoScoped permission IDs allowed during linking.

Sample Request

const response = await axios.post(
    `https://ed.link/api/v2/teams/${team_id}/sources/${source_id}/links`,
    {
        primary_source_id: source_id,
        secondary_source_id: '1c7a216b-4e09-4d24-8f47-c0e815617a22',
        priority: 1
    },
    {
        headers: {
            authorization: `Bearer ${user_session_token}`,
            'content-type': 'application/json'
        }
    }
);

Sample Response

{
    "$data": {
        "id": "d132a0c4-954f-4d32-8ea7-a36c93427db9",
        "primary_source_id": "7b5a19cb-9ea8-4b71-9b16-564ec5ea0b12",
        "secondary_source_id": "1c7a216b-4e09-4d24-8f47-c0e815617a22",
        "priority": 1
    }
}