Pre-signed URL generated successfully
import { GetInboxPreSignedUrlResponse } from "@midday-ai/sdk/models/operations";
let value: GetInboxPreSignedUrlResponse = {
url:
"https://service.midday.ai/storage/v1/object/sign/vault/inbox/document.pdf?token=abc123&expires=1640995200",
expiresAt: new Date("2024-04-15T10:01:00.000Z"),
fileName: "invoice.pdf",
};| Field | Type | Required | Description | Example |
|---|---|---|---|---|
url |
string | ✔️ | Pre-signed URL for accessing the inbox attachment, valid for 60 seconds | https://service.midday.ai/storage/v1/object/sign/vault/inbox/document.pdf?token=abc123&expires=1640995200 |
expiresAt |
Date | ✔️ | ISO 8601 timestamp when the URL expires | 2024-04-15T10:01:00.000Z |
fileName |
string | ✔️ | Original filename of the inbox attachment | invoice.pdf |