POST
/
silo
/
v1
/
spool
cURL
curl --request POST \
  --url https://api.invopop.com/silo/v1/spool \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": "aSDinaTvuI8gbWludGxpZnk=",
  "name": "invoice.xml",
  "type": "application/xml"
}'
{
  "key": "<string>"
}
The Silo Spool service can be used by Applications as a temporary file store. This can be useful for example when processing documents that need additional processing before before added to a Silo Entry as an attachment. Additioanlly, the Silo Spool will be used in the Transform Jobs API when uploading files as data URIs.

Authorizations

Authorization
string
header
required

Use the Bearer scheme with a valid JWT token to authenticate requests. Example: Authorization: Bearer <token>

Body

application/json
data
string<byte>

Base64 encoded binary data.

name
string

File name associated with the data.

Example:

"invoice.xml"

type
string

MIME Type of the data

Example:

"application/xml"

Response

200 - application/json

OK

key
string

Use this key to download the file again later.