Overview

Developers can use the “VQB Pubic API” to access the data related to the quizzes and use it in their Apps. This documentation is mainly for the APIs to be used in Browser environment.

Base API URLs

Production: https://api-production.visualquizbuilder.com/api/public

Authentication Keys

To generate fresh Browser API Keys head over to “Integrations → VQB” for configuration.

Screenshot 2024-05-13 at 7.25.39 PM.png

Steps

  1. Initially, the key is empty you have to “Generate Key” and use the newly generated Key.
  2. The Public API being Public is protected from the domain whitelisted in the Allowed Domains.

All the API calls will be blocked by default unless a valid domain is whitelisted in “Allowed Domain” field.

  1. Click on “Save Domains” to save the domains and the access will be provided instantly.

NOTE: For Local Development

If you are using the Public APIs while testing locally in the browser make sure you add relevant domain in the “Allowed Domains” like localhost or 127.0.0.1 .

Usage

Send the “Browser API Key” in the “Authorization” Header along with the “ACCESSKEY” Header from your browser.

Headers

Example Usage :-