---
title: "Obtain a general-purpose redirect URL"
method: GET
path: "/api/temp_url"
tags: ["System"]
---

# Obtain a general-purpose redirect URL

`GET /api/temp_url`

Returns a temporary URL that responds with a 302 redirect to the
given URL. Useful for hiding the final destination from the browser.

## Query parameters

- `url` string, required
- `expire` integer
- `one_time` 0 | 1

## Response `200`

Temporary redirect URL.

- string

## Other responses

- `400` — Bad request.
- `403` — Access denied.

---

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