본문 바로가기
WIKI 기술 지식 베이스

현재 구독

원문 보기 위키 갱신

조직의 현재 구독 상세를 가져오는 API예요. 어떤 플랜을 쓰고 있는지, 월간/연간 중 어떤 주기로 청구되는지 확인할 수 있어요.

출처: 문서

본문

조직의 현재 구독 상세를 반환해요.

curl -L https://api.turso.tech/v1/organizations/{organizationSlug}/subscription \
  -H 'Authorization: Bearer ***'

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:
  /v1/organizations/{organizationSlug}/subscription:
    get:
      summary: Current Subscription
      description: Returns the current subscription details for the organization.
      operationId: getOrganizationSubscription
      parameters:
        - $ref: '#/components/parameters/organizationSlug'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  subscription:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the plan for the current subscription.
                        example: scaler
                      overages:
                        type: boolean
                        description: Whether overages are enabled for the organization.
                      plan:
                        type: string
                        description: The name of the plan for the current subscription.
                        example: scaler
                      timeline:
                        type: string
                        description: Whether the plan is billed monthly or yearly.
                        example: monthly
components:
  parameters:
    organizationSlug:
      in: path
      name: organizationSlug
      required: true
      schema:
        type: string
      description: The slug of the organization or user account.

더 알아보기 (Learn more)