Knowledge
The Knowledge operations of the Hub REST API (10 operations).
bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
namespace?stringstatus?stringworkspaceId?stringlimit?stringoffset?stringEntries
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/knowledge'[ { "id": "string", "key": "string", "value": null, "namespace": "string", "slug": "string", "status": "string", "workspaceId": "string", "author": "string", "createdAt": "string", "updatedAt": "string" }]bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
key*string1 <= lengthvalue?unknownnamespace?stringslug?stringstatus?stringworkspaceId?|uuidauthor?stringCreated
application/json- response
id*stringkey*stringvalue?unknownArbitrary JSON payload.
namespace?string|nullslug?string|nullstatus?stringworkspaceId?string|nullauthor?string|nullcreatedAt?string|updatedAt?string|curl -X POST 'https://pod.example.com/api/hub/knowledge' \ -H 'Content-Type: application/json' \ -d '{ "key": "string"}'{ "id": "string", "key": "string", "value": null, "namespace": "string", "slug": "string", "status": "string", "workspaceId": "string", "author": "string", "createdAt": "string", "updatedAt": "string"}Full-text search knowledge entries
DeprecatedbearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
q?stringquery?stringworkspaceId?stringlimit?stringMatches
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/knowledge/search'[ { "id": "string", "key": "string", "value": null, "namespace": "string", "slug": "string", "status": "string", "workspaceId": "string", "author": "string", "createdAt": "string", "updatedAt": "string" }]bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
query*string1 <= lengthworkspaceId?stringprojectId?stringlimit?integer1 <= value <= 100compare?booleanparseOnly?booleanRouted retrieval result
application/json- response
query*stringroutedTo*array<string>intent*stringprimary*stringanswers*array<>degraded*array<string>understanding*verdict*string"confident""ambiguous""empty"pending?spaces?|comparison?curl -X POST 'https://pod.example.com/api/hub/knowledge/search' \ -H 'Content-Type: application/json' \ -d '{ "query": "string"}'{ "query": "string", "routedTo": [ "string" ], "intent": "string", "primary": "string", "answers": [ { "substrate": "string", "items": [ { "property1": null, "property2": null } ], "status": "ok" } ], "degraded": [ "string" ], "understanding": { "property1": null, "property2": null }, "verdict": "confident", "pending": { "notice": "string", "matches": [ { "proposalId": "string", "proposalType": "string", "summary": "string", "entityTitle": "string", "profileSlug": "string", "reviewUrl": "string", "score": 0 } ] }, "spaces": { "matches": [ { "workspaceId": "string", "name": "string", "purpose": "string", "kinds": [ { "slug": "string", "count": 0 } ] } ] }, "comparison": { "baseline": [ { "id": "string", "title": "string", "score": 0, "rank": 0 } ], "horizon": [ { "id": "string", "title": "string", "score": 0, "rank": 0 } ], "diff": { "overlapAtN": 0, "moved": [ { "id": "string", "title": "string", "baselineRank": 0, "horizonRank": 0 } ] } }}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
key*stringworkspaceId?stringEntry
application/json- response
id*stringkey*stringvalue?unknownArbitrary JSON payload.
namespace?string|nullslug?string|nullstatus?stringworkspaceId?string|nullauthor?string|nullcreatedAt?string|updatedAt?string|curl -X GET 'https://pod.example.com/api/hub/knowledge/string'{ "id": "string", "key": "string", "value": null, "namespace": "string", "slug": "string", "status": "string", "workspaceId": "string", "author": "string", "createdAt": "string", "updatedAt": "string"}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
key*stringArchived
application/json- response
success*booleancurl -X DELETE 'https://pod.example.com/api/hub/knowledge/string'{ "success": true}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
key*stringapplication/json- body
value?unknownstatus?stringauthor?stringUpserted
application/json- response
id*stringkey*stringvalue?unknownArbitrary JSON payload.
namespace?string|nullslug?string|nullstatus?stringworkspaceId?string|nullauthor?string|nullcreatedAt?string|updatedAt?string|curl -X PUT 'https://pod.example.com/api/hub/knowledge/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "key": "string", "value": null, "namespace": "string", "slug": "string", "status": "string", "workspaceId": "string", "author": "string", "createdAt": "string", "updatedAt": "string"}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
userId?stringstartEntityId*stringmaxDepth?stringrelationshipTypes?stringTraversal results
application/json- response
[index: integer]?curl -X GET 'https://pod.example.com/api/hub/graph/traverse?startEntityId=string'[ { "property1": null, "property2": null }]bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
query*string1 <= lengthworkspaceId?stringprojectId?stringlimit?integer1 <= value <= 100compare?booleanparseOnly?booleanRouted retrieval result (identical to /knowledge/search)
application/json- response
query*stringroutedTo*array<string>intent*stringprimary*stringanswers*array<>degraded*array<string>understanding*verdict*string"confident""ambiguous""empty"pending?spaces?|comparison?curl -X POST 'https://pod.example.com/api/hub/knowledge/ask' \ -H 'Content-Type: application/json' \ -d '{ "query": "string"}'{ "query": "string", "routedTo": [ "string" ], "intent": "string", "primary": "string", "answers": [ { "substrate": "string", "items": [ { "property1": null, "property2": null } ], "status": "ok" } ], "degraded": [ "string" ], "understanding": { "property1": null, "property2": null }, "verdict": "confident", "pending": { "notice": "string", "matches": [ { "proposalId": "string", "proposalType": "string", "summary": "string", "entityTitle": "string", "profileSlug": "string", "reviewUrl": "string", "score": 0 } ] }, "spaces": { "matches": [ { "workspaceId": "string", "name": "string", "purpose": "string", "kinds": [ { "slug": "string", "count": 0 } ] } ] }, "comparison": { "baseline": [ { "id": "string", "title": "string", "score": 0, "rank": 0 } ], "horizon": [ { "id": "string", "title": "string", "score": 0, "rank": 0 } ], "diff": { "overlapAtN": 0, "moved": [ { "id": "string", "title": "string", "baselineRank": 0, "horizonRank": 0 } ] } }}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
query?string1 <= lengthquestion?string1 <= lengthworkspaceId?stringprojectId?stringlimit?integer1 <= value <= 100Synthesized answer with sources
application/json- response
answer*string|nullsources*array<>routedTo*array<string>degraded*array<string>spaces?|error?stringfailure?curl -X POST 'https://pod.example.com/api/hub/knowledge/answer' \ -H 'Content-Type: application/json' \ -d '{}'{ "answer": "string", "sources": [ { "substrate": "string", "id": "string", "title": "string" } ], "routedTo": [ "string" ], "degraded": [ "string" ], "spaces": { "matches": [ { "workspaceId": "string", "name": "string", "purpose": "string", "kinds": [ { "slug": "string", "count": 0 } ] } ] }, "error": "string", "failure": { "code": "string", "message": "string", "retryable": true }}