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.
-
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>. -
You request the download path with your token. Artifact Studio responds with an HTTP
302redirect to a short-lived signed URL, so the examples use the curl--locationflag 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.
-
Open a terminal session and set the base URL of the Artifact Studio API.
export ARTIFACT_STUDIO_API="https://artifact-studio.spectrocloud.com" -
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 Value | Product |
|---|---|
palette | Palette |
vertex | Palette VerteX |
palette-ai | PaletteAI |
vertex-ai | PaletteAI VerteX |
vm-launchpad-appliance | PaletteAI VM Launchpad |
ai-launchpad-appliance | PaletteAI 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.
-
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 Output4.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.44The response contains 25 versions per page, and its
totalCountfield contains the number of versions. To return up to 50 versions per page, add thelimitquery parameter, such aslimit=50. To request the next page, add thepagequery parameter, such aspage=2. The latest version has itsis_latestfield set totrue. -
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 as4.10.48.Example Outputhelm /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.zstThe components that are available depend on the product and version.
Component Description 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. -
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, replaceslimisowith the component name, such ashelmfor the Helm chart. -
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.
-
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. -
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.
-
List the available versions. Each entry in the version list includes the variant in its
specfield.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 Output4.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 -
List the components of the variant that you want to download. You must add the
fipsandcsiquery parameters to select the variant. A request without them returns HTTP400.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 as4.10.25,false, andpiraeus. -
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, replaceslimisowith the component name, such aszstfor the content bundle. -
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.
-
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' -
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 as1.3.0. To select a different component, replaceslimisowith the component name. PaletteAI Inference Launchpad versions also include thepalette-clicomponent, which is the Palette CLI binary for Linux, and one component for each model recipe, such asmodel-recipe-glm-5.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
-
Search the pack catalog, and list the versions of the pack. The following command lists the versions of the
cni-calicopack.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 Output3.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-dailyThe 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 displaystruefor a FIPS build. Both builds also download with the same filename, so save each build in a separate directory. -
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 theidof the build from the previous step, such ascni-calico-3.33.1-nonfips-daily. To download the signature of the pack instead, replacedownload_urlwithsignature_bin_url. -
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
-
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 asaks.Example Outputaks-kubernetes-azurecni-azure-disk v3.0.0 true df6e99601205b65fce2ff423
aks-kubernetes-azurecni-azure-disk v3.0.0 false 30bac11b59265e8049a0faa9 -
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 theidof the profile version. To download the signature of the profile instead, replacedownload_urlwithsignature_bin_url. -
Download the file to the current directory. Artifact Studio delivers the profile as a
.tar.gzarchive.curl --fail --location --remote-name \
--header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
"$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"
PaletteAI Profile Bundle
-
Search the PaletteAI profile bundle catalog to find the
idof 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 asvllm.Example OutputvLLM Prod Stack (Airgap FIPS) 2338878944348059895
vLLM Prod Stack 1341128424677211653 -
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 theidfrom the previous step. A PaletteAI profile bundle has variants for different environments, such asConnectedandAirgap FIPS, and each variant has its own versions. The output displays the variant, the profile bundle version, the Palette version, and theprofileVersionIdof each version.Example OutputConnected 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 -
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 theidof the profile bundle, and replace<profile-version-id>with theprofileVersionIdof the variant and version that you want to download. To download the signature of the profile bundle instead, replace.artifact.urlwith.artifact.signatureBinUrl. -
Download the file to the current directory.
curl --fail --location --remote-name \
--header "Authorization: Bearer $ARTIFACT_STUDIO_TOKEN" \
"$ARTIFACT_STUDIO_API$DOWNLOAD_PATH"
Validate
-
List the files in the current directory, and confirm that each file that you downloaded is present.
ls -l -
Calculate the SHA-256 checksum of the downloaded file.
sha256sum <file-name>Replace
<file-name>with the name of the downloaded file. On macOS, useshasum --algorithm 256 <file-name>. -
Compare the output with the checksum in the catalog response. The field that contains the checksum depends on the artifact.
Artifact Checksum Field Installer The checksumfield of the component.Pack The sha256field of the pack version.PaletteAI profile bundle The artifact.checksumfield of the profile bundle version.The cluster profile catalog does not include checksums. To check a cluster profile, verify its signature.
-
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 returnsVerified 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.
{
"error": {
"code": "INVALID_REQUEST",
"message": "Invalid product parameter",
"request_id": "b0f01baf-61cc-40c3-a96c-576da4a4345a",
"details": { "field": "product" }
}
}
| Status | Cause |
|---|---|
400 | A query parameter is missing or not valid, such as an unknown product value, or a PaletteAI VM Launchpad request without fips and csi. |
401 | The request to a download endpoint has no token, or the token is not valid. |
403 | Your 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. |
404 | The 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 Value | Artifact Class in Artifact Studio |
|---|---|
artifact:packs | Packs |
artifact:packs.vertex | Palette VerteX packs |
artifact:packs.lts | LTS packs |
artifact:packs.partner | Partner packs |
artifact:profiles.hub | Profile bundles |
artifact:profiles.hub.vertex | Palette VerteX profile bundles |
artifact:profiles.ai | PaletteAI profiles |
artifact:profiles.ai.vertex | PaletteAI VerteX profiles |
artifact:installers.palette | Palette installers |
artifact:installers.vertex | Palette VerteX installers |
artifact:installers.palette.ai | PaletteAI installers |
artifact:installers.vertex.ai | PaletteAI VerteX installers |
artifact:installers.launchpad.vm | PaletteAI VM Launchpad |
artifact:installers.launchpad.vm.vertex | PaletteAI VerteX VM Launchpad |
artifact:installers.launchpad.ai | PaletteAI Inference Launchpad |
artifact:installers.launchpad.ai.vertex | PaletteAI VerteX Inference Launchpad |
Next Steps
-
Review every endpoint and its parameters in the Artifact Studio API V2 reference.
-
Learn how Spectro Cloud signs artifacts in Artifact Signatures.