Cryptlex Forums

Query matching for /v3/licenses API

F
francis

I’m using the /v3/licenses API endpoint to search for licenses by user email.
For example:
https://api.cryptlex.com/v3/licenses?email=name@example.com

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)

F
Furqan Kamili

Hello.

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

F
francis

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

A
Adnan KamiliCryptlex team

Hi Francis,

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

← Back to all topics · 4 posts · 1408 views · opened 2019-09-10