POST
/
api
/
v1
/
collection
/
insert-pdf
curl --request POST \
  --url https://app.twilix.io/api/v1/collection/insert-pdf \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collection": "<string>",
  "url": "<string>"
}'

Insert a PDF into your collection.

collection
string

The collection to insert the data into.

url
string

Public url of the PDF to insert.

Note that this currently requires the URL of the pdf to be publically accessible. We do not currently support storage of the PDF. We recommend using an S3-like storage with public read access.

If you would like us to support public uploads, feel free to message us on Discord to discuss your data privacy needs.

Content-Type
default: "application/json"required

Requires JSON Content Type