IsGenuine equivalent for Web API

How do we use the Web API to determine whether a product key has been revoked or not?

We have a worker server that accepts connections from our client computers. The server may perform operations that are costly for us; thus we need to verify that the clients are licensed. In order to do that, the clients pass their product key along with the request. The server uses the Web API to check the license.

First it calls limelm.pkey.getID to transform the product key to an ID that we can pass to the next function: limelm.pkey.getDetails. We check for the presence of a feature that is required for the client to be allowed to continue.

We have noticed that the response does not differ at all between a valid, non-activated product key and a revoked, non-activated one.

You can tell whether a key is revoked or not by calling limelm.pkey.getDetails and reading the "revoked" attribute to the <pkey> element.

<pkey key="A84U-ZTZT-V2WI-5KCK-EV5S-3PWK-K2TX" acts="4" acts_used="3" email="anemail@example.com" revoked="true">....</pkey>

Thank you very much for your prompt response.

I guess one should never try to read un-prettified JSON.