---
title: "Mint a wz_ token pinned to the organization (shown once)"
method: POST
path: "/api/orgs/{orgId}/tokens"
tags: ["tokens"]
---

# Mint a wz_ token pinned to the organization (shown once)

`POST /api/orgs/{orgId}/tokens`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/orgs/{orgId}/tokens`
- Auth: none declared

## Path parameters

- `orgId` string, required

## Request body

- CreateTokenBody
  - `name` string, required
  - `expiresAt` string, date-time
  - `scopes` string[]
  - `channel` string

## Response `201`

Created — the raw token appears only in this response.

- CreatedToken
  - `id` string, required
  - `prefix` string, required
  - `principalId` string, required
  - `orgIdOverride` string
  - `channel` string
  - `allowedTools` string[]
  - `scopes` string[]
  - `expiresAt` string, date-time
  - `revokedAt` string, date-time
  - `lastUsedAt` string, date-time
  - `usageCount` integer
  - `createdAt` string, date-time, required
  - `createdBy` string
  - `name` string
  - `clientId` string
  - `grantId` string
  - `audience` string
  - `token` string, required

## Other responses

- `403`: Insufficient role.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
