ViralNote Comments API

The Comments API from ViralNote, for comments.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 10

GET /comments List social comments #
POST /comments Sync social comments #
PATCH /comments/{commentId} Mark a comment handled or reopen it #
POST /comments/{commentId}/moderate Hide, delete, or report a comment #
POST /comments/{commentId}/reply Reply to a social comment #
POST /comments/{commentId}/draft Draft a brand-aware comment reply #
GET /saved-replies List saved replies #
POST /saved-replies Create a saved reply #
PATCH /saved-replies/{replyId} Update a saved reply #
DELETE /saved-replies/{replyId} Delete a saved reply #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/viralnote-app:viralnote-app-comments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

viralnote-app-comments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ViralNote Comments API
  version: 1.0.0-v1
  description: Versioned REST API for scheduling posts, managing media, querying analytics, and importing content on ViralNote.
  contact:
    name: ViralNote support
    email: info@viralnote.app
    url: https://www.viralnote.app/contact
  termsOfService: https://www.viralnote.app/terms
  license:
    name: ViralNote API Terms
    url: https://www.viralnote.app/terms
  x-logo:
    url: https://www.viralnote.app/vnlogo.png
servers:
- url: https://dashboard.viralnote.app/api/v1
  description: Primary
- url: https://www.viralnote.app/api/v1
  description: Alias (reverse proxy on the marketing domain)
- url: /api/v1
  description: Relative
security:
- oauth2:
  - posts:read
  - posts:write
  - posts:publish
  - comments:read
  - comments:reply
  - comments:moderate
  - analytics:read
  - webhooks:manage
  - credits:read
  - credits:write
