File Storage

The simplest way to upload documents is to host them directly on Ragg's infrastructure.

Every document uploaded on Ragg is stored in a secured and encrypted bucket.

You can upload files directly from Ragg's web app or using the web API.

Upload file

import * as Ragg from '@ragg/node-sdk'

const ragg = Ragg.init(<API_KEY>)

const result = await ragg.files.upload({
    workspaceId: string,
    files: [],
});

Delete files

import * as Ragg from '@ragg/node-sdk'

const ragg = Ragg.init(<API_KEY>)

const result = await ragg.files.delete({
    workspaceId: string,
    ids: [],
});

Last updated