curl --request GET \
--url https://api.example.com/v1/prompts/:owner/:name/versions/:version/download{
"404 Not Found (Prompt)": {},
"404 Not Found (Version)": {},
"500 Internal Server Error": {}
}Download a specific version’s tarball via presigned URL redirect
curl --request GET \
--url https://api.example.com/v1/prompts/:owner/:name/versions/:version/download{
"404 Not Found (Prompt)": {},
"404 Not Found (Version)": {},
"500 Internal Server Error": {}
}1.0.0, 2.3.15)302 Found redirect to a presigned URL where the tarball can be downloaded.
application/gzip.tar.gz (gzip-compressed tarball)curl -L https://api.prompts.dev/v1/prompts/alice/code-review/versions/1.0.0/download \
-o code-review-1.0.0.tar.gz
HTTP/1.1 302 Found
Location: https://r2.cloudflare.com/bucket/alice/code-review/1.0.0.tar.gz?X-Amz-Signature=...
Content-Length: 0
{
"error": "NOT_FOUND",
"message": "prompt not found"
}
{
"error": "NOT_FOUND",
"message": "version not found"
}
{
"error": "INTERNAL_ERROR",
"message": "failed to generate download url"
}
-L flag with curl).