---
title: "Retrieve a view only link"
method: GET
path: "/registrations/{registration_id}/view_only_links/{link_id}/"
tags: ["Registrations"]
---

# Retrieve a view only link

`GET /registrations/{registration_id}/view_only_links/{link_id}/`

## Request

- Base URL: `https://api.test.osf.io/v2`
- URL: `https://api.test.osf.io/v2/registrations/{registration_id}/view_only_links/{link_id}/`
- Auth: none declared

Retrieves the details of a view only link created from this registration.
#### Returns
Returns a JSON object with a `data` key containing the representation of the requested view only link, if the request is successful.

If the request is unsuccessful, an `errors` key containing information about the failure will be returned. Refer to the [list of error codes](#tag/Errors-and-Error-Codes) to understand why this request may have failed.
#### Permissions

View only links on a registration, public or private, are readable and writeable only by users that are administrators on the registration.

## Path parameters

- `registration_id` string, required
- `link_id` string, required

## Response `200`

OK

---

[API](https://skmtc.dev/osf/apis/osf-apiv2-documentation.md) - [All operations](https://skmtc.dev/osf/apis/osf-apiv2-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/osf/apis/osf-apiv2-documentation/revisions/3c5164c707eb?raw)
