Import
The Import operations of the Hub REST API (4 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.
application/json- body
userId*string1 <= lengthworkspaceId?stringuuidsource*string"obsidian""markdown""csv""bookmark"relationType?string1 <= length <= 64aiStructure?booleanfalseitems*array<>1 <= items <= 2000sessionId?stringuuidprojectId?|uuidforceSession?booleanpreviewOnly?booleanOperations + proposalId for preview-before-apply
application/json- response
[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/import/analyze' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string", "source": "obsidian", "items": [ { "path": "string", "content": "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
userId*string1 <= lengthworkspaceId?stringuuidsource*string"obsidian""markdown""csv""bookmark"operations?array<>items <= 8000sessionId?stringuuidprojectId?|uuididempotencyKey?stringlength <= 200proposalId?stringuuidCreated + linked counts
application/json- response
[key: string]?unknowncurl -X POST 'https://pod.example.com/api/hub/import/apply' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string", "source": "obsidian"}'{ "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
workspaceId?stringuuidsource*string"obsidian""markdown""csv""bookmark"items*array<>1 <= items <= 4000relationType?string1 <= length <= 64aiStructure?booleanfalsesessionId?stringuuidprojectId?|uuidforceSession?booleanplaybookId?stringuuidplaybookParams?previewOnly?booleanuserId?string1 <= lengthCorpus queued
application/json- response
queued*truetruejobId*string|nullitemCount*numberworkspaceId*string|nullcurl -X POST 'https://pod.example.com/api/hub/import/enqueue-corpus' \ -H 'Content-Type: application/json' \ -d '{ "source": "obsidian", "items": [ { "path": "string", "content": "string" } ]}'{ "queued": true, "jobId": "string", "itemCount": 0, "workspaceId": "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.
jobId*string^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/iuuidJob state
application/json- response
jobId*stringstate*stringcreatedOn*string||nullcompletedOn*string||nulloutput*|nullcurl -X GET 'https://pod.example.com/api/hub/import/corpus-job/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "jobId": "string", "state": "string", "createdOn": "string", "completedOn": "string", "output": { "proposalId": "string", "workspaceId": "string", "filesProcessed": 0, "filesFailed": 0, "qualityScore": 0, "findings": [ { "id": "string", "severity": "string", "message": "string" } ] }}