Base URL and schema
Use/api/v1 on your Koonj console origin when it proxies the API. For local development, use http://localhost:8080/api/v1 directly. Open /swagger-ui/start on your server for requests and response schemas, or fetch the generated OpenAPI document at /v3/api-docs. Both paths are relative to the server origin.
Authenticate and select a project
- Get a current Keycloak access token for an account with the permissions needed for the operation. The API verifies the issuer, signature, expiration, and
koonj-serveraudience. Send it asAuthorization: Bearer <access-token>. - Call
POST /api/v1/projects/sessionwith an empty body to initialize the account and list project memberships. Each entry has anidandname. - Send the selected UUID as
X-Koonj-Projectfor catalog, connection, and transfer requests. If you omit it, the API uses your personal default project. Notification settings and delivery history apply across the installation.
Browse the catalog
SetKOONJ_URL to your console origin, without a trailing slash. Set KOONJ_ACCESS_TOKEN and PROJECT_ID to your access token and project UUID.
connectionId to filter by location and pathPrefix to filter by a literal directory prefix such as docs/. Pages use zero-based indexes and include content, page, size, totalElements, and totalPages. The file list accepts sizes from 1 through 200.
Queue an archive
To inspect schemas in Swagger, use Authorize with your access token. In your API client, send the following JSON toPOST /api/v1/transfers/archive using your project header. Replace the example UUIDs with your mounted source and S3 target connection IDs from GET /api/v1/catalog/locations.
202 Accepted. Poll GET /api/v1/transfers/jobs/{jobId} using the returned id. For PARTIAL_FAILURE or FAILED, query GET /api/v1/transfers/jobs/{jobId}/files?failedOnly=true. The job endpoints filter activity by the initiating account and selected project.
Handle errors
Application error responses include
status, error, and message. See the endpoint reference for request parameters, transfer controls, and administration routes.