π Enigma API Reference
Access cryptographic challenges, scores, and puzzle metadata through our powerful and secure REST API.
π¦ Developer Onboardingπ― Getting Started
π Base URL
https://api.enigma.com
π Authentication
Use Bearer Authentication with your API key obtained from your dashboard.
Authorization: Bearer YOUR_API_KEY
π Available Endpoints
π§© GET /challenges
Parameters
- β’ category (optional)
- β’ difficulty (optional)
- β’ page (required)
Response
Paginated list of all available challenges with metadata
Example
{ "data": [ { "id": 1, "title": "Vigenère Cipher", "type": "crypto", "difficulty": "medium" } ], "pagination": { "total_pages": 3 } }
π GET /leaderboard
Parameters
- β’ challenge_id (required)
- β’ limit (optional, max: 100)
Response
Sorted ranking of puzzle solvers with completion times
Example
{ "data": [ { "username": "cryptoqueen", "completion_time": "00h 23m 57s" } ], "rank": 1 }
β POST /solutions
Body Parameters
- β’ challenge_id (required)
- β’ solution_hash (required)
Response
Indicates solution status with confirmation or validation
Example
{ "status": "success", "message": "Solution accepted", "points_awarded": 150 }
β οΈ Error Handling
401 Unauthorized
Authentication missing or invalid
404 Not Found
Requested resource endpoint is invalid
429 Too Many Requests
Rate limit (150 requests/minute) exceeded
500 Internal Error
API server issue, retry after 10-15 seconds