---
title: "Get permission for a Contentlet"
method: GET
path: "/api/v1/permissions/_bycontent"
tags: ["Permissions"]
---

# Get permission for a Contentlet

`GET /api/v1/permissions/_bycontent`

Retrieves permissions for a specific contentlet by its identifier. Only admin users can access this endpoint. Optionally filter by permission type (READ, WRITE, PUBLISH).

## Query parameters

- `contentletId` string, required
- `type` string

## Response `200`

- ResponseEntityPermissionView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` PermissionView[]
    - `id` integer
    - `inode` string
    - `roleId` string
    - `permission` 'READ' | 'USE' | 'EDIT' | 'WRITE' | 'PUBLISH' | 'EDIT_PERMISSIONS' | 'CAN_ADD_CHILDREN'
    - `type` string
    - `bitPermission` boolean
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `403` — If not admin user

---

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