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.
In this document, the term Duel refers to a Prediction as it’s used as the internal name on Duel Duck
Partner (role = 2).Result: project created,
api_key obtained for all subsequent project-scoped requests.
Step 1 — Request a verification code
To sign in, request a verification code using your email address. The code will be sent to your inbox. POST /auth/send-code Content-Type: application/jsonStep 2 — Sign in and obtain a JWT
Use the verification code to sign in and receive an access token. The access token is your authentication credential and is required for protected API endpoints. POST /auth/sign-in-email Content-Type: application/jsonaccess_token — it is used as a Bearer token in the next request.
Step 3 — Create the project
After signing in, create a new project by providing:- Project name,
- Website URL.
- Project ID,
- API key,
- Project settings.
api_key is the most important value returned when creating a project. Include it in the X-API-Key header for all project-scoped requests.
Without this header, the API will not know which project you are working with.