GET
/
download
/
{digest}
curl --request GET \
  --url https://cp.chainloop.dev/download/{digest} \
  --header 'Authorization: Bearer <token>'
"Your download will begin shortly..."

Authorizations

Authorization
string
header
required

Bearer token for authentication

Headers

Accept
string

Content type preferences. Affects redirect behavior:

  • Contains "text/html": Browser-friendly redirect with delay and message
  • Other values: Direct 302 redirect (suitable for CLI tools like curl)
Example:

"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"

Path Parameters

digest
string
required

The full cryptographic digest of the artifact including algorithm prefix. Currently supports SHA-256 hashes only.

Required string length: 71

Response

302 - text/plain

Successful redirect to artifact download URL. Response behavior depends on the Accept header:

For browsers (Accept contains "text/html"):

  • Uses Refresh header with 1-second delay
  • Returns user-friendly message in response body
  • Provides better UX for browser downloads

For CLI tools (other Accept values):

  • Uses standard Location header for immediate redirect
  • Empty response body
  • Suitable for automated tools like curl

The response is of type string.

Example:

"Your download will begin shortly..."