Retrieval Service | Kamiwaza Docs

Version: 1.0.1 (Latest)

The retrieval service exposes a job-based API for accessing dataset content. It supports inline responses for small datasets, server-sent events (SSE) for streaming, and gRPC for high-throughput consumers.

Supported sources

Retrieval adapters cover these data sources:

Core workflow

  1. Create a retrieval job
  2. Poll job status (optional for streaming or gRPC)
  3. Stream results (SSE) or connect via gRPC

Create a job

POST /api/retrieval/jobs

Key fields:

Get job status

GET /api/retrieval/jobs/{job_id}

Returns status, progress, and dataset metadata. If the job uses gRPC, the response includes a short-lived token and endpoint.

Stream results (SSE)

GET /api/retrieval/jobs/{job_id}/stream

Streams data as text/event-stream chunks. Use this for larger datasets or when you need progressive delivery.

gRPC transport

If a job response includes a grpc block, use the token and endpoint with the retrieval gRPC service:

The gRPC stream returns data chunks with metadata and a terminal marker.

Access control

Retrieval requests are authorized against the dataset URN. Users must have viewer (or higher) access to the dataset to create or view jobs.

Notes