Importer Service Reference
Importer HTTP API endpoints, authentication, and recommended call sequence
This section documents the Importer HTTP API. All endpoints require
JWT authentication and are served on port 8080. For the underlying
collections and the async-job lifecycle, see Architecture.
partition_id or job_id. The HTTP API
emits the JSON names instead, so an actual response carries partitionId and
jobId. Convert accordingly when you read a response or build a request body.Authentication
All endpoints require a JWT in the Authorization header:
Authorization: Bearer <jwt_token>
The service handles token renewal automatically for long-running imports.
Read-only endpoints (GET /v1/jobs and GET /v1/jobs/{job_id}) validate the
token without renewing it.
Synchronous HTTP errors
These status codes apply to the immediate HTTP response of an API call:
| Condition | HTTP |
|---|---|
Missing or malformed Authorization header | 401 |
| Token rejected | 401 |
| Database access denied after auth | 403 |
Invalid rag_mode, partition_id, vector params, or missing file_name | 400 |
| Unexpected server fault | 500 |
POST /v1/recluster while the import lock is held | 503 |
Many business failures (busy importer, multi-file validation) return
HTTP 200 with "success": false in the JSON body. See
Error Handling for the full table.
Endpoints
Endpoints are served at http://<host>:8080.
| Method | Path | Description | Details |
|---|---|---|---|
GET | /v1/health | Check service readiness | Import Files |
POST | /v1/import | Import a single file | Import Files |
POST | /v1/import-multiple | Import a batch of files | Import Files |
POST | /v1/recluster | Rebuild the community layer of one partition | Incremental Updates |
GET | /v1/jobs/{job_id} | Get the status of a multi-file import or recluster job | Import Files |
GET | /v1/jobs | List recent jobs | Import Files |
A replica can only run one import or recluster job at a time, under a single
global lock that is not keyed by partition. While one job holds the lock, calls
to the other endpoints are rejected. How they are rejected depends on the
endpoint you call. The import endpoints return HTTP 200 with
"success": false, whereas /v1/recluster returns HTTP 503 (gRPC
UNAVAILABLE). See
Concurrency.
There is no endpoint for deleting or updating a document. AutoGraph removes and replaces documents across all three layers. See Deleting a document and Updating a document.
Recommended call sequence
Standalone single file
GET /v1/health- confirm the service is ready.POST /v1/import- submit the file. Returnssuccess: trueand starts processing in the background. Nojob_idis returned.- Monitor via the platform service status until the status reaches
service_completedor a terminal failure status. - Query ArangoDB or call AutoRAG against the resulting knowledge graph.
Standalone batch
GET /v1/healthPOST /v1/import-multiple- save the returnedjob_id.- Poll
GET /v1/jobs/{job_id}(for example, every 10-30 seconds) untilis_terminalistrue. - On
service_completed, verify the graph; on failure, readcurrent_status.messageand consult Error Handling.
Via AutoGraph
When AutoGraph drives the pipeline, you do not call the Importer
directly. AutoGraph orchestration submits one import per partition, sets
partition_id from the corpus build, and sets rag_mode from the RAG
Strategizer’s assignment. Monitor via the AutoGraph orchestration status and
the platform service status. See
AutoGraph Integration.
Reclustering
- Call
POST /v1/reclusterand save the returnedjob_id. - Poll
GET /v1/jobs/{job_id}untilis_terminalistrue.
See Incremental Updates for the request fields,
what the operation rebuilds, and how to troubleshoot problems. To remove or
replace a document, use AutoGraph’s
POST /v1/graph/delete
or
POST /v1/graph/update.
Related references
- Incremental Updates: Reclustering, and how documents are removed and replaced in Layer 3.
- Parameters: Complete request parameter reference.
- Error Handling: Troubleshooting, known limitations, and error markers in job status messages.
- Limits and Quotas: Concurrency, size, timeout, and provider limits, and which of them are configurable.
- API Reference : Full machine-readable API reference.
