This endpoint allows you to validate a license for the user.
POST
/
licenses
/
validate
JavaScript
Copy
Ask AI
import DodoPayments from 'dodopayments';const client = new DodoPayments({ bearerToken: 'My Bearer Token',});const response = await client.licenses.validate({ license_key: '2b1f8e2d-c41e-4e8f-b2d3-d9fd61c38f43' });console.log(response.valid);
Copy
Ask AI
{ "valid": true}
No API Key Required: This is a public endpoint that does not require authentication. You can call it directly from client applications, desktop software, or CLIs to validate license keys without exposing your API credentials.