packs.download
POST/packs/{slug}/download
Issues a download link for a piece's latest file pack. The link expires after 15 minutes. Needs a key from an account with subscriber access.
Parameters
| Parameter | In | Description |
|---|---|---|
slug | path | Required. Slug of the file pack (packSlug in the metadata), for example ui-craft. |
Request
curl -X POST "https://api.modernengineer.dev/packs/ui-craft/download" \
-H "Authorization: Bearer $SE_KEY"Response
{
"expiresAt": "2026-09-27T10:15:00.000Z",
"url": "https://signed-link.invalid/…"
}Errors
| Status | Error | When |
|---|---|---|
| 401 | unauthenticated | The API key is missing or invalid. Comes with a WWW-Authenticate header. |
| 403 | forbidden | The key's account has no subscriber access. |
| 400 | invalid_input | A parameter is missing or invalid, for example a locale other than vi or en. |
| 404 | not_found | No file pack has this slug. |
| 429 | too_many_requests | More than 50 download and visual links in 24 hours for this account. |