Dodo

Create or Update Dodo Configuration

Owners can store Dodo credentials. The secret key is validated against Dodo's API; if no webhook secret is provided, Lumen will try to auto-create one and save it encrypted.

POST
/dodo/config

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 that will be validated and stored (encrypted)

webhookSecret?string|null

Existing webhook secret to reuse instead of auto-creating one

Response Body

application/json

application/json

application/json

curl -X POST "https://api.getlumen.dev/v1/dodo/config" \  -H "Content-Type: application/json" \  -d '{    "secretKey": "sk_test_dodo_123",    "webhookSecret": "whsec_manual_optional"  }'
{
  "message": "Dodo configuration updated successfully",
  "id": "dodo_8fQ9rGzK3pV1sR6tB0nM2d"
}

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

{
  "error": "Failed to update Dodo configuration: API timeout"
}