---
title: "Create a short-lived artifact link"
method: POST
path: "/artifacts/{id}/link"
---

# Create a short-lived artifact link

`POST /artifacts/{id}/link`

## Request

- Base URL: `https://api.openmayhem.ai/v1`
- URL: `https://api.openmayhem.ai/v1/artifacts/{id}/link`
- Auth: HTTP bearer

Verifies ownership and the job modality scope, then returns a five-minute HTTPS link capped by the artifact's own expiry.

## Path parameters

- `id` string, required

## Request body

- object
  - `download` boolean

## Response `200`

Artifact metadata, private URL and expiry.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The key lacks the artifact job's modality scope.
- `404`: Unknown, foreign or expired artifact.

---

[API](https://skmtc.dev/openmayhem/apis/openmayhem-api.md) · [All operations](https://skmtc.dev/openmayhem/apis/openmayhem-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openmayhem/apis/openmayhem-api/revisions/0ea33ad12f21?raw)
