Skip to main content

Download Artifacts with the Artifact Studio API

Use the examples on this page to script downloads from Artifact Studio with curl and jq. The examples include the Palette and Palette VerteX installers, the PaletteAI appliances, packs, and profiles. For the base URL, authentication, and pagination of the API, refer to the Artifact Studio API section of the API introduction.

How Downloads Work​

Each download takes two requests.

  1. You call a catalog endpoint to find the artifact. The response includes a download path for each file of the artifact, such as /v2/download/pack/<version-id>/download_url/<file-name>.

  2. You request the download path with your token. Artifact Studio responds with an HTTP 302 redirect to a short-lived signed URL, so the examples use the curl --location flag to follow the redirect.

Do not store a signed URL for later use. Request the download path again each time that you download a file. To receive the signed URL in a JSON response instead of a redirect, refer to Downloads.

Each catalog item and each of its versions also lists the artifact classes that grant access to it in an entitledClasses field. Refer to Artifact Classes to match these values with the scope of your token.

Prerequisites​

  • An Artifact Studio personal access key or organization access token whose scope includes the artifact classes that you want to download. Refer to Create a Personal Access Key and Create an Organization Access Token.

  • curl and jq installed on the machine that downloads the artifacts.

  • Network access from that machine to artifact-studio.spectrocloud.com.

Set Up Your Environment​

The examples on this page read the base URL and your token from environment variables. Run every command on this page in the same terminal session, because later steps use the variables that earlier steps set.

  1. Open a terminal session and set the base URL of the Artifact Studio API.

    export ARTIFACT_STUDIO_API="https://artifact-studio.spectrocloud.com"
  2. Set your token.

    export ARTIFACT_STUDIO_TOKEN="<access-key>"

    Replace <access-key> with your personal access key or organization access token.

Download an Installer​

The installer endpoints serve the Palette and Palette VerteX installers and the PaletteAI appliances. The product query parameter selects the product.

product ValueProduct
palettePalette
vertexPalette VerteX
palette-aiPaletteAI
vertex-aiPaletteAI VerteX
vm-launchpad-appliancePaletteAI VM Launchpad
ai-launchpad-appliancePaletteAI Inference Launchpad

