Licenses
Create License Key
Import an existing license key from another system. The key string, customer, and product are all required.
POST
JavaScript
This endpoint imports a key you already have —
key, customer_id, and product_id are all required. It does not generate a key value for you. Importing a key that already exists returns 409 Conflict.License keys created or updated through the API do not trigger email notifications to customers. If you need to notify customers about their license key, you must handle that separately in your application.
Authorizations
Send your API key as a bearer token: Authorization: Bearer <api_key>. A test mode key starts with dodo_test_, for example dodo_test_AbCd1234EfGh5678.<secret>. A live mode key starts with dodo_live_. Use a test mode key on test.dodopayments.com and a live mode key on live.dodopayments.com. Keys from before these tags have no tag and operate as before.
Body
application/json
Response
License key created
Last modified on July 29, 2026