# Links

The Links ressource is related to the approval workflow. It allows you to create approval URLs that will help you manage the request submitted by your end-users.

By default, a confirmation email will be sent to your end-user when you create a Request with a status set to `unverified`. This email contains a Links that will update the request status to `verified` once it is clicked by the end-user. Note that a new Links will be sent if the `lifetime` has expired and a new link will be sent by email. However, you can create your own Links to perform status update behind the scene.

## Create a Link

To create a Link, you can send a POST request on `https://api.didomi.io/dsar/links`.

Currently, we only support status update and you need to set `action` to `request.update`.

The link lifetime is set to `900` seconds (15 min) by default. You can specify the property `lifetime` to change it.

You need to specify the property `redirect_url` to redirect your end-user somewhere, on a specific page of your website for instance.

The property `event` at last should include the new `status` to apply to the request and the `request_id`.

```json
POST https://api.didomi.io/dsar/links?organization_id={{organization_id}}

{
    "action": "request.update",
    "event": {
      "status": "verified",
      "request_id": "String"
    },
    "redirect_url": "String",
    "lifetime": 900
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.didomi.io/api-and-platform/privacy-requests/links.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
