JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const appStorageUsageResponse = await client.usage.appStorageUsage();
console.log(appStorageUsageResponse.app_id);curl https://api.morphik.ai/usage/app-storage \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"app_id": "<string>",
"doc_raw_bytes_mb": 123,
"chunk_raw_bytes_mb": 123,
"multivector_mb": 123,
"total_mb": 123,
"document_count": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Usage
Get App Storage Usage
GET
/
usage
/
app-storage
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const appStorageUsageResponse = await client.usage.appStorageUsage();
console.log(appStorageUsageResponse.app_id);curl https://api.morphik.ai/usage/app-storage \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"app_id": "<string>",
"doc_raw_bytes_mb": 123,
"chunk_raw_bytes_mb": 123,
"multivector_mb": 123,
"total_mb": 123,
"document_count": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