The following steps download the Palette VerteX appliance ISO. To download Palette, PaletteAI, or PaletteAI VerteX, change the product value in each command. PaletteAI VM Launchpad and PaletteAI Inference Launchpad require extra query parameters. Refer to PaletteAI VM Launchpad and PaletteAI Inference Launchpad.

  1. List the available versions of the product.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions?product=vertex" \
    | jq --raw-output '.versions[] | "\(.version)\t\(.id)"'
    Example Output
    4.10.48	vertex-ubuntu-22.04-calico-piraeus-4.10.48
    4.10.45 vertex-ubuntu-22.04-calico-piraeus-4.10.45
    4.10.44 vertex-ubuntu-22.04-calico-piraeus-4.10.44

    The response contains 25 versions per page, and its totalCount field contains the number of versions. To return up to 50 versions per page, add the limit query parameter, such as limit=50. To request the next page, add the page query parameter, such as page=2. The latest version has its is_latest field set to true.

  2. List the components of the version that you want to download.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions/<version>/binaries?product=vertex" \
    | jq --raw-output '.components | to_entries[] | "\(.key)\t\(.value.url)"'

    Replace <version> with a version from the previous step, such as 4.10.48.

    Example Output
    helm	/v2/download/installer/vertex-ubuntu-22.04-calico-piraeus-4.10.48/helm/vertex-charts.zip
    secureBootMockDer /v2/download/installer/vertex-ubuntu-22.04-calico-piraeus-4.10.48/secureBootMockDer/mok.der
    slimiso /v2/download/installer/vertex-ubuntu-22.04-calico-piraeus-4.10.48/slimiso/vertex-enterprise-slim-4.10-20261113.iso
    zst /v2/download/installer/vertex-ubuntu-22.04-calico-piraeus-4.10.48/zst/palette-vertex-appliance-4.10.48.tar.zst

    The components that are available depend on the product and version.

    ComponentDescription
    slimisoAppliance ISO without bundled content.
    zstContent bundle to use with the appliance ISO.
    helmHelm chart, delivered as a ZIP file.
    secureBootMockDerMachine Owner Key (MOK) for Secure Boot, in DER format.
  3. Save the download path of the component in a variable. The following command selects the appliance ISO.

    DOWNLOAD_PATH=$(curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions/<version>/binaries?product=vertex" \
    | jq --raw-output '.components.slimiso.url')

    Replace <version> with the version that you want to download. To select a different component, replace slimiso with the component name, such as helm for the Helm chart.

  4. Download the file to the current directory.

    curl --fail --location --remote-name \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"

Signature Files​

The appliance ISO, the content bundle, and the Helm chart each have two signature files. In the response from step 2 of Download an Installer, the signatureBinUrl field of a component contains the download path of its binary signature, and the signatureUrl field contains the download path of its signature file.

  1. Save the download path of the binary signature of the appliance ISO in a variable.

    SIGNATURE_PATH=$(curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions/<version>/binaries?product=vertex" \
    | jq --raw-output '.components.slimiso.signatureBinUrl')

    Replace <version> with the version that you downloaded.

  2. Download the binary signature to the current directory. The command removes the query string from the download path to build the filename.

    curl --fail --location \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    --output "$(basename "${SIGNATURE_PATH%%\?*}")" \
    "$ARTIFACT_STUDIO_API$SIGNATURE_PATH"

PaletteAI VM Launchpad​

PaletteAI VM Launchpad versions have FIPS and storage variants.

  1. List the available versions. Each entry in the version list includes the variant in its spec field.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions?product=vm-launchpad-appliance" \
    | jq --raw-output '.versions[] | "\(.version)\t\(.spec.fips)\t\(.spec.csi)\t\(.id)"'
    Example Output
    4.10.25	true	piraeus	vertex-vm-launchpad-ubuntu-22.04-cilium-piraeus-4.10.25
    4.10.25 false portworx palette-vm-launchpad-ubuntu-24.04-cilium-portworx-4.10.25
    4.10.25 false piraeus palette-vm-launchpad-ubuntu-24.04-cilium-piraeus-4.10.25
  2. List the components of the variant that you want to download. You must add the fips and csi query parameters to select the variant. A request without them returns HTTP 400.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions/<version>/binaries?product=vm-launchpad-appliance&fips=<fips>&csi=<csi>" \
    | jq --raw-output '.components | to_entries[] | "\(.key)\t\(.value.url)"'

    Replace <version>, <fips>, and <csi> with the values of a variant from step 1, such as 4.10.25, false, and piraeus.

  3. Save the download path of the component in a variable. The following command selects the appliance ISO.

    DOWNLOAD_PATH=$(curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions/<version>/binaries?product=vm-launchpad-appliance&fips=<fips>&csi=<csi>" \
    | jq --raw-output '.components.slimiso.url')

    Replace <version>, <fips>, and <csi> with the values that you used in step 2. To select a different component, replace slimiso with the component name, such as zst for the content bundle.

  4. Download the file to the current directory.

    curl --fail --location --remote-name \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"

PaletteAI Inference Launchpad​

PaletteAI Inference Launchpad versions have one build for each GPU vendor. The response that lists the components groups the builds under the binaries field, with one key for each vendor. To return a single build, add the gpu query parameter with the value amd or nvidia.

  1. List the available versions of PaletteAI Inference Launchpad.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions?product=ai-launchpad-appliance" \
    | jq --raw-output '.versions[].version'
  2. Save the download path of a component in a variable. The following command selects the appliance ISO of the NVIDIA build.

    DOWNLOAD_PATH=$(curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/installers/palette/versions/<version>/binaries?product=ai-launchpad-appliance&gpu=nvidia" \
    | jq --raw-output '.binaries.nvidia.spec.components.slimiso.url')

    Replace <version> with the PaletteAI Inference Launchpad version, such as 1.3.0. To select a different component, replace slimiso with the component name. PaletteAI Inference Launchpad versions also include the palette-cli component, which is the Palette CLI binary for Linux, and one component for each model recipe, such as model-recipe-glm-5.3.

  3. Download the file to the current directory.

    curl --fail --location --remote-name \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"

Example Script​

The following script downloads the Helm chart of the latest Palette VerteX version. To download a different component, change the COMPONENT value. To download Palette, PaletteAI, or PaletteAI VerteX, change the PRODUCT value. The script does not support PaletteAI VM Launchpad or PaletteAI Inference Launchpad, which require extra query parameters.

#!/usr/bin/env bash
set -euo pipefail

: "${ARTIFACT_STUDIO_API:?Set ARTIFACT_STUDIO_API to the base URL of the Artifact Studio API}"
: "${ARTIFACT_STUDIO_TOKEN:?Set ARTIFACT_STUDIO_TOKEN to your access key or token}"

PRODUCT="vertex"
COMPONENT="helm"

VERSION=$(curl --silent --show-error --fail \
--header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
"$ARTIFACT_STUDIO_API/v2/installers/palette/versions?product=$PRODUCT" \
| jq --raw-output '.versions[] | select(.is_latest) | .version')

DOWNLOAD_PATH=$(curl --silent --show-error --fail \
--header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
"$ARTIFACT_STUDIO_API/v2/installers/palette/versions/$VERSION/binaries?product=$PRODUCT" \
| jq --raw-output --arg component "$COMPONENT" '.components[$component].url')

curl --fail --location --remote-name \
--header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
"$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"

echo "Downloaded $(basename "$DOWNLOAD_PATH") for $PRODUCT $VERSION"

Download a Pack​

  1. Search the pack catalog, and list the versions of the pack. The following command lists the versions of the cni-calico pack.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/packs/catalog?q=cni-calico" \
    | jq --raw-output '.data[] | select(.name == "cni-calico") | .versions[] | "\(.version)\t\(.fips)\t\(.id)"'
    Example Output
    3.33.1	true	cni-calico-3.33.1-fips-daily
    3.33.1 false cni-calico-3.33.1-nonfips-daily
    3.33.0 true cni-calico-3.33.0-fips-daily
    3.33.0 false cni-calico-3.33.0-nonfips-daily

    The FIPS and non-FIPS builds of a pack share a version number, so each build has its own id. The second column of the output displays true for a FIPS build. Both builds also download with the same filename, so save each build in a separate directory.

  2. Save the download path of the pack version in a variable.

    DOWNLOAD_PATH=$(curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/packs/catalog?q=cni-calico" \
    | jq --raw-output '.data[].versions[] | select(.id == "<version-id>") | .download_url')

    Replace <version-id> with the id of the build from the previous step, such as cni-calico-3.33.1-nonfips-daily. To download the signature of the pack instead, replace download_url with signature_bin_url.

  3. Download the file to the current directory.

    curl --fail --location --remote-name \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"

Download a Profile​

Cluster profiles and PaletteAI profile bundles have separate catalog endpoints.

Cluster Profile​

  1. Search the cluster profile catalog, and list the versions of each matching profile.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/profiles/hub/catalog?q=<search-term>" \
    | jq --raw-output '.data[] | .name as $name | .versions[] | "\($name)\t\(.version)\t\(.fips)\t\(.id)"'

    Replace <search-term> with part of the profile name, such as aks.

    Example Output
    aks-kubernetes-azurecni-azure-disk	v3.0.0	true	df6e99601205b65fce2ff423
    aks-kubernetes-azurecni-azure-disk v3.0.0 false 30bac11b59265e8049a0faa9
  2. Save the download path of the profile version in a variable.

    DOWNLOAD_PATH=$(curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/profiles/hub/catalog?q=<search-term>" \
    | jq --raw-output '.data[].versions[] | select(.id == "<version-id>") | .download_url')

    Replace <search-term> with the search term from the previous step, and replace <version-id> with the id of the profile version. To download the signature of the profile instead, replace download_url with signature_bin_url.

  3. Download the file to the current directory. Artifact Studio delivers the profile as a .tar.gz archive.

    curl --fail --location --remote-name \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"

PaletteAI Profile Bundle​

  1. Search the PaletteAI profile bundle catalog to find the id of the profile bundle.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/profiles/ai/catalog?q=<search-term>" \
    | jq --raw-output '.data[] | "\(.displayName)\t\(.id)"'

    Replace <search-term> with part of the profile bundle name, such as vllm.

    Example Output
    vLLM Prod Stack (Airgap FIPS)	2338878944348059895
    vLLM Prod Stack 1341128424677211653
  2. List the variants and versions of the profile bundle.

    curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/profiles/ai/<profile-id>" \
    | jq --raw-output '.variants[] | .label as $variant | .versions[] | "\($variant)\t\(.version)\t\(.paletteVersion)\t\(.profileVersionId)"'

    Replace <profile-id> with the id from the previous step. A PaletteAI profile bundle has variants for different environments, such as Connected and Airgap FIPS, and each variant has its own versions. The output displays the variant, the profile bundle version, the Palette version, and the profileVersionId of each version.

    Example Output
    Connected	4.2.1	4.10.33	7dfacb43ecfe3668e0209794
    Connected 3.2.17 4.10.16 35bbfac3029be31c7b65d163
    Airgap FIPS 4.2.0 4.10.33 b4a48176f56f9612887ab3d1
    Airgap FIPS 3.3.18 4.10.16 84331de10d36ef6b8b9130c3
  3. Save the download path of the profile bundle version in a variable.

    DOWNLOAD_PATH=$(curl --silent --show-error --fail \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API/v2/profiles/ai/<profile-id>" \
    | jq --raw-output '.variants[].versions[] | select(.profileVersionId == "<profile-version-id>") | .artifact.url')

    Replace <profile-id> with the id of the profile bundle, and replace <profile-version-id> with the profileVersionId of the variant and version that you want to download. To download the signature of the profile bundle instead, replace .artifact.url with .artifact.signatureBinUrl.

  4. Download the file to the current directory.

    curl --fail --location --remote-name \
    --header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
    "$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"

Validate​

  1. List the files in the current directory, and confirm that each file that you downloaded is present.

    ls -l
  2. Calculate the SHA-256 checksum of the downloaded file.

    sha256sum <file-name>

    Replace <file-name> with the name of the downloaded file. On macOS, use shasum --algorithm 256 <file-name>.

  3. Compare the output with the checksum in the catalog response. The field that contains the checksum depends on the artifact.

    ArtifactChecksum Field
    InstallerThe checksum field of the component.
    PackThe sha256 field of the pack version.
    PaletteAI profile bundleThe artifact.checksum field of the profile bundle version.

    The cluster profile catalog does not include checksums. To check a cluster profile, verify its signature.

  4. Verify the signature of the artifact with OpenSSL and the Spectro Cloud public key file, spectro_public_key.pem.

    openssl dgst -sha256 -verify spectro_public_key.pem -signature <signature-file> <file-name>

    Replace <signature-file> with the binary signature (.sig.bin) that you downloaded, and replace <file-name> with the name of the artifact. A valid signature returns Verified OK. To download the public key file, refer to Verify Downloads.

Error Responses​

The catalog endpoints return errors as JSON. The download endpoints return errors as JSON when the request sets the Accept header to application/json, and as an HTML page otherwise.

Example Response
{
"error": {
"code": "INVALID_REQUEST",
"message": "Invalid product parameter",
"request_id": "b0f01baf-61cc-40c3-a96c-576da4a4345a",
"details": { "field": "product" }
}
}
StatusCause
400A query parameter is missing or not valid, such as an unknown product value, or a PaletteAI VM Launchpad request without fips and csi.
401The request to a download endpoint has no token, or the token is not valid.
403Your organization or your token is not entitled to the artifact. The required_entitlements field of the error details lists the artifact classes that the download requires.
404The version, variant, or component does not exist.

Include the request_id value when you report a problem to Spectro Cloud support.

Artifact Classes​

The entitledClasses field of a catalog item lists the artifact classes that grant access to any of its versions. Each version has its own entitledClasses field, which can be narrower. For example, a FIPS build of a pack requires artifact:packs.vertex, and the non-FIPS build of the same pack requires artifact:packs. To download a version, your token must include at least one of the artifact classes of that version in its scope.

The following table lists the name that Artifact Studio displays for each artifact class when you create a token. The profile class names differ from the terms on this page. The artifact:profiles.hub classes grant access to cluster profiles, and the artifact:profiles.ai classes grant access to PaletteAI profile bundles.

entitledClasses ValueArtifact Class in Artifact Studio
artifact:packsPacks
artifact:packs.vertexPalette VerteX packs
artifact:packs.ltsLTS packs
artifact:packs.partnerPartner packs
artifact:profiles.hubProfile bundles
artifact:profiles.hub.vertexPalette VerteX profile bundles
artifact:profiles.aiPaletteAI profiles
artifact:profiles.ai.vertexPaletteAI VerteX profiles
artifact:installers.palettePalette installers
artifact:installers.vertexPalette VerteX installers
artifact:installers.palette.aiPaletteAI installers
artifact:installers.vertex.aiPaletteAI VerteX installers
artifact:installers.launchpad.vmPaletteAI VM Launchpad
artifact:installers.launchpad.vm.vertexPaletteAI VerteX VM Launchpad
artifact:installers.launchpad.aiPaletteAI Inference Launchpad
artifact:installers.launchpad.ai.vertexPaletteAI VerteX Inference Launchpad

Next Steps​