An API tool gives you direct programmatic access to Raffle’s search capabilities — without a hosted widget. Instead of embedding a UI component on your website, you query Raffle from your own application, or connect it to an AI platform like Claude or MS Copilot via MCP.
Navigate to Tools and click Create new Tool.
When prompted to choose a tool type, select API.
Choose the API option
Give the tool a name and connect the data sources (indexes) you want it to search. The setup follows the same flow as for a widget — see Create a Widget for a detailed walkthrough.
The UID is required to call the API and to set up the MCP server.
Click the Go Live button in the upper right corner of your tool’s admin page. The UID appears in the script snippet and can be copied from there.
Chat