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

# Snippet settings

> What the JS snippet shows: your question and up to six quick-pick answers, ordered by your most-answered channels. Called by the snippet with a publishable key from an allow-listed origin.



## OpenAPI

````yaml /openapi.json get /v1/widget/config
openapi: 3.1.0
info:
  title: Rumorly API
  version: 1.0.0
  description: >-
    Send "how did you hear about us?" answers in; get channels, named entities
    and revenue out. All JSON is snake_case.
servers:
  - url: https://api.rumorly.io
    description: Production
  - url: http://localhost:4100
    description: Local development
security: []
tags:
  - name: Basics
  - name: Responses
    description: Answers and their classification.
  - name: People
    description: The people who answered.
  - name: Reports
    description: Revenue by self-reported channel.
  - name: Snippet
    description: Endpoints the JS snippet calls.
paths:
  /v1/widget/config:
    get:
      tags:
        - Snippet
      summary: Snippet settings
      description: >-
        What the JS snippet shows: your question and up to six quick-pick
        answers, ordered by your most-answered channels. Called by the snippet
        with a publishable key from an allow-listed origin.
      responses:
        '200':
          description: The question and quick picks.
          content:
            application/json:
              schema:
                type: object
                properties:
                  question:
                    type: string
                    example: How did you hear about us?
                  options:
                    type: array
                    items:
                      type: string
                    example:
                      - ChatGPT or another AI
                      - A LinkedIn or X post
                      - A podcast
                required:
                  - question
                  - options
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The request's Origin is not on this publishable key's allow-list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - publishableKey: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: invalid body
        code:
          type: string
        issues:
          type: array
          items:
            type: object
            properties:
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
              message:
                type: string
            required:
              - path
              - message
      required:
        - error
  securitySchemes:
    publishableKey:
      type: http
      scheme: bearer
      description: >-
        A publishable key (`pk_live_…`). Safe in the browser: it can only create
        responses, and only from the origins you allow-listed.

````

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