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

# Get Upgrade Link

> A link to the payment page of a paid plan, for the owner of the account. It needs no login and has the email filled in. After the free Pro trial of an agent sign-up there is no second trial: the first payment is on the day the trial ends, or at once when it has ended. Give the link to the user when they want to keep their Pro widgets, or when get_account shows that the trial ends soon. An account that pays already changes its plan on /settings/subscription.



## OpenAPI

````yaml https://snapwidget.com/api/v1/openapi.json get /upgrade-link
openapi: 3.1.0
info:
  title: SnapWidget API
  version: '1'
  description: >-
    Make and change social feed and review widgets, connect social accounts and
    get the embed code. The MCP server at https://snapwidget.com/mcp has the
    same actions for AI agents.
  termsOfService: https://snapwidget.com/terms
  contact:
    name: SnapWidget
    email: support@snapwidget.com
    url: https://snapwidget.com/docs/api-reference/introduction
servers:
  - url: https://snapwidget.com/api/v1
security:
  - token: []
tags:
  - name: Sign-up
  - name: Account
  - name: Social accounts
  - name: Widgets
  - name: Reviews
  - name: Campaigns
paths:
  /upgrade-link:
    get:
      tags:
        - Account
      summary: Get Upgrade Link
      description: >-
        A link to the payment page of a paid plan, for the owner of the account.
        It needs no login and has the email filled in. After the free Pro trial
        of an agent sign-up there is no second trial: the first payment is on
        the day the trial ends, or at once when it has ended. Give the link to
        the user when they want to keep their Pro widgets, or when get_account
        shows that the trial ends soon. An account that pays already changes its
        plan on /settings/subscription.
      operationId: get_upgrade_link
      parameters:
        - name: plan
          in: query
          description: >-
            liteplan6 ($8/month), liteplan6yearly ($80/year), proplan10
            ($14/month, the default), proplan10yearly ($140/year), developerplan
            ($99/month) or developerplanyearly ($990/year).
          schema:
            enum:
              - liteplan6
              - liteplan6yearly
              - proplan10
              - proplan10yearly
              - developerplan
              - developerplanyearly
            type: string
      responses:
        '200':
          description: The answer, as JSON.
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/Invalid'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  responses:
    Unauthorized:
      description: No token, or the token is wrong, expired or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The token or the plan has no API access, or the plan does not allow the
        change.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Invalid:
      description: An input is not valid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Too many calls. The Retry-After header gives the seconds to wait.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
          description: What went wrong.
        errors:
          type: object
          description: The messages per input, when an input is not valid.
          additionalProperties:
            type: array
            items:
              type: string
        upgrade_url:
          type: string
          description: The upgrade page, when the plan does not allow it.
      required:
        - message
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: 'A token from the API page: https://snapwidget.com/settings/api'

````

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