Skip to content
Navigation

Import a previously exported memory envelope

Import an exported envelope into the caller's own memory graph.

The envelope's source_user_id is remapped to the authenticated user. MERGE semantics: records with UUIDs already present in the target graph are skipped. Embedding regeneration runs asynchronously; poll GET /memories/import/{import_id} to track progress.

POST
https://truememory-api.mvstg.com/memories/import
View as Markdown

Authorization

  • HTTPBearerHTTPrequired

Header parameters

  • X-On-Behalf-Ofoptional

    One of the following:

    • string
    • null
  • X-External-User-Idoptional

    One of the following:

    • string
    • null
  • X-App-Idoptional

    One of the following:

    • string
    • null

Request bodyJSONrequired

  • schema_versionstringrequired
  • source_user_idstringrequired
  • exported_atoptional

    One of the following:

    • string
    • null
  • countsoptional

    One of the following:

    • map<integer>
    • null
  • entity_nodesoptionalarray ofobject
  • entity_edgesoptionalarray ofobject
  • episodesoptionalarray ofobject

Returns

202

Successful Response

JSON
  • import_idstringrequired

    Poll GET /memories/import/{import_id} with this.

  • nodes_writtenintegerrequired
  • edges_writtenintegerrequired
  • episodes_writtenintegerrequired
  • edges_skippedarray ofstringrequired

    Ids of edges that were not imported.

  • statusoptionalstring
    default: "processing"

422

Validation Error
JSON
  • detailoptionalarray ofobject
    • locarray ofrequired

      One of the following:

      • string
      • integer
    • msgstringrequired
    • typestringrequired
    • inputoptionalunknown
    • ctxoptionalobject

Type to search…

↑↓ navigate↵ selectEsc close