Documentation Index
Fetch the complete documentation index at: https://docs.duelduck.com/llms.txt
Use this file to discover all available pages before exploring further.
Make your first API call
Getting started with the DuelDuck Prediction API only takes a few steps. After registering, create a project in the DuelDuck API dashboard and generate your API key. The dashboard allows API owners to manage the entire prediction lifecycle in one place — create and resolve predictions, monitor activity and statistics, and track or claim commission earnings. Once your API key is generated, you can start sending authenticated requests from your application to interact with the Prediction API. The API is designed for simple integration into both web and mobile applications, allowing you to quickly launch prediction market functionality while keeping full control over your frontend and user experience.Example request
The following example demonstrates how to send your first authenticated request to the Prediction API. Typically, requests include:- your API key in the authorization header;
- the endpoint URL;
- request parameters or JSON body depending on the action;
- prediction configuration data such as title, deadline, currency, pricing model, and fee settings.
Example response
After a successful request, the API returns a structured JSON response containing prediction data and operation status information. Responses may include:- prediction identifiers;
- current status;
- voting configuration;
- timestamps and deadlines;
- supported currency information;
- transaction or smart contract references.