# Create a file preview URL

### Create a file preview URL

`POST /api/v1/files/access`

Operation ID: `createFileAccessUrl`

Mints a preview URL that redirects to a short-lived signed GET so the browser can open a file stored with POST /api/v1/files. The preview URL stays valid until expiresAt. Do not pass it to LinkedIn.

**Request body** (required)

- `url` (string · uri, required)

**200**: A preview URL and when it stops redirecting. Each visit gets a fresh signature.

- `downloadUrl` (string, required): Preview URL on needle.app that redirects to a short-lived signed GET. Do not send this to LinkedIn.
- `expiresAt` (string · date-time, required): When the preview URL stops redirecting. Each visit mints a fresh signature until then.
- `requestId` (string · uuid, required): Id of this request, for support and troubleshooting

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
