Download a PaletteAI profile version by file name
GET/v2/download/profile/ai/:versionid/:type/:slug
Returns a short-lived signed download URL: a 302 redirect by default, or a JSON body {"url": "...", "expires_at": "..."} when the request sends Accept: application/json. Downloads a file for one PaletteAI profile version: the profile archive (download_url) or its signature (signature_bin_url). versionid is the profile version id (profileVersionId in PaletteAI profile responses) and is unique on its own. The artifact.url fields in PaletteAI profile responses already point here. Requires a token. Gated and private profiles also require your organization to be entitled to one of the profile's entitledClasses. The trailing slug is the file name shown in the browser and on error pages; it does not change which file is returned. Errors are returned as the v2 JSON error envelope when the request accepts application/json or application/problem+json, otherwise as an HTML page.
Request
Responses
- 200
- 302
- 400
- 401
- 403
- 404
- 500
Signed download URL; returned when the Accept header asks for application/json (browsers get a 302 instead)
Redirect to the signed artifact URL (browser/default)
Response Headers
Absolute signed URL for the requested artifact
Invalid versionid or type (JSON error envelope when Accept is application/json or application/problem+json, otherwise an HTML page)
Login required (JSON error envelope or HTML page)
Entitlement missing for gated or private profile (JSON error envelope or HTML page)
AI profile version or artifact URL missing (JSON error envelope or HTML page)
Internal server error (JSON error envelope or HTML page)