Stacksync File System
Stacksync File System provides standard way to receive, securely store, and reuse files across workflow modules.
Last updated
curl --request 'POST' \
--url 'https://<region>.api.workflows.stacksync.com/workspaces/<workspace_ID>/workflows/<workflow_ID>:latest_draft/triggers/post_trigger/run' \
--form 'file=@/absolute/path/to/invoice.pdf;type=application/pdf'
{
"body": {
"files": [
{
"file_id": "72ef30a9-ea74-41b2-96da-a0643c6d5d4c",
"name": "invoice.pdf",
"mime_type": "application/pdf",
"pointer": "file"
}
]
}
}curl --request 'POST' \
--url 'https://<region>.api.workflows.stacksync.com/workspaces/<workspace_ID>/workflows/<Workflow>:latest_draft/triggers/post_trigger/run' \
--header 'Content-Type: application/json' \
--data '{
"attachments": [
{
"file": {
"name": "invoice.pdf",
"contentType": "application/pdf",
"contentBytes": "JVBERi0xLjQKJc..."
}
}
]
}'{
"body": {
"attachments": [
{
"file": {
"name": "invoice.pdf",
"contentType": "application/pdf",
"file_id": "72ef30a9-ea74-41b2-96da-a0643c6d5d4c",
"pointer": "attachments[0].file"
}
}
]
}
}