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

# Get permission for a Contentlet

`GET /api/v1/permissions/_bycontent`

## Query parameters

- `contentletId` string
- `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/anzworldline-solutions/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anzworldline-solutions/dotcms-rest-api/revisions/0f38cbc3bd36/schema)
