API Documentation

All CuteDSL services use a single unified endpoint. Authenticate with your API key, specify the service, and send your request.

Authentication

Connect your Solana wallet on the homepage to get your API key.

Once connected, your real API key will automatically replace YOUR_API_KEY in all code examples on this page.

Rotating Your API Key

If your key is leaked, rotate it to get a fresh one. Authenticate with your current API key plus your wallet address — the old key stops working the instant the new one is issued.

curl -X POST https://cutedsl.cc/api/auth/rotate-api-key \
  -H "Content-Type: application/json" \
  -d '{
    "wallet_address": "YOUR_WALLET_ADDRESS",
    "api_key": "YOUR_API_KEY"
  }'

The response contains your new key — store it securely:

{
  "success": true,
  "api_key": "cutedsl_xxxxxxxxxxxxxxxxxxxxxxxx",  // your new key
  "user": { ... }
}
403 — api_key does not match the wallet
404 — wallet not found

Your wallet address is public and safe to share; your API key is secret. You can also rotate with one click on the Account page.

Quick Start

All services share a single endpoint: POST /api/service

curl -X POST https://cutedsl.cc/api/service \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "service": "<service_name>",
    ...service-specific parameters
  }'

Response Format

All responses follow this envelope:

{
  "result": { ... },        // Service-specific response data
  "credits_used": 1000,     // $CUTEDSL tokens deducted
  "credits_remain": 49000,  // Remaining balance
  "usd_equivalent": 1.00    // USD value of credits used
}
401 — Invalid or missing API key
402 — Insufficient $CUTEDSL credits

Available Services