Create Licensee
/v1/keys/{key}/licenseesCreates a licensee on a key and returns it with its generated sl_ key. The key must be enabled for sub-licensing.
Path parameters
keystringAPI Key
The API Key to retrieve. Begins
ak_.
Query parameters
user_tokenstring optionalPrivate User Token
A secret key used for sensitive operations on your account and API Keys.
Your user token can be retrieved and managed from your accounts page.
Typically begins
uk_...
Request body
Submit a JSON object with the licensee details:
bodyLicenseeEditableLicensee object which can be defined by user
namestring optionalLicensee individual or organisation name
addressstring optionalLicensee's first, second and third line address as well as post town concatenated by commas
postcodestring optionalLicensee's postcode
whiteliststring[] optionalA list of allowed URLs. An empty list means that whitelisting is disabled
dailyobject optionallimitnumber optionalThe maximum number of lookups this licensee can perform in a day.
nullindicates the limit is not active
Response
result is the created licensee object. Each licensee includes an immutable id
and a unique key (beginning sl_) used for subsequent requests.
resultLicenseenamestringLicensee individual or organisation name
addressstringLicensee's first, second and third line address as well as post town concatenated by commas
postcodestringLicensee's postcode
whiteliststring[]A list of allowed URLs. An empty list means that whitelisting is disabled
dailyobjectcountnumberThe number lookups performed by the licensee on the day represented b
licesees.daily.updatedAtupdatedAtstringThe timestamp when the limit was last used.
idstringAn immutable ID provided for every licensee. Primarily used for paginated list requests.
keystringUniquely identifies a licensee for a key.
Required to perform paid lookups for a specific licensee. Typically begins
sk_.createdAtstringTimestamp for when the licensee was created
The result sits inside the standard { result, code, message } envelope — see
the API reference for the wrapper format.