---
title: "Gets and returns a temporary archive URL."
method: GET
path: "/archive/{archiveId}"
tags: ["Archives"]
---

# Gets and returns a temporary archive URL.

`GET /archive/{archiveId}`

Creates a new temporary archive URL to allow the visualization or download of an existing archive. The URL created is valid for 10 minutes only! What this API actually does is just returning a 301 with the actual download URL

## Path parameters

- `archiveId` string, required

## Query parameters

- `generatePreview` string

## Response `200`

HTML with the video embedded.

- string

## Other responses

- `301` — Information to download or view the archive file.
- `400` — Unexpected error

## Changes

- **2016-02-17** `87058176d2b5` — 1 warning, 1 info
  - deleted the `path` request parameter `generatePreview`
  - added the new optional `query` request parameter `generatePreview`
- **2015-11-30** `1eaaf5ea2c1a` — 1 breaking, 1 info
  - added the new path request parameter `generatePreview`
  - added the success response with the status `200`
- **2015-11-09** `ac06be808ef7` — 1 info
  - added the non-success response with the status `400`
- **2015-10-17** `24470ca9a646` — 1 warning, 2 info
  - deleted the `path` request parameter `roomName`
  - added the non-success response with the status `301`
  - removed the non-success response with the status `302`
- **2015-10-16** `4a2647871c23` — 2 breaking, 1 info
  - added the new path request parameter `roomName`
  - removed the success response with the status `200`
  - added the non-success response with the status `302`

[Full history](https://skmtc.dev/opentok/apis/opentokrtc-api/changes/archive/:archiveId/get.md)

---

[API](https://skmtc.dev/opentok/apis/opentokrtc-api.md) · [All operations](https://skmtc.dev/opentok/apis/opentokrtc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opentok/opentokrtc-api/revisions/7c588b24fbe6/schema)
