> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkvite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get subscription

> **Scope:** `plans:read` · **Rate limit:** 250 requests per 5 minutes



## OpenAPI

````yaml /api-reference/openapi.json get /v1/plans
openapi: 3.1.0
info:
  contact:
    email: support@linkvite.io
    name: Linkvite
    url: https://linkvite.io
  description: >-
    The Linkvite REST API. Generated from the cultus source by tools/openapi; do
    not edit by hand.
  title: Linkvite API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.linkvite.io
  - description: Staging
    url: https://api-stg.linkvite.io
security: []
tags:
  - description: Keys for scripts and servers acting as your account.
    name: API keys
  - description: OAuth apps you've built, and the apps you've authorized.
    name: Apps
  - description: Links, notes and files you've saved.
    name: Bookmarks
  - description: Folders of bookmarks, private or shared.
    name: Collections
  - description: Discussion on bookmarks in shared collections.
    name: Comments
  - description: Recommendations and trending links.
    name: Explore
  - description: Downloads and share links for uploaded files.
    name: Files
  - description: Highlights and notes on saved pages.
    name: Highlights
  - description: Shareable links that let people join a collection.
    name: Invite links
  - description: Invitations to collaborate on a collection.
    name: Invites
  - description: Your notifications.
    name: Notifications
  - description: Fetch metadata for a link, and import from other services.
    name: Parser
  - description: Plans and subscription status.
    name: Plans
  - description: Public profiles, their collections, follows and blocks.
    name: Profiles
  - description: RSS feeds that save new items into a collection.
    name: RSS feeds
  - description: Reminders to revisit a bookmark.
    name: Reminders
  - description: Search your library, and image search for covers.
    name: Search
  - description: The feed from people you follow.
    name: Social
  - description: Your account, settings, storage and sessions.
    name: User
paths:
  /v1/plans:
    get:
      tags:
        - Plans
      summary: Get subscription
      description: '**Scope:** `plans:read` · **Rate limit:** 250 requests per 5 minutes'
      operationId: getSubscription
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/Subscription'
                  message:
                    type: string
                  ok:
                    const: true
                    type: boolean
                required:
                  - ok
                  - data
                type: object
          description: Success
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      security:
        - apiKey: []
        - oauth2:
            - plans:read
        - bearer: []
      x-codeSamples:
        - lang: bash
          label: curl
          source: |
            curl -X GET "https://api.linkvite.io/v1/plans" \
              -H "x-api-key: $LINKVITE_API_KEY"
        - lang: javascript
          label: JavaScript
          source: |-
            import {Linkvite} from '@linkvite/js';

            const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
            const data = await linkvite.plans.getSubscription();
        - lang: go
          label: Go
          source: |-
            client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
            data, err := client.Plans.GetSubscription(ctx)
