artifacts ยท version 0.1.0

Download a run artifact

GET /api/artifacts/download

Streams a generated SDK bundle, docs preview, report file, or authenticated source input file for a run. Pass the run id plus an artifact key from `run.artifactManifest.artifacts[]`. Source input artifacts such as `input.openapi` and `input.config` require the same workspace membership and artifact entitlement as generated artifacts.

Request

GET https://sourced.sh/api/artifacts/download

Parameters

NameLocationRequiredDescription
runIdqueryYesRun id that owns the artifact. string
keyqueryYesArtifact storage key from `run.artifactManifest.artifacts[]`. Generated artifacts and authenticated source input artifacts are downloadable by workspace members with artifact access. string

Responses

200

Artifact contents.

application/octet-stream

type: string

400

401

402

403

404

410

The artifact has expired.

application/json

Error:
  type: object
  required: error
  properties:
    error (required): string
      Stable machine-readable error code.
    message: string
      Optional human-readable description.

Back to version index