Download OpenAPI specification:Download
| documentSlotPublicId | string |
| documentPublicId | string if we need to attach files to a specific document, new document will be created if not provided |
| pathPrefix required | string path prefix for the files, should be provided by Matchio |
| userId required | string |
required | object |
{- "documentSlotPublicId": "string",
- "documentPublicId": "string",
- "pathPrefix": "string",
- "userId": "string",
- "documentTemplate": {
- "id": 0,
- "maxFilesCount": 0,
- "allowedFilesMimeTypes": [
- "string"
], - "maxFileSize": 0,
- "fileExtensionsMessage": "string",
- "allowDescription": true,
- "allowExpirationDate": true,
- "crop": {
- "allowCrop": true,
- "cropRatio": 0,
- "requireCrop": true
}, - "preferableTimeZone": "string",
- "preferableDateFormat": "string"
}
}{- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkb2NUeXBlIjoicGl6emFkYXkiLCJhaWQiOiJwaXp6YWRheSIsImlhdCI6MTcxMzE5NTI1MCwiZXhwIjoxNzEzMTk4ODUwfQ.NosVCVir9ShJ1SPKiAss7nMNGCSCtQGs3oaZR3CzBLU"
}| documentSlotPublicId | string |
| documentPublicId | string if we need to attach files to a specific document, new document will be created if not provided |
| pathPrefix | string path prefix for the files, should be provided by Matchio |
| userId | string |
object | |
required | Array of objects |
{- "documentSlotPublicId": "string",
- "documentPublicId": "string",
- "pathPrefix": "string",
- "userId": "string",
- "documentTemplate": {
- "id": 0,
- "maxFilesCount": 0,
- "allowedFilesMimeTypes": [
- "string"
], - "maxFileSize": 0,
- "fileExtensionsMessage": "string",
- "allowDescription": true,
- "allowExpirationDate": true,
- "crop": {
- "allowCrop": true,
- "cropRatio": 0,
- "requireCrop": true
}
}, - "fileOptions": [
- {
- "fileSize": 0,
- "fileMimeType": "string"
}
]
}{- "urls": [
- {
- "fileOptions": {
- "fileSize": 0,
- "fileMimeType": "string"
}, - "filePath": "string",
- "uploadUrl": "string"
}
]
}required | Array of objects |
{- "files": [
- {
- "filePublicId": "string",
- "filePath": "string"
}
]
}[- {
- "filePublicId": "string",
- "filePath": "string",
}
]required | Array of objects |
| mergedFilePath required | string |
| mergedFileName required | string |
object |
{- "files": [
- {
- "filePath": "string",
- "fileMimeType": "string",
- "documentName": "string",
- "description": "string"
}
], - "mergedFilePath": "string",
- "mergedFileName": "string",
- "pdfConfigurationOptions": {
- "pageSizeName": "string",
- "pageOrientation": "string",
- "imageHorizontalAlignment": "string",
- "imageVerticalAlignment": "string",
- "pageLayout": {
- "columns": 0,
- "rows": 0,
- "spacing": 0
}, - "marginTop": 0,
- "marginRight": 0,
- "marginBottom": 0,
- "marginLeft": 0,
- "imageOptimization": {
- "enabled": true,
- "jpegQuality": 0,
- "pngCompressionLevel": 0,
- "pixelDensity": 0
}, - "showDocumentName": true,
- "showDescription": true,
- "documentNameFontSize": 0,
- "descriptionFontSize": 0,
- "textColor": {
- "r": 0,
- "g": 0,
- "b": 0
}
}
}{- "status": "string",
- "mergedFilePath": "string"
}Adds multi-line formatted text to a PDF document with support for custom positioning, fonts, colors, line spacing, and paragraph spacing
| filePath required | string S3 path to the source PDF file |
| outputFilePath required | string S3 path where the filled PDF should be saved |
| text required | string Multi-line text to add to the PDF. Use \n for line breaks, empty lines create paragraph spacing. |
required | object Text formatting options for positioning and styling |
{- "filePath": "documents/original.pdf",
- "outputFilePath": "documents/filled.pdf",
- "text": "Dear U.S. Official,\n\nThis letter confirms that John Doe has been accepted to the J-1 Camp Counselor Exchange Visitor Program.\n\nWe thank you for your time.\n\nSincerely,\n",
- "textOptions": {
- "startX": 50,
- "startY": 100,
- "fontSize": 11,
- "font": "Helvetica",
- "color": {
- "r": 0,
- "g": 0,
- "b": 0
}, - "lineSpacing": 16,
- "paragraphSpacing": 32,
- "maxWidth": 495
}
}{- "status": "success",
- "filePath": "documents/filled.pdf",
- "fileSize": 245678
}{- "id": 0,
- "maxFilesCount": 0,
- "allowedFilesMimeTypes": [
- "string"
], - "maxFileSize": 0,
- "fileExtensionsMessage": "string",
- "allowDescription": true,
- "allowExpirationDate": true,
- "crop": {
- "allowCrop": true,
- "cropRatio": 0,
- "requireCrop": true
}
}| documentSlotPublicId | string |
| documentPublicId | string if we need to attach files to a specific document, new document will be created if not provided |
| pathPrefix | string path prefix for the files, should be provided by Matchio |
| userId | string |
object | |
required | Array of objects |
{- "documentSlotPublicId": "string",
- "documentPublicId": "string",
- "pathPrefix": "string",
- "userId": "string",
- "documentTemplate": {
- "id": 0,
- "maxFilesCount": 0,
- "allowedFilesMimeTypes": [
- "string"
], - "maxFileSize": 0,
- "fileExtensionsMessage": "string",
- "allowDescription": true,
- "allowExpirationDate": true,
- "crop": {
- "allowCrop": true,
- "cropRatio": 0,
- "requireCrop": true
}
}, - "fileOptions": [
- {
- "fileSize": 0,
- "fileMimeType": "string"
}
]
}{- "urls": [
- {
- "fileOptions": {
- "fileSize": 0,
- "fileMimeType": "string"
}, - "uploadUrl": "string",
- "filePath": "string"
}
]
}| expirationDate | string |
required | Array of objects |
{- "expirationDate": "string",
- "files": [
- {
- "filePath": "string",
- "fileOriginalName": "string",
- "fileSize": 0,
- "fileMimeType": "string",
- "description": "string"
}
]
}{- "created": [
- {
- "filePath": "string",
- "fileOriginalName": "string",
- "fileSize": 0,
- "fileMimeType": "string",
- "description": "string"
}
], - "ommited": [
- {
- "filePath": "string",
- "fileOriginalName": "string",
- "fileSize": 0,
- "fileMimeType": "string",
- "description": "string",
- "omissionReason": "string"
}
]
}