Create Contact Memory
Memory
Create Contact Memory
Create a memory record for a contact scoped to a persona or agent number. If a record already exists for that pair, it is returned instead of creating a duplicate.
POST
Create Contact Memory
Headers
Your API key for authentication.
Body Parameters
The unique identifier of the contact.
The persona ID for memory scoping. Either
persona_id or agent_number is required.The agent phone number for memory scoping. Either
persona_id or agent_number is required.Response
Response containing the memory and creation status.
The contact memory object.
Unique identifier for the contact memory.
Organization ID this memory belongs to.
Contact ID this memory is associated with.
Persona ID this memory is scoped to (null if agent-based).
Agent phone number this memory is scoped to (null if persona-based).
Rolling summary (empty for new memories).
Structured facts (empty object for new memories).
Recent messages array (empty for new memories).
Whether a new memory was created (true) or an existing one was returned (false).
Error array (null on success).
Docs for agents: llms.txt