Cryptlex Forums

New restriction in Web API?

L
lindale

We have our own user dashboard where they can manage licenses.
We use this request to retrieve the user’s licenses:

https://api.cryptlex.com/v3/licenses?limit=100&key[in]=XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX,XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX,XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX,XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX,XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX,XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX

We have been using that for a while, but now we are hit with a 400 error when the key[in] field is too long:
Each string in the field Key must have a maximum length of 256 characters

Is this a new limitation? Is there another way to achieve the same request?

A
Anees Khan

Hi @lindale,

Thanks for reaching out!

I understand how this might be affecting your workflow. I’ll forward this as feedback to our team and will keep you posted here. Thank you for your understanding.

L
lindale

Thanks for your quick reply.

Can you confirm that this is a recent change on your side, and not something that broke on our side?

Thanks

A
Anees Khan

A validation check for string length was added to the requests. However, the fix has been deployed, and you should be able to retrieve the licenses now.

L
lindale

Thanks for the quick fix.

A
Anees Khan

For any further assistance, you can also reach out to our support channel at support@cryptlex.com

Thank you!

← Back to all topics · 6 posts · 904 views · opened 2025-02-12