---
title: "Get Data Set Grant"
method: GET
path: "/dataSetGrants/{dataSetId}"
tags: ["Data Set Grant"]
---

# Get Data Set Grant

`GET /dataSetGrants/{dataSetId}`

## Request

- Base URL: `https://data.lucid.app`
- URL: `https://data.lucid.app/dataSetGrants/{dataSetId}`
- Auth: OAuth 2
  - Authorization code: `https://lucid.app/oauth2/authorize`
  - Token URL: `https://api.lucid.co/oauth2/token` scopes: `data-service.admin`

Gets the requested data set grant if the access tokens are valid and the user has access to the data set. Note that the id in the URI is the number at the end of the data set grant's uri, not the identifier field of the object.

## Path parameters

- `dataSetId` integer, required

## Response `200`

OK with Data Set Grant

- object
  - `uri` string, required: URI of the data set grant
  - `dataSet` string, required: Link to get the data set for the grant
  - `permissionType` string, required: Type of permission granted
  - `identifier` string, required: The document id, account id, or user id matching the permission type
  - `role` string, required: Available types are: 'edit' and 'view'

---

[API](https://skmtc.dev/lucid/apis/lucid-data-api.md) - [All operations](https://skmtc.dev/lucid/apis/lucid-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lucid/apis/lucid-data-api/revisions/c14ed29dbeab?raw)
