---
title: "JOIN codes of the organization (org_admin)"
method: GET
path: "/api/orgs/{orgId}/invite-codes"
tags: ["invites"]
---

# JOIN codes of the organization (org_admin)

`GET /api/orgs/{orgId}/invite-codes`

## 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}/invite-codes`
- Auth: none declared

## Path parameters

- `orgId` string, required

## Response `200`

Codes.

- object
  - `codes` object[], required
    - `id` string, required
    - `orgId` string, required
    - `code` string, required
    - `role` 'org_admin' | 'member'
    - `groupIds` string[]
    - `maxUses` integer
    - `uses` integer
    - `expiresAt` string, date-time
    - `revokedAt` string, date-time
    - `createdBy` string, required
    - `createdAt` string, date-time, 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)
