초대 목록 조회
조직에 대기 중인 초대들의 목록을 가져오는 API예요. 누구에게 초대를 보냈고 어떤 역할을 제안했는지 확인할 때 사용해요.
출처: 문서
본문
조직의 대기 중인 초대 목록을 반환해요.
curl -L https://api.turso.tech/v2/organizations/{organizationSlug}/invites \
-H 'Authorization: Bearer ***'
import { createClient } from "@tursodatabase/api";
const turso = createClient({
org: "mycompany",
token: "",
});
const invites = await turso.organizations.listInvites();
OpenAPI
openapi: 3.0.1
info:
title: Turso Platform API
description: API description here
license:
name: MIT
version: 0.1.0
servers:
- url: https://api.turso.tech
description: Turso's Platform API
security: []
paths:
/v2/organizations/{organizationSlug}/invites:
get:
summary: List Invites
description: Returns a list of pending invites for the organization.
operationId: listOrganizationInvitesV2
parameters:
- $ref: '#/components/parameters/organizationSlug'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
invites:
type: array
items:
$ref: '#/components/schemas/InviteV2'
components:
parameters:
organizationSlug:
in: path
name: organizationSlug
required: true
schema:
type: string
description: The slug of the organization or user account.
schemas:
InviteV2:
type: object
properties:
id:
type: integer
description: The unique ID for the invite.
example: 1
email:
type: string
description: The email of the person invited.
example: [email protected]
role:
type: string
enum:
- admin
- member
- viewer
description: The assigned role for the invited user.
example: member
created_at:
type: string
description: >-
The datetime the invite was created in [ISO
8601](https://en.wikipedia.org/wiki/ISO_8601) format.
example: '2023-01-01T00:00:00Z'