Bind an externalUserId to an existing license key
POST
/v1/licensing/bind
const url = 'https://api.extport.dev/api/v1/licensing/bind';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"extensionId":"example","key":"example","externalUserId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.extport.dev/api/v1/licensing/bind \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "extensionId": "example", "key": "example", "externalUserId": "example" }'Associates a user account in your backend with a license purchased while logged out. Idempotent when already bound to the same externalUserId.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
extensionId
required
string
key
required
string
externalUserId
required
string
Examplegenerated
{ "extensionId": "example", "key": "example", "externalUserId": "example"}Responses
Section titled “Responses”Bound; returns current entitlement
License is revoked
Extension or license not found
License is already bound to a different externalUserId