---
title: "Get library element by UID."
method: GET
path: "/library-elements/{library_element_uid}"
tags: ["library_elements"]
---

# Get library element by UID.

`GET /library-elements/{library_element_uid}`

## Request

- Base URL: `/api` (relative, and the document’s source URL is not known)
- URL: `/api/library-elements/{library_element_uid}`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Returns a library element with the given UID.

## Path parameters

- `library_element_uid` string, required

## Response `200`

(empty)

- LibraryElementResponse
  - `result` LibraryElementDTO
    - `description` string
    - `folderId` integer: Deprecated: use FolderUID instead
    - `folderUid` string
    - `id` integer
    - `kind` integer
    - `meta` LibraryElementDTOMeta
      - `connectedDashboards` integer
      - `created` string, date-time
      - `createdBy` LibraryElementDTOMetaUser
        - `avatarUrl` string
        - `id` integer
        - `name` string
      - `folderName` string
      - `folderUid` string
      - `updated` string, date-time
      - `updatedBy` LibraryElementDTOMetaUser
        - `avatarUrl` string
        - `id` integer
        - `name` string
    - `model` object
    - `name` string
    - `orgId` integer
    - `schemaVersion` integer
    - `type` string
    - `uid` string
    - `version` integer

## Other responses

- `401`: UnauthorizedError is returned when the request is not authenticated.
- `403`: ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
- `404`: NotFoundError is returned when the requested resource was not found.
- `500`: InternalServerError is a general error indicating something went wrong internally.

---

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