Harbor environments
Import a versioned task collection from Git or an archive, then wait until it is ready.
Enterprise: this feature is gated behind a separate software license.
Create a collection
Harbor environments are available to select customers through early access; contact founders@experientiallabs.ai to request access.
Environments belong to your organization. List existing collections first, or create a named collection. Reusing its name returns the existing collection.
GET/v1/training/environmentsPOST/v1/training/environmentsChoose a task repository and version from the Harbor catalog.
curl --fail-with-body -X POST https://api.staging.experientiallabs.ai/v1/training/environments \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "terminal-tasks"
}'{
"id": "00000000-0000-4000-8000-000000000003",
"name": "terminal-tasks"
}Import tasks
Use the returned environment ID. Pin the Git ref to a commit for reproducible task contents; subpath selects the task directory. This example uses the catalog's Terminal-Bench snapshot.
/v1/training/environments/{environment_id}/versionsThe 202 response is the version object. Poll the version through queued and importing until ready or failed. Only a ready version ID can be sent in environment_version_ids. Keep source_ref for identical retries; use a new reference for a new import.
{
"source_ref": "terminal_tasks_v1",
"source": {
"kind": "git",
"repository_url": "https://github.com/harbor-framework/terminal-bench-2.git",
"ref": "69671fbaac6d67a7ef0dfec016cc38a64ef7a77c",
"subpath": ""
}
}{
"id": "00000000-0000-4000-8000-000000000004",
"environment_id": "00000000-0000-4000-8000-000000000003",
"version": 1,
"status": "queued",
"task_count": null
}Upload your own tasks
For a .tar.gz or .zip Harbor task archive, request a signed upload form.
/v1/training/uploadsPOST the file and every returned fields entry to the returned url as multipart/form-data. Honor max_bytes and the 900-second expiry. Do not forward your platform API key to storage.
After upload succeeds, create a version with source.kind: "upload" and its upload_id. Wait until the version is ready before starting training.
{
"source_ref": "my_tasks_upload_001",
"source": {
"kind": "upload",
"upload_id": "00000000-0000-4000-8000-000000000007"
}
}