Complete API documentation for CloakDesk endpoints
The CloakDesk API provides programmatic access to all privacy features and functionality. All endpoints require authentication and return JSON responses.
The API is RESTful and follows standard HTTP conventions. All requests should include appropriate headers and authentication tokens.
API requests require authentication using an API key or wallet signature. Include your authentication token in the request headers:
Authorization: Bearer YOUR_API_KEY/api/obfuscate/queueQueue a transaction for obfuscation
/api/obfuscate/tasksGet status of obfuscation tasks
/api/analysis/deep-scanStart a deep privacy analysis scan
/api/analysis/[jobId]Get analysis results by job ID
/api/leaderboardGet privacy leaderboard rankings
/api/mpc/create-vaultCreate a new MPC vault
/api/proof/generateGenerate a zero-knowledge proof
/api/relayers/queryQuery available relayers
/api/payments/creditsPurchase credits for premium features
curl -X POST https://api.cloakdesk.app/api/obfuscate/queue \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "0x...",
"to": "0x...",
"amount": "1.0",
"token": "ETH"
}'All API responses follow a standard format:
{
"success": true,
"data": { ... },
"message": "Operation completed successfully"
}Errors are returned with appropriate HTTP status codes and error messages:
{
"success": false,
"error": {
"code": "INVALID_REQUEST",
"message": "Invalid parameters provided"
}
}1. Get API Key
Generate an API key from your account settings
2. Make Requests
Use your API key to authenticate requests
3. Handle Responses
Parse JSON responses and handle errors appropriately