Skip to main content
POST
/
api
/
GraphMemory
/
add
Add to Graph
curl --request POST \
  --url https://app.recallio.ai/api/GraphMemory/add \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": "<string>",
  "user_id": "<string>",
  "project_id": "<string>"
}
'
{
  "deleted_entities": [
    {
      "id": "<string>",
      "name": "<string>",
      "entity_type": "<string>",
      "user_id": "<string>",
      "project_id": "<string>",
      "embedding": [
        123
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "added_entities": [
    {
      "id": "<string>",
      "name": "<string>",
      "entity_type": "<string>",
      "user_id": "<string>",
      "project_id": "<string>",
      "embedding": [
        123
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "relationships": [
    {
      "id": "<string>",
      "source": "<string>",
      "destination": "<string>",
      "relationship_type": "<string>",
      "user_id": "<string>",
      "project_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Body

Graph add request with data and metadata

data
string | null
user_id
string | null
project_id
string | null

Response

Created

deleted_entities
object[] | null
added_entities
object[] | null
relationships
object[] | null