---
title: "Restore an expired Temp within its restore window"
method: POST
path: "/temps/{tempId}/restore"
tags: ["Lifecycle"]
---

# Restore an expired Temp within its restore window

`POST /temps/{tempId}/restore`

## Request

- Base URL: `https://api.temp.md`
- URL: `https://api.temp.md/temps/{tempId}/restore`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
- TypeScript: <https://skmtc.dev/temp-md/apis/temp-md-public-api/docs/temps/:tempId/restore/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tempId` string, required

## Response `200`

Successful response

- object

## Other responses

- `403`: Credential lacks access
- `404`: Resource not found
- `410`: Resource expired or recovery window closed
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/temp-md/apis/temp-md-public-api.md) - [All operations](https://skmtc.dev/temp-md/apis/temp-md-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/temp-md/apis/temp-md-public-api/revisions/4753682e1e3a?raw)
