---
title: "Grant marketplace access"
method: POST
path: "/v1/marketplaces/{marketplaceId}/access"
tags: ["Marketplaces"]
---

# Grant marketplace access

`POST /v1/marketplaces/{marketplaceId}/access`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/marketplaces/{marketplaceId}/access`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Creates or reactivates one access grant for a marketplace.

## Path parameters

- `marketplaceId` 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`

Marketplace 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 marketplace access request was invalid.
- `401`: The caller must be signed in to manage marketplace access.
- `403`: The caller lacks permission to manage marketplace access.
- `404`: The marketplace could not be found.

## Changes

- **2026-10-01** `df3754993784`: 1 info
  - added the optional property `message` to the response with the `400` status
- **2026-09-11** `bb8ff73e4ad3`: 2 info
  - the endpoint scheme security `bearerAuth` was added to the API
  - the endpoint scheme security `denApiKey` was added to the API
- **2026-09-04** `d3984673ccd1`: 1 info
  - added the optional property `capability` to the response with the `400` status
- **2026-08-20** `93df40e2efd5`: 8 info
  - removed the pattern `^mkt_.*` from the `path` request parameter `marketplaceId`
  - removed the pattern `^om_.*` from the request property `orgMembershipId`
  - removed the pattern `^tem_.*` from the request property `teamId`
  - added `subschema #1, subschema #2, subschema #3, subschema #4` to the `item/id` response property `anyOf` list for the response status `201`
  - …4 more

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/marketplaces/:marketplaceId/access/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) · [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/e6eb4e5ce8a3?raw)
