import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.usage.retrieveStats();
console.log(response);
{}
Get usage statistics for the authenticated user.
Args: auth: Authentication context identifying the caller.
Returns: A mapping of operation types to token usage counts.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.usage.retrieveStats();
console.log(response);
{}
Successful Response
The response is of type object
.
Was this page helpful?