NylorunDocsBeta
Runtime APIArtifacts

Download a folder version as a zip

GET
/v1/artifacts/{artifactId}/versions/{version}/zip

Streams the folder's files as one zip archive (deflated, UTF-8 names), read from the Object store as it goes. A file artifact is a 400.

Authorization

headerAuthorizationBearer <token>

An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).

Path Parameters

artifactId*string
version*string

A version number, or latest

Header Parameters

Nylorun-Protocol*string

The protocol version, 8

Nylorun-Subject?string

The person an application key acts for

Nylorun-Scopes?string

The subject's space-separated scopes; required with a subject

Response Body

The zip archive

response?fileapplication/zip
Formatbinary
import { createClient } from "@nylorun/agents";const client = await createClient();const response = await client.artifacts.zip("art_123", { version: 2 });
"string"