Skip to main content

Storage API

Your agents' documents, reports and other files can live in your own cloud storage: Amazon S3 or any S3-compatible store, Google Cloud Storage, or Azure Blob Storage. You keep the bucket, the access policy and, if you want, the encryption key. MeetLoyd writes there and nowhere else.

In the dashboard​

Open Storage (under Capabilities) and click Add storage:

  1. Choose the provider: Amazon S3 / compatible, Google Cloud Storage or Azure Blob.
  2. Enter the bucket (or container) and its credentials. Credentials are kept in your organisation's vault and are never shown again.
  3. Choose what it is Used for: The whole tenant, One workspace, or One project (for example a customer engagement whose files must stay in the customer's storage).
  4. Optionally give your own key (AWS KMS key, Cloud KMS key or Azure encryption scope). The storage service then encrypts every file with it.
  5. Click Add and check. MeetLoyd writes a test object, reads it back and deletes it. A destination is used only once this check passes.

Where new files go​

A new file goes to the most specific destination that applies: the project's, then the workspace's, then the tenant's. It goes to MeetLoyd storage only when none applies. If a destination applies but cannot be reached, the write fails: content meant for your storage is never quietly written somewhere else.

Moving what you already have​

On a destination, Move existing files here copies your existing files into it. Each file is checked against its fingerprint after the copy before it counts as moved, and a move that is interrupted resumes where it stopped. Nothing is deleted by a move. Deleting the originals is a separate step (Delete the originals?), and it checks every copy again first.

A destination that holds files cannot be pointed at another bucket or removed. To change buckets, add a new destination and move the files into it.

Changing the key​

Changing a destination's key re-encrypts the files already stored there, in place, checking each one. Re-encrypt stored files runs the same check on demand. Keep the previous key enabled until it finishes.

Memories and conversations are stored in a database, not a bucket. Their encryption keys are managed under Governance → Data protection → Encryption & residency. See Encryption.

API​

All endpoints need settings:read (to read) or settings:write (to change). Paths are under /api/v1.

MethodEndpointDescription
GET/storage-destinationsYour destinations and their status
POST/storage-destinationsAdd a destination, then run the storage check
PATCH/storage-destinations/:idChange it (checked before saving), or turn it on or off with status
POST/storage-destinations/:id/testRun the storage check again
DELETE/storage-destinations/:idRemove it (refused while it holds files)
POST/storage-destinations/:id/reencryptRe-encrypt its files under the current key
GET/storage-destinations/:id/migrationsMoves into this destination and their progress
POST/storage-destinations/:id/migrationsStart moving existing files in, or resume
POST/storage-destinations/migrations/:migrationId/cancelStop a move
POST/storage-destinations/migrations/:migrationId/delete-sourcesDelete the originals of a finished move

Creating a destination:

{
"label": "EU archive",
"storageType": "s3",
"connection": { "bucket": "acme-meetloyd", "region": "eu-west-1", "prefix": "agents/" },
"credentials": { "accessKeyId": "…", "secretAccessKey": "…" },
"kmsKeyId": "arn:aws:kms:eu-west-1:…:key/…",
"appId": null,
"projectId": null
}

storageType is s3, gcs or azure-blob. Leave appId and projectId empty for a tenant-wide destination, or set one of them to scope it. For an S3-compatible store, add its endpoint to connection. For Azure, give the accountName.