components:
  schemas:
    Subscription:
      properties:
        end_date:
          type: string
        id:
          type: string
        plan:
          items:
            $ref: '#/components/schemas/SubscriptionItem'
          type: array
        status:
          type: string
      required:
        - end_date
        - id
        - plan
        - status
      type: object
    SubscriptionItem:
      properties:
        billing_thresholds:
          anyOf:
            - $ref: '#/components/schemas/SubscriptionItemBillingThresholds'
            - type: 'null'
        created:
          format: int64
          type: integer
        deleted:
          type: boolean
        id:
          type: string
        metadata:
          additionalProperties:
            type: string
          type: object
        object:
          type: string
        plan:
          anyOf:
            - $ref: '#/components/schemas/Plan'
            - type: 'null'
        price:
          anyOf:
            - $ref: '#/components/schemas/Price'
            - type: 'null'
        quantity:
          format: int64
          type: integer
        subscription:
          type: string
        tax_rates:
          items:
            $ref: '#/components/schemas/TaxRate'
          type: array
      required:
        - billing_thresholds
        - created
        - deleted
        - id
        - metadata
        - object
        - plan
        - price
        - quantity
        - subscription
        - tax_rates
      type: object
    ErrorResponse:
      properties:
        error:
          description: Human-readable message.
          type: string
        errors:
          additionalProperties:
            type: string
          description: Field -> problem, for validation errors.
          type: object
        ok:
          const: false
          type: boolean
        request_id:
          description: Quote this when contacting support (also the X-Request-ID header).
          type: string
      required:
        - ok
      type: object
    SubscriptionItemBillingThresholds:
      properties:
        usage_gte:
          format: int64
          type: integer
      required:
        - usage_gte
      type: object
    Plan:
      properties:
        active:
          type: boolean
        aggregate_usage:
          enum:
            - last_during_period
            - last_ever
            - max
            - sum
          type: string
        amount:
          format: int64
          type: integer
        amount_decimal:
          type: number
        billing_scheme:
          enum:
            - per_unit
            - tiered
          type: string
        created:
          format: int64
          type: integer
        currency:
          enum:
            - aed
            - afn
            - all
            - amd
            - ang
            - aoa
            - ars
            - aud
            - awg
            - azn
            - bam
            - bbd
            - bdt
            - bgn
            - bif
            - bmd
            - bnd
            - bob
            - brl
            - bsd
            - bwp
            - bzd
            - cad
            - cdf
            - chf
            - clp
            - cny
            - cop
            - crc
            - cve
            - czk
            - djf
            - dkk
            - dop
            - dzd
            - eek
            - egp
            - etb
            - eur
            - fjd
            - fkp
            - gbp
            - gel
            - gip
            - gmd
            - gnf
            - gtq
            - gyd
            - hkd
            - hnl
            - hrk
            - htg
            - huf
            - idr
            - ils
            - inr
            - isk
            - jmd
            - jpy
            - kes
            - kgs
            - khr
            - kmf
            - krw
            - kyd
            - kzt
            - lak
            - lbp
            - lkr
            - lrd
            - lsl
            - ltl
            - lvl
            - mad
            - mdl
            - mga
            - mkd
            - mnt
            - mop
            - mro
            - mur
            - mvr
            - mwk
            - mxn
            - myr
            - mzn
            - nad
            - ngn
            - nio
            - nok
            - npr
            - nzd
            - pab
            - pen
            - pgk
            - php
            - pkr
            - pln
            - pyg
            - qar
            - ron
            - rsd
            - rub
            - rwf
            - sar
            - sbd
            - scr
            - sek
            - sgd
            - shp
            - sll
            - sos
            - srd
            - std
            - svc
            - szl
            - thb
            - tjs
            - top
            - try
            - ttd
            - twd
            - tzs
            - uah
            - ugx
            - usd
            - uyu
            - uzs
            - vef
            - vnd
            - vuv
            - wst
            - xaf
            - xcd
            - xof
            - xpf
            - yer
            - zar
            - zmw
          type: string
        deleted:
          type: boolean
        id:
          type: string
        interval:
          enum:
            - day
            - month
            - week
            - year
          type: string
        interval_count:
          format: int64
          type: integer
        livemode:
          type: boolean
        metadata:
          additionalProperties:
            type: string
          type: object
        nickname:
          type: string
        object:
          type: string
        product:
          anyOf:
            - $ref: '#/components/schemas/Product'
            - type: 'null'
        tiers:
          items:
            $ref: '#/components/schemas/PlanTier'
          type: array
        tiers_mode:
          enum:
            - graduated
            - volume
          type: string
        transform_usage:
          anyOf:
            - $ref: '#/components/schemas/PlanTransformUsage'
            - type: 'null'
        trial_period_days:
          format: int64
          type: integer
        usage_type:
          enum:
            - licensed
            - metered
          type: string
      required:
        - active
        - aggregate_usage
        - amount
        - amount_decimal
        - billing_scheme
        - created
        - currency
        - deleted
        - id
        - interval
        - interval_count
        - livemode
        - metadata
        - nickname
        - object
        - product
        - tiers
        - tiers_mode
        - transform_usage
        - trial_period_days
        - usage_type
      type: object
    Price:
      properties:
        active:
          type: boolean
        billing_scheme:
          enum:
            - per_unit
            - tiered
          type: string
        created:
          format: int64
          type: integer
        currency:
          enum:
            - aed
            - afn
            - all
            - amd
            - ang
            - aoa
            - ars
            - aud
            - awg
            - azn
            - bam
            - bbd
            - bdt
            - bgn
            - bif
            - bmd
            - bnd
            - bob
            - brl
            - bsd
            - bwp
            - bzd
            - cad
            - cdf
            - chf
            - clp
            - cny
            - cop
            - crc
            - cve
            - czk
            - djf
            - dkk
            - dop
            - dzd
            - eek
            - egp
            - etb
            - eur
            - fjd
            - fkp
            - gbp
            - gel
            - gip
            - gmd
            - gnf
            - gtq
            - gyd
            - hkd
            - hnl
            - hrk
            - htg
            - huf
            - idr
            - ils
            - inr
            - isk
            - jmd
            - jpy
            - kes
            - kgs
            - khr
            - kmf
            - krw
            - kyd
            - kzt
            - lak
            - lbp
            - lkr
            - lrd
            - lsl
            - ltl
            - lvl
            - mad
            - mdl
            - mga
            - mkd
            - mnt
            - mop
            - mro
            - mur
            - mvr
            - mwk
            - mxn
            - myr
            - mzn
            - nad
            - ngn
            - nio
            - nok
            - npr
            - nzd
            - pab
            - pen
            - pgk
            - php
            - pkr
            - pln
            - pyg
            - qar
            - ron
            - rsd
            - rub
            - rwf
            - sar
            - sbd
            - scr
            - sek
            - sgd
            - shp
            - sll
            - sos
            - srd
            - std
            - svc
            - szl
            - thb
            - tjs
            - top
            - try
            - ttd
            - twd
            - tzs
            - uah
            - ugx
            - usd
            - uyu
            - uzs
            - vef
            - vnd
            - vuv
            - wst
            - xaf
            - xcd
            - xof
            - xpf
            - yer
            - zar
            - zmw
          type: string
        currency_options:
          additionalProperties:
            anyOf:
              - $ref: '#/components/schemas/PriceCurrencyOptions'
              - type: 'null'
          type: object
        custom_unit_amount:
          anyOf:
            - $ref: '#/components/schemas/PriceCustomUnitAmount'
            - type: 'null'
        deleted:
          type: boolean
        id:
          type: string
        livemode:
          type: boolean
        lookup_key:
          type: string
        metadata:
          additionalProperties:
            type: string
          type: object
        nickname:
          type: string
        object:
          type: string
        product:
          anyOf:
            - $ref: '#/components/schemas/Product'
            - type: 'null'
        recurring:
          anyOf:
            - $ref: '#/components/schemas/PriceRecurring'
            - type: 'null'
        tax_behavior:
          enum:
            - exclusive
            - inclusive
            - unspecified
          type: string
        tiers:
          items:
            $ref: '#/components/schemas/PriceTier'
          type: array
        tiers_mode:
          enum:
            - graduated
            - volume
          type: string
        transform_quantity:
          anyOf:
            - $ref: '#/components/schemas/PriceTransformQuantity'
            - type: 'null'
        type:
          enum:
            - one_time
            - recurring
          type: string
        unit_amount:
          format: int64
          type: integer
        unit_amount_decimal:
          type: number
      required:
        - active
        - billing_scheme
        - created
        - currency
        - currency_options
        - custom_unit_amount
        - deleted
        - id
        - livemode
        - lookup_key
        - metadata
        - nickname
        - object
        - product
        - recurring
        - tax_behavior
        - tiers
        - tiers_mode
        - transform_quantity
        - type
        - unit_amount
        - unit_amount_decimal
      type: object
    TaxRate:
      properties:
        active:
          type: boolean
        country:
          type: string
        created:
          format: int64
          type: integer
        description:
          type: string
        display_name:
          type: string
        effective_percentage:
          type: number
        id:
          type: string
        inclusive:
          type: boolean
        jurisdiction:
          type: string
        livemode:
          type: boolean
        metadata:
          additionalProperties:
            type: string
          type: object
        object:
          type: string
        percentage:
          type: number
        state:
          type: string
        tax_type:
          enum:
            - amusement_tax
            - communications_tax
            - gst
            - hst
            - igst
            - jct
            - lease_tax
            - pst
            - qst
            - rst
            - sales_tax
            - service_tax
            - vat
          type: string
      required:
        - active
        - country
        - created
        - description
        - display_name
        - effective_percentage
        - id
        - inclusive
        - jurisdiction
        - livemode
        - metadata
        - object
        - percentage
        - state
        - tax_type
      type: object
    Product:
      properties:
        active:
          type: boolean
        attributes:
          items:
            type: string
          type: array
        caption:
          type: string
        created:
          format: int64
          type: integer
        deactivate_on:
          items:
            type: string
          type: array
        default_price:
          anyOf:
            - $ref: '#/components/schemas/Price'
            - type: 'null'
        deleted:
          type: boolean
        description:
          type: string
        id:
          type: string
        images:
          items:
            type: string
          type: array
        livemode:
          type: boolean
        metadata:
          additionalProperties:
            type: string
          type: object
        name:
          type: string
        object:
          type: string
        package_dimensions:
          anyOf:
            - $ref: '#/components/schemas/ProductPackageDimensions'
            - type: 'null'
        shippable:
          type: boolean
        statement_descriptor:
          type: string
        tax_code:
          anyOf:
            - $ref: '#/components/schemas/TaxCode'
            - type: 'null'
        type:
          enum:
            - good
            - service
          type: string
        unit_label:
          type: string
        updated:
          format: int64
          type: integer
        url:
          type: string
      required:
        - active
        - attributes
        - caption
        - created
        - deactivate_on
        - default_price
        - deleted
        - description
        - id
        - images
        - livemode
        - metadata
        - name
        - object
        - package_dimensions
        - shippable
        - statement_descriptor
        - tax_code
        - type
        - unit_label
        - updated
        - url
      type: object
    PlanTier:
      properties:
        flat_amount:
          format: int64
          type: integer
        flat_amount_decimal:
          type: number
        unit_amount:
          format: int64
          type: integer
        unit_amount_decimal:
          type: number
        up_to:
          format: int64
          type: integer
      required:
        - flat_amount
        - flat_amount_decimal
        - unit_amount
        - unit_amount_decimal
        - up_to
      type: object
    PlanTransformUsage:
      properties:
        divide_by:
          format: int64
          type: integer
        round:
          enum:
            - down
            - up
          type: string
      required:
        - divide_by
        - round
      type: object
    PriceCurrencyOptions:
      properties:
        custom_unit_amount:
          anyOf:
            - $ref: '#/components/schemas/PriceCurrencyOptionsCustomUnitAmount'
            - type: 'null'
        tax_behavior:
          enum:
            - exclusive
            - inclusive
            - unspecified
          type: string
        tiers:
          items:
            $ref: '#/components/schemas/PriceCurrencyOptionsTier'
          type: array
        unit_amount:
          format: int64
          type: integer
        unit_amount_decimal:
          type: number
      required:
        - custom_unit_amount
        - tax_behavior
        - tiers
        - unit_amount
        - unit_amount_decimal
      type: object
    PriceCustomUnitAmount:
      properties:
        maximum:
          format: int64
          type: integer
        minimum:
          format: int64
          type: integer
        preset:
          format: int64
          type: integer
      required:
        - maximum
        - minimum
        - preset
      type: object
    PriceRecurring:
      properties:
        aggregate_usage:
          enum:
            - last_during_period
            - last_ever
            - max
            - sum
          type: string
        interval:
          enum:
            - day
            - month
            - week
            - year
          type: string
        interval_count:
          format: int64
          type: integer
        trial_period_days:
          format: int64
          type: integer
        usage_type:
          enum:
            - licensed
            - metered
          type: string
      required:
        - aggregate_usage
        - interval
        - interval_count
        - trial_period_days
        - usage_type
      type: object
    PriceTier:
      properties:
        flat_amount:
          format: int64
          type: integer
        flat_amount_decimal:
          type: number
        unit_amount:
          format: int64
          type: integer
        unit_amount_decimal:
          type: number
        up_to:
          format: int64
          type: integer
      required:
        - flat_amount
        - flat_amount_decimal
        - unit_amount
        - unit_amount_decimal
        - up_to
      type: object
    PriceTransformQuantity:
      properties:
        divide_by:
          format: int64
          type: integer
        round:
          enum:
            - down
            - up
          type: string
      required:
        - divide_by
        - round
      type: object
    ProductPackageDimensions:
      properties:
        height:
          type: number
        length:
          type: number
        weight:
          type: number
        width:
          type: number
      required:
        - height
        - length
        - weight
        - width
      type: object
    TaxCode:
      properties:
        description:
          type: string
        id:
          type: string
        name:
          type: string
        object:
          type: string
      required:
        - description
        - id
        - name
        - object
      type: object
    PriceCurrencyOptionsCustomUnitAmount:
      properties:
        maximum:
          format: int64
          type: integer
        minimum:
          format: int64
          type: integer
        preset:
          format: int64
          type: integer
      required:
        - maximum
        - minimum
        - preset
      type: object
    PriceCurrencyOptionsTier:
      properties:
        flat_amount:
          format: int64
          type: integer
        flat_amount_decimal:
          type: number
        unit_amount:
          format: int64
          type: integer
        unit_amount_decimal:
          type: number
        up_to:
          format: int64
          type: integer
      required:
        - flat_amount
        - flat_amount_decimal
        - unit_amount
        - unit_amount_decimal
        - up_to
      type: object
  responses:
    Error:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Error
  securitySchemes:
    apiKey:
      description: An API key from Settings → Developers.
      in: header
      name: x-api-key
      type: apiKey
    oauth2:
      flows:
        authorizationCode:
          authorizationUrl: https://app.linkvite.io/authorize
          refreshUrl: https://api.linkvite.io/v1/oauth/token
          scopes:
            api-keys:read: Read api-keys
            apps:read: Read apps
            bookmarks:delete: Delete bookmarks
            bookmarks:edit: Edit bookmarks
            bookmarks:read: Read bookmarks
            bookmarks:write: Write bookmarks
            collections:delete: Delete collections
            collections:edit: Edit collections
            collections:read: Read collections
            collections:write: Write collections
            comments:delete: Delete comments
            comments:read: Read comments
            comments:write: Write comments
            explore:read: Read explore
            files:read: Read files
            highlights:delete: Delete highlights
            highlights:edit: Edit highlights
            highlights:read: Read highlights
            highlights:write: Write highlights
            invite-links:delete: Delete invite-links
            invite-links:edit: Edit invite-links
            invite-links:write: Write invite-links
            invites:edit: Edit invites
            invites:read: Read invites
            plans:read: Read plans
            reminders:delete: Delete reminders
            reminders:edit: Edit reminders
            reminders:read: Read reminders
            reminders:write: Write reminders
            rss-feeds:delete: Delete rss-feeds
            rss-feeds:edit: Edit rss-feeds
            rss-feeds:read: Read rss-feeds
            rss-feeds:write: Write rss-feeds
            search:read: Read search
            user:edit: Edit user
            user:read: Read user
            user:storage:read: Storage:read user
            user:trash:delete: Trash:delete user
          tokenUrl: https://api.linkvite.io/v1/oauth/token
      type: oauth2
    bearer:
      description: An access token (OAuth, or a first-party session).
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.