The number of keys and randomness requests can be fetched from the API per customer. The
usage endpoint accepts GET requests.
For identifying the customer, the client certificate of the onboarded user must be provided in the header.
There are three distinct ways to perform the query,
group_by query accepts the following methods.
KEY-TYPE, MONTH, MONTH-AND-KEY-TYPE, TOTAL
curl -X GET --header "Content-Type: application/json" --cert <client crt of onboarded user> --key <private key of the client cert> 'https://qo-uk.cambridgequantum.com/api/v1/usage?group_by=KEY-TYPE'
The response would look like
The query arguments
to can be combined together to retrieve usage statistics
A sample use-case of
to for querying between two dates would look like
curl -X GET ... 'https://qo-uk.cambridgequantum.com/api/v1/usage?from=2022-05-03&to=2022-05-05&group_by=KEY-TYPE'