Limai Docs
API ReferenceBuckets

Send To

Send a bucket file to a deployment, classifier, or splitter for processing

POST/api/v1/buckets/{bucketId}/files/{fileId}/send-to

Sends a file from a bucket to a deployment, classifier, or splitter for processing. Optionally keeps the file in the bucket after sending.

Parameters

NameTypeInRequiredDescription
bucketIdstringpathYesThe bucket ID
fileIdstringpathYesThe file ID
targetTypestringbodyYesTarget type: DEPLOYMENT, CLASSIFIER, or SPLITTER
targetIdstringbodyYesID of the target deployment, classifier, or splitter
keepInBucketbooleanbodyNoKeep the file in the bucket after sending(default: false)

Request

const res = await fetch(
"https://app.limai.io/api/v1/buckets/bkt_abc123/files/file_001/send-to",
{
  method: "POST",
  headers: {
    Authorization: "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    targetType: "DEPLOYMENT",
    targetId: "dep_001",
    keepInBucket: true,
  }),
}
);

Response

Response200
{
  "success": true,
  "filesSent": 1,
  "targetType": "DEPLOYMENT",
  "targetId": "dep_001"
}