SpecOS SpecOS icon Documentation

Documentation Overview

Welcome to the Spec-Right documentation. This resource provides comprehensive information to help you integrate and leverage our powerful product search and discovery tools.

What's in the Docs?

  • Image Search: Learn how to use our visual search capabilities, including guides on embedding images and using the real-time API.
  • Widget: Find out how to integrate our pre-built search widget into your own website or application.
  • API: Get detailed information about our server-side API endpoints, including authentication and code examples.

Key Terms

  • Widget Integration: The process of embedding the pre-built Spec-Right UI component into your website.
  • App ID: A public key that identifies your widget integration. It is used for client-side authentication and is protected by a domain whitelist.
  • API Key: A secret key used for server-side authentication to access Spec-Right's API endpoints directly.

App IDs vs. API Keys

It's important to understand the difference between App IDs and API Keys, as they serve different purposes.

Feature App ID (sr_...) API Key (sk_...)
Usage Client-side (in the browser) for Widget Integrations. Server-side (in your backend) for direct API access.
Visibility Public. It is safe to expose in your frontend code. Secret. Must be kept confidential and secure.
Security Domain whitelisting. Bearer token authentication.
Primary Use To authorize and configure a specific widget instance. To programmatically access Spec-Right services.