---
title: "Create a Recovery Link"
method: POST
path: "/recovery/link"
tags: ["admin"]
---

# Create a Recovery Link

`POST /recovery/link`

This endpoint creates a recovery link which should be given to the user in order for them to recover
(or activate) their account.

## Request body

- CreateRecoveryLink
  - `expires_in` string — Link Expires In The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`.
  - `identity_id` string, uuid4, required

## Response `200`

recoveryLink

- RecoveryLink
  - `expires_at` string, date-time — Recovery Link Expires At The timestamp when the recovery link expires.
  - `recovery_link` string, required — Recovery Link This link can be used to recover the account.

## Other responses

- `400` — genericError
- `404` — genericError
- `500` — genericError

---

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