- apiKeyAuth: []
- bearerAuth: []
tags:
- name: Comments
paths:
  /comments:
    get:
      summary: List social comments
      security:
      - oauth2:
        - comments:read
      - apiKeyAuth: []
      - bearerAuth: []
      parameters:
      - name: brandId
        in: query
        schema:
          type: string
        description: Brand workspace, or `all` on Agency.
      - name: platform
        in: query
        schema:
          $ref: '#/components/schemas/Platform'
      - name: postId
        in: query
        schema:
          type: string
      - name: status
        in: query
        schema:
          type: string
          enum:
          - unanswered
          - handled
          - all
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Comment list
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: listComments
      description: List comments on published posts for the comments inbox. Filter by brand, platform, post, and unanswered/handled status. Values are synced from connected networks.
      tags:
      - Comments
      x-required-scope: comments:read
      x-required-scopes:
      - comments:read
      x-scope-alternatives:
      - - comments:read
    post:
      summary: Sync social comments
      security:
      - oauth2:
        - comments:read
      - apiKeyAuth: []
      - bearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                brandId:
                  type: string
      responses:
        '200':
          description: Sync result
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: syncComments
      description: Refresh comments from enabled, connected networks into the inbox. Provider rollout and each account's granted permissions determine availability. Nothing is posted to any network. TikTok and Pinterest comments are not supported.
      tags:
      - Comments
      x-required-scope: comments:read
      x-required-scopes:
      - comments:read
      x-scope-alternatives:
      - - comments:read
  /comments/{commentId}:
    patch:
      summary: Mark a comment handled or reopen it
      security:
      - oauth2:
        - posts:write
      - oauth2:
        - comments:reply
      - oauth2:
        - comments:moderate
      - apiKeyAuth: []
      - bearerAuth: []
      parameters:
      - name: commentId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - handled
              properties:
                handled:
                  type: boolean
      responses:
        '200':
          description: Updated comment
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: updateComment
      description: 'Mark a comment handled or reopen it. Handled comments leave the unanswered queue. Local inbox state only: nothing is sent to the network, so any one of posts:write, comments:reply, or comments:moderate authorizes it.'
      tags:
      - Comments
      x-required-scope: posts:write, comments:reply or comments:moderate
      x-required-scopes:
      - posts:write, comments:reply or comments:moderate
      x-scope-alternatives:
      - - posts:write
      - - comments:reply
      - - comments:moderate
  /comments/{commentId}/moderate:
    post:
      summary: Hide, delete, or report a comment
      description: 'Runs a supported moderation action on the connected network. Hide: Instagram. Delete: Instagram, Facebook, LinkedIn, plus your own replies on X, Threads, and Bluesky. Report: Bluesky. YouTube moderation and Reddit delete/report are unavailable with current scopes. Successful hide, delete, and report mark the comment handled.'
      security:
      - oauth2:
        - comments:moderate
      - apiKeyAuth: []
      - bearerAuth: []
      parameters:
      - name: commentId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - action
              properties:
                action:
                  type: string
                  enum:
                  - hide
                  - unhide
                  - delete
                  - report
      responses:
        '200':
          description: Updated comment
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Action not available for this comment
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Platform rejected the action
      operationId: moderateComment
      tags:
      - Comments
      x-required-scope: comments:moderate
      x-required-scopes:
      - comments:moderate
      x-scope-alternatives:
      - - comments:moderate
  /comments/{commentId}/reply:
    post:
      summary: Reply to a social comment
      security:
      - oauth2:
        - comments:reply
      - apiKeyAuth: []
      - bearerAuth: []
      parameters:
      - name: commentId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - text
              properties:
                text:
                  type: string
                  maxLength: 2000
      responses:
        '200':
          description: Reply sent
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Platform rejected the reply
      operationId: replyToComment
      description: Reply to a social comment as the connected brand account. The reply is sent on the network and the comment is marked handled. Requires comments:reply; posts:write plus posts:publish no longer authorizes this.
      tags:
      - Comments
      x-required-scope: comments:reply
      x-required-scopes:
      - comments:reply
      x-scope-alternatives:
      - - comments:reply
  /comments/{commentId}/draft:
    post:
      summary: Draft a brand-aware comment reply
      security:
      - oauth2:
        - posts:write
      - oauth2:
        - comments:reply
      - apiKeyAuth: []
      - bearerAuth: []
      parameters:
      - name: commentId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Suggested reply text. Nothing is posted until replyToComment.
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Paid plan required
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: draftCommentReply
      description: Suggest a brand-aware reply for operator review. Nothing is posted. Available on paid plans.
      tags:
      - Comments
      x-required-scope: posts:write or comments:reply
      x-required-scopes:
      - posts:write or comments:reply
      x-scope-alternatives:
      - - posts:write
      - - comments:reply
  /saved-replies:
    get:
      summary: List saved replies
      security:
      - oauth2:
        - comments:read
      - apiKeyAuth: []
      - bearerAuth: []
      parameters:
      - name: brandId
        in: query
        schema:
          type: string
        description: Brand workspace, or `all` on Agency.
      responses:
        '200':
          description: Saved replies for the brand
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: listSavedReplies
      description: List canned replies for a brand workspace. On Agency, pass `brandId=all` to list every brand. Use these as starting text for replyToComment.
      tags:
      - Comments
      x-required-scope: comments:read
      x-required-scopes:
      - comments:read
      x-scope-alternatives:
      - - comments:read
    post:
      summary: Create a saved reply
      security:
      - oauth2:
        - posts:write
      - oauth2:
        - comments:reply
      - apiKeyAuth: []
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - title
              - text
              properties:
                brandId:
                  type: string
                title:
                  type: string
                  maxLength: 80
                text:
                  type: string
                  maxLength: 2000
      responses:
        '201':
          description: Saved reply created
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: createSavedReply
      description: Save a reusable reply for one brand. Maximum 50 per brand. Does not post to any network.
      tags:
      - Comments
      x-required-scope: posts:write or comments:reply
      x-required-scopes:
      - posts:write or comments:reply
      x-scope-alternatives:
      - - posts:write
      - - comments:reply
  /saved-replies/{replyId}:
    patch:
      summary: Update a saved reply
      security:
      - oauth2:
        - posts:write
      - oauth2:
        - comments:reply
      - apiKeyAuth: []
      - bearerAuth: []
      parameters:
      - name: replyId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  maxLength: 80
                text:
                  type: string
                  maxLength: 2000
      responses:
        '200':
          description: Updated saved reply
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: updateSavedReply
      description: Update a saved reply's title or text. The brand cannot be changed.
      tags:
      - Comments
      x-required-scope: posts:write or comments:reply
      x-required-scopes:
      - posts:write or comments:reply
      x-scope-alternatives:
      - - posts:write
      - - comments:reply
    delete:
      summary: Delete a saved reply
      security:
      - oauth2:
        - posts:write
      - oauth2:
        - comments:reply
      - apiKeyAuth: []
      - bearerAuth: []
      parameters:
      - name: replyId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deleted
        '401':
          description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
        '429':
          description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: deleteSavedReply
      description: Delete a saved reply. Irreversible.
      tags:
      - Comments
      x-required-scope: posts:write or comments:reply
      x-required-scopes:
      - posts:write or comments:reply
      x-scope-alternatives:
      - - posts:write
      - - comments:reply
