Management API
Management API Authorization
2min
all requests to the server need to be authorized with the management api key a management api key is sent as an authorization header value each request from the client needs to have the following header authorization , with the following value api key here is the management api key example management api key for this example is h8ztles1 oychhcst5c8k9a6gjv9wa1hlxwpuvsfv header authorization api key h8ztles1 oychhcst5c8k9a6gjv9wa1hlxwpuvsfv full sample code for getting a license key with management api key import requests api url = 'https //saas licensespring com' \# can be found in `settings` > `settings` > `keys` api key = ' your management api key goes here ' \# send request product short code = ' your product short code goes here ' quantity = 1 # replace with desired quantity response = requests get( url='{}{}' format(api url, '/api/v1/orders/generate license/'), params={'product' product short code, 'quantity' quantity}, headers={ 'authorization' 'api key {}' format(api key) } ) print(response json())