Sign mail history upload parts
Returns ten-minute presigned PUT URLs for up to 16 distinct, one-based part numbers.
POST
Returns ten-minute presigned PUT URLs for up to 16 distinct, one-based part numbers. Send each contiguous part with the returned sizeBytes as Content-Length and keep its ETag response header. Request fresh URLs as needed.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$importId*stringarchiveId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$Format
uuidapplication/json- body
partNumbers*array<>Items
1 <= items <= 16Success
application/json- response
parts*array<>import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.mailboxes.signImportUploadParts({
"id": "example",
"importId": "example",
"archiveId": "example",
"partNumbers": [
1
]
});Example Response
{
"parts": [
{
"partNumber": 1,
"sizeBytes": 1,
"uploadUrl": "string"
}
]
}