Getting Started with API Index
Implementation guides for Raffle API
Comprehensive API documentation and guides
The Raffle API lets you build your own search experience on top of Raffle, and push your own content into Raffle. All endpoints live under https://api.raffle.ai/.
https://api.raffle.ai/
This page explains how the API fits together: which endpoints need a key, where keys come from, and which limits apply. For the full request and response schemas, see the API Reference. The previous version is at /api/v1/.
These endpoints power a search experience. They are called with the UID of an API widget and no API key:
GET /v2/search
GET /v2/summary
GET /v2/autocomplete
GET /v2/top_questions
POST /v2/feedback
POST /v2/support
The UID is passed as the uid parameter (in the request body for /support). These endpoints are meant to be called from a browser, so the UID is visible in your website’s code. Treat it as public.
uid
/support
To find the UID, go to Widgets, open your API widget, click Install and copy the UID. If you don’t have an API widget yet, create one first.
The endpoints under /v2/sources/ manage the documents of an API source: list, get, create or update, and delete. They need an API key in the X-API-Key header. See API Index.
/v2/sources/
X-API-Key
API keys are managed in Workspace → API, on the API Keys page. Only users with the Account Admin role can open it.
API keys are only used by the document endpoints. Keep them on your server and never put them in code that runs in a browser.
/search
400 Bad Request
/summary
status: "no-relevant-results"
url
reference_format
html
markdown
origin-url
http
https
session-id