Query matching for /v3/licenses API


#1

I’m using the /v3/licenses API endpoint to search for licenses by user email.
For example:
https://api.cryptlex.com/v3/[email protected]

However, it seems the “email” query does not use exact match, but instead a wildcard.

So if I query:
https://api.cryptlex.com/v3/licenses?email=n

It returns the license for all users whose email address starts with “n”

It that intended?
Should I be using a different API if I want to query with email exact match?

(and note. the /v3/users API endpoint does use email exact matches, this is what caught me out)


#2

Hello.

The license end point does a contain check on the email field and this behaviour is intended.


#3

Whats the recommended way to query the licenses for a particular user email address?


#4

Hi Francis,

Use the exact email address and pass it to the email query field.