---
title: "Generate an access token for an organization workspace"
method: POST
path: "/org-workspaces/{id}/access-token"
tags: ["OrgWorkspaces"]
---

# Generate an access token for an organization workspace

`POST /org-workspaces/{id}/access-token`

## Path parameters

- `id` string, required

## Request body

- GenerateAccessTokenRequestDto
  - `isAdmin` boolean — Whether to generate an admin token
  - `tenantId` string — Customer ID to scope the token to
  - `tenantKey` string — Customer key to scope the token to (resolved to tenantId)
  - `name` string — Name for the generated token
  - `fields` object — Custom fields to include in the token

## Response `200`

- GenerateAccessTokenResponseDto
  - `token` string, required — The generated access token

---

[API](https://skmtc.net/integration/apis/membrane-api.md) · [All operations](https://skmtc.net/integration/apis/membrane-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/integration/membrane-api/revisions/1db9c5a3d78c/schema)
