GET
/v1/datasets/{datasetId}/downloadbetaapiKeyworkspace
When to use
Retrieve the original bytes uploaded for a file dataset.
For agents
The returned URL expires after 15 minutes. Fetch it promptly and do not persist it as a durable link.
Example
import { PermuteClient } from '@permute/sdk';
const orgClient = new PermuteClient({
apiKey: process.env.PERMUTE_API_KEY!,
});
const client = orgClient.withWorkspace(process.env.PERMUTE_WORKSPACE_ID!);
const result = await client.datasets.download('data_quickbooks123');Response
{
"data": {
"url": "https://datasets.example.com/signed-download"
}
}