components:
  schemas:
    Platform:
      type: string
      enum:
      - twitter
      - facebook
      - instagram
      - linkedin
      - reddit
      - youtube
      - bluesky
      - threads
      - tiktok
      - pinterest
    ErrorResponse:
      type: object
      description: Standard error envelope. `requestId` is present on every response — include it in support requests so the server-side trace can be looked up.
      properties:
        requestId:
          type: string
          example: req_a8f3e21b
        error:
          type: object
          properties:
            code:
              type: string
              example: validation-error
            message:
              type: string
              example: Caption is required
          required:
          - code
          - message
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Signed-in user session (Firebase ID token) or an OAuth access token. Required for API-key management endpoints.
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API key created at https://dashboard.viralnote.app/developers/auth. Keys are scoped at creation; the scope each operation needs is listed in its `security` entry under `oauth2`. The same key may be sent as `Authorization: Bearer vnd_...`.'
      x-scopes:
        posts:read: List and read posts, drafts, schedules, publish results, media, accounts, and brands. Also satisfies analytics:read and comments:read, which were carved out of it.
        posts:write: Create and edit drafts; cancel scheduled posts; manage media, brand profile, saved replies, and content generation. Scheduling and publishing require posts:publish; replying and moderating require the comments scopes.
        posts:publish: Publish immediately, schedule, and edit content that stays queued. Requires an eligible plan.
        comments:read: List synced comments, refresh the inbox from connected networks, and read saved replies.
        comments:reply: Send public replies as the connected brand account, and manage saved replies and handled state.
        comments:moderate: Hide, unhide, delete, or report comments on the connected network, and mark comments handled. Does not allow sending replies.
        analytics:read: Read published-post metrics, per-post metric history, and audience history. Does not grant access to drafts or comments.
        webhooks:manage: Register, update, and delete webhook subscriptions.
        credits:read: Read the account's video-processing credit balance, estimates, transaction history, and per-brand usage breakdown.
        credits:write: Spend credits on AI generation, and enable recurring credit spending such as Compass automation.
    oauth2:
      type: oauth2
      description: OAuth 2.0 authorization code with PKCE. Dynamic client registration is open (RFC 7591) at the registration endpoint; metadata at /.well-known/oauth-authorization-server. Tokens carry the scopes granted by the user.
      flows:
        authorizationCode:
          authorizationUrl: https://dashboard.viralnote.app/oauth/authorize
          tokenUrl: https://dashboard.viralnote.app/api/mcp/oauth/token
          refreshUrl: https://dashboard.viralnote.app/api/mcp/oauth/token
          scopes:
            posts:read: List and read posts, drafts, schedules, publish results, media, accounts, and brands. Also satisfies analytics:read and comments:read, which were carved out of it.
            posts:write: Create and edit drafts; cancel scheduled posts; manage media, brand profile, saved replies, and content generation. Scheduling and publishing require posts:publish; replying and moderating require the comments scopes.
            posts:publish: Publish immediately, schedule, and edit content that stays queued. Requires an eligible plan.
            comments:read: List synced comments, refresh the inbox from connected networks, and read saved replies.
            comments:reply: Send public replies as the connected brand account, and manage saved replies and handled state.
            comments:moderate: Hide, unhide, delete, or report comments on the connected network, and mark comments handled. Does not allow sending replies.
            analytics:read: Read published-post metrics, per-post metric history, and audience history. Does not grant access to drafts or comments.
            webhooks:manage: Register, update, and delete webhook subscriptions.
            credits:read: Read the account's video-processing credit balance, estimates, transaction history, and per-brand usage breakdown.
            credits:write: Spend credits on AI generation, and enable recurring credit spending such as Compass automation.
externalDocs:
  description: Developer docs, auth walkthrough, and agent guides
  url: https://www.viralnote.app/developers/docs
x-agent:
  auth: https://www.viralnote.app/auth.md
  llms: https://www.viralnote.app/llms.txt
  agentView: https://www.viralnote.app/agent.json
  mcp:
    url: https://dashboard.viralnote.app/api/mcp/mcp
    transport: streamable-http
  protectedResourceMetadata: https://dashboard.viralnote.app/.well-known/oauth-protected-resource/api/v1
  authorizationServerMetadata: https://dashboard.viralnote.app/.well-known/oauth-authorization-server
  errorFormat: 'application/json; { error: { code, message }, requestId }'
  testing:
    sandbox: false
    guidance: No separate sandbox host. Create posts with status=draft to stage without side effects; GET endpoints never mutate. New accounts start Free; a 7-day free trial of Publish or Pro, or Growth's discounted first month (card required), unlocks publish and schedule.