Turso Cloud API 參考 介面資源 組織管理
目前訂閱方案
傳回組織目前的訂閱詳細資料。
GET
https://api.turso.tech/v1/organizations/{organizationSlug}/subscription curl -L https://api.turso.tech/v1/organizations/{organizationSlug}/subscription \
-H 'Authorization: Bearer TOKEN'
OpenAPI
openapi: 3.0.1
info:
title: Turso Platform API
description: 此處為 API 說明
license:
name: MIT
version: 0.1.0
servers:
- url: https://api.turso.tech
description: Turso 的 Platform API
security: []
paths:
/v1/organizations/{organizationSlug}/subscription:
get:
summary: 目前訂閱方案
description: 傳回組織目前的訂閱詳細資料。
operationId: getOrganizationSubscription
parameters:
- $ref: '#/components/parameters/organizationSlug'
responses:
'200':
description: 成功回應
content:
application/json:
schema:
type: object
properties:
subscription:
type: object
properties:
name:
type: string
description: 目前訂閱方案的方案名稱。
example: scaler
overages:
type: boolean
description: 是否為組織啟用超額用量。
plan:
type: string
description: 目前訂閱方案的方案名稱。
example: scaler
timeline:
type: string
description: 方案是按月還是按年計費。
example: monthly
components:
parameters:
organizationSlug:
in: path
name: organizationSlug
required: true
schema:
type: string
description: 組織或使用者帳戶的 slug。
同步自官方 Turso 文件倉庫 (
tursodatabase/turso-docs
· MIT 開源授權)
檢視官方原文 ↗