Dodo

Validate Dodo Key

Validate a Dodo Payments API key without saving it. Tries test first, then live environment.

POST
/dodo/validate-key

Authorization

bearerAuth
AuthorizationBearer <token>

Use your secret API key as the bearer token

In: header

Request Body

application/json

secretKey*string

Dodo Payments API secret key to validate

Response Body

application/json

application/json

application/json

curl -X POST "https://api.getlumen.dev/v1/dodo/validate-key" \  -H "Content-Type: application/json" \  -d '{    "secretKey": "sk_test_dodo_123"  }'
{
  "message": "Dodo API key is valid (test environment)",
  "success": true,
  "environment": "test"
}

{
  "error": "Invalid Dodo API key - authentication failed"
}

{
  "error": "Unable to connect to Dodo Payments API. Please check your internet connection."
}