---
title: "Grant plugin access"
method: POST
path: "/v1/plugins/{pluginId}/access"
tags: ["Plugins"]
---

# Grant plugin access

`POST /v1/plugins/{pluginId}/access`

Creates or reactivates one access grant for a plugin.

## Path parameters

- `pluginId` string, typeid, required

## Request body

- object
  - `orgMembershipId` string, typeid — Den TypeID with 'om_' prefix and a 26-character base32 suffix.
  - `teamId` string, typeid — Den TypeID with 'tem_' prefix and a 26-character base32 suffix.
  - `orgWide` boolean
  - `role` 'viewer' | 'editor' | 'manager', required

## Response `201`

Plugin access grant created successfully.

- PluginArchAccessGrantMutationResponse
  - `ok` true, required
  - `item` PluginArchAccessGrant, required
    - `id` union, required
      - string, typeid — Den TypeID with 'coa_' prefix and a 26-character base32 suffix.
      - string, typeid — Den TypeID with 'pag_' prefix and a 26-character base32 suffix.
      - string, typeid — Den TypeID with 'mag_' prefix and a 26-character base32 suffix.
      - string, typeid — Den TypeID with 'cia_' prefix and a 26-character base32 suffix.
    - `orgMembershipId` string, typeid, nullable, required — Den TypeID with 'om_' prefix and a 26-character base32 suffix.
    - `teamId` string, typeid, nullable, required — Den TypeID with 'tem_' prefix and a 26-character base32 suffix.
    - `orgWide` boolean, required
    - `role` 'viewer' | 'editor' | 'manager', required
    - `createdByOrgMembershipId` string, typeid, required — Den TypeID with 'om_' prefix and a 26-character base32 suffix.
    - `createdAt` string, date-time, required
    - `removedAt` string, date-time, nullable, required

## Other responses

- `400` — The plugin access request was invalid.
- `401` — The caller must be signed in to manage plugin access.
- `403` — The caller lacks permission to manage plugin access.
- `404` — The plugin could not be found.

---

[API](https://skmtc.net/openworklabs/apis/den-api.md) · [All operations](https://skmtc.net/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openworklabs/den-api/versions/805150503452/schema)
