How Memory IDs Are Returned
Memory Nodes are created automatically at the end of every successful generation job. You do not call a separate endpoint to create them. Thememory_id for a completed job is returned inside the generation.success webhook payload under data.memory_id:
memory_id value (mem_X1y2Z3w4 in this example) in your database alongside the job record. You will pass it back to the Generation API in any subsequent refinement calls.
Iterating with a Memory ID
To refine an existing generation, include thememory_id parameter in the body of a new POST /v1/brands/generate request. The new prompt should describe only the change you want — you do not need to repeat the entire original brief.
The memory_id Parameter on Generate
The unique identifier of an existing Memory Node (prefix
mem_) from a previous successful generation. When provided, the AI Engine loads the referenced stylistic context and applies the new prompt as an incremental refinement. The resulting job produces a new Memory Node, allowing you to chain refinements in sequence. If omitted, the generation starts from scratch using only the provided prompt.Example: Iterative Refinement
The following example shows a two-step workflow. The first call creates the initial brand identity for a coffee shop. The second call references the resulting Memory Node to adjust only the typography, while preserving the indigo color palette and logo form established in step one. Step 1 — Initial generation:generation.success webhook fires, you receive memory_id: "mem_X1y2Z3w4". Now use that ID to refine the typography in a second call:
Step 2 — Refine typography using the Memory Node:
memory_id produces its own new Memory Node. This means you can chain refinements in a linear sequence — or branch multiple times from the same parent node to produce parallel variations.
Use Cases
Memory is most valuable when you need to make targeted adjustments without disrupting everything the AI Engine established in a prior run. Common patterns include:Listing Memory Nodes for a Project
GET https://api.nomiq.com/v1/projects/{project_id}/memory
Returns a chronologically ordered list of all Memory Nodes belonging to a project, most recent first. Use this endpoint to inspect the full revision history of a project or to look up a memory_id you did not store at webhook delivery time.
The unique identifier of the project whose Memory Nodes you want to list.
Maximum number of Memory Nodes to return. Defaults to
10, maximum 100.A Memory Node ID cursor for pagination. Returns the page of results after this node.
Next Steps
Generation API
Dispatch brand generation jobs and pass
memory_id to iterate on existing outputs.Prompt Engineering
Learn how to write effective refinement prompts that work well with Memory Nodes.