Memory API (v1) - Identity Resolution Settings endpoints
Legal information
Conversation Memory, including the APIs, may use artificial intelligence or machine learning technologies and is subject to the terms of the Predictive and Generative AI/ML Features Addendum. For more details on AI usage and data, see the AI Nutrition Facts.
Conversation Memory is not a HIPAA Eligible Service or PCI compliant and should not be enabled in workflows that are subject to HIPAA or PCI.
Conversation Memory is not intended for use with sensitive information about individuals. Twilio does not control what information comes from conversation channels and relies on you to ensure the data in customer profiles aligns with our acceptable use policy. Twilio does have limited guardrails in the form of a prompt exclusion that is designed to provide a minimal screening against inclusion of GDPR special category data. As a reminder our profile technology uses generative artificial intelligence. Because generative artificial intelligence can make mistakes, review all outputs to ensure that the profile is correct.
Retrieve Identity Resolution Settings
Update Identity Resolution Settings
GET/v1/ControlPlane/Stores/{storeId}/IdentityResolutionSettings
Base url: https://memory.twilio.com (base url)
These settings determine how Customer Memory will use identifiers for searching, merging, and resolving profiles.
Some settings can only take on their default values and are not yet available to change, but coming soon.
A unique Memory Store ID using Twilio Type ID (TTID) format
mem_store_00000000000000000000000000Pattern: ^mem_(store|service)_[0-7][0-9a-z]{25}$Identity resolution settings retrieved successfully
List of identifier types and their resolution settings.
1Max items: 15Priority list of identifiers to locate profiles to apply new data to, or for determining if two existing profiles should merge. Rules are evaluated in order.
- If no rule matches against existing profiles, a new profile will be created.
- If a rule matches to a single existing profile, the profile will be updated.
- If a rule matches to multiple existing profiles, those existing profiles will be merged.
["email","whatsapp","phone"]Min items: 1Max items: 15The current version number of the Identity Resolution Settings. Incremented on each successful update.
3Minimum: 11// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchIdentityResolutionSettings() {11const identityResolutionSetting = await client.memory.v112.identityResolutionSettings("mem_store_00000000000000000000000000")13.fetch();1415console.log(identityResolutionSetting.identifierConfigs);16}1718fetchIdentityResolutionSettings();
Response
1{2"identifierConfigs": [3{4"idType": "idType",5"matchingAlgo": "exact",6"matchingThreshold": 75,7"limit": 100,8"limitPolicy": "fifo",9"enforceUnique": true,10"normalization": "email"11}12],13"matchingRules": [14"matchingRules"15],16"version": 317}
PUT/v1/ControlPlane/Stores/{storeId}/IdentityResolutionSettings
Base url: https://memory.twilio.com (base url)
Update the identity resolution settings for this memory store, which determine how Customer Memory will use identifiers for searching, merging, and resolving profiles.
Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
"eyJpZCI6ImFuX2lkIiwidiI6MX0"Max length: 100A unique Memory Store ID using Twilio Type ID (TTID) format
mem_store_00000000000000000000000000Pattern: ^mem_(store|service)_[0-7][0-9a-z]{25}$application/jsonList of identifier types and their resolution settings.
1Max items: 15Priority list of identifiers to locate profiles to apply new data to, or for determining if two existing profiles should merge. Rules are evaluated in order.
- If no rule matches against existing profiles, a new profile will be created.
- If a rule matches to a single existing profile, the profile will be updated.
- If a rule matches to multiple existing profiles, those existing profiles will be merged.
["email","whatsapp","phone"]Min items: 1Max items: 151// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function updateIdentityResolutionSettings() {11const identityResolutionSetting = await client.memory.v112.identityResolutionSettings("mem_store_00000000000000000000000000")13.update({14identifierConfigs: [15{16idType: "idType",17matchingAlgo: "exact",18matchingThreshold: 75,19limit: 100,20limitPolicy: "fifo",21enforceUnique: true,22normalization: "email",23},24],25});2627console.log(identityResolutionSetting.message);28}2930updateIdentityResolutionSettings();
Response
1{2"message": "message",3"statusUrl": "statusUrl"4}