Api reference
Entities
List Entities
Path Parameters
org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
namespace_id*Namespace Id
Query Parameters
entity_type?string|null
limit?Limit
Default
100Range
1 <= value <= 1000Header Parameters
authorization?string|null
Response Body
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/entities"{
"total": 0,
"has_more": false,
"next_cursor": "string",
"entities": []
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create Entity
Path Parameters
org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
namespace_id*Namespace Id
Header Parameters
authorization?string|null
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/entities" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"entity_id": "string",
"workspace_id": "string",
"namespace_id": "string",
"name": "string",
"entity_type": "person",
"description": "string",
"aliases": [],
"relations": [],
"source_memory_ids": [],
"importance": 0.5,
"mention_count": 0,
"last_referenced_at": "string",
"metadata": {},
"tags": [],
"is_indexed": false,
"created_at": "",
"updated_at": ""
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Entity
Path Parameters
org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
namespace_id*Namespace Id
entity_id*Entity Id
Header Parameters
authorization?string|null
Response Body
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/entities/string"{
"entity_id": "string",
"workspace_id": "string",
"namespace_id": "string",
"name": "string",
"entity_type": "person",
"description": "string",
"aliases": [],
"relations": [],
"source_memory_ids": [],
"importance": 0.5,
"mention_count": 0,
"last_referenced_at": "string",
"metadata": {},
"tags": [],
"is_indexed": false,
"created_at": "",
"updated_at": ""
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Delete Entity
Path Parameters
org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
namespace_id*Namespace Id
entity_id*Entity Id
Header Parameters
authorization?string|null
Response Body
application/json
application/json
curl -X DELETE "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/entities/string"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Update Entity
Path Parameters
org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
namespace_id*Namespace Id
entity_id*Entity Id
Header Parameters
authorization?string|null
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/entities/string" \ -H "Content-Type: application/json" \ -d '{}'{
"entity_id": "string",
"workspace_id": "string",
"namespace_id": "string",
"name": "string",
"entity_type": "person",
"description": "string",
"aliases": [],
"relations": [],
"source_memory_ids": [],
"importance": 0.5,
"mention_count": 0,
"last_referenced_at": "string",
"metadata": {},
"tags": [],
"is_indexed": false,
"created_at": "",
"updated_at": ""
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create Relation
Path Parameters
org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
namespace_id*Namespace Id
Header Parameters
authorization?string|null
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/entities/relations" \ -H "Content-Type: application/json" \ -d '{ "source_entity_id": "string", "target_entity_id": "string", "relation_type": "string" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Traverse Graph
Path Parameters
org_id*Org Id
workspace_id*Workspace Id
app_id*App Id
namespace_id*Namespace Id
entity_id*Entity Id
Query Parameters
depth?Depth
Default
1Range
1 <= value <= 3relation_types?array<string>|null
include_memories?Include Memories
Default
trueHeader Parameters
authorization?string|null
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/entities/string/traverse"{
"root": {
"entity_id": "string",
"workspace_id": "string",
"namespace_id": "string",
"name": "string",
"entity_type": "person",
"description": "string",
"aliases": [],
"relations": [],
"source_memory_ids": [],
"importance": 0.5,
"mention_count": 0,
"last_referenced_at": "string",
"metadata": {},
"tags": [],
"is_indexed": false,
"created_at": "",
"updated_at": ""
},
"connected_entities": [],
"linked_memories": [],
"depth_reached": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}