New mutation (createProject)
The API
Differences between launchTextProjectAsync and createProject mutation
launchTextProjectAsync and createProject mutationFile upload
$ curl --location 'https://upload.datasaur.ai/api/static/proxy/upload' \
--header 'Authorization: Bearer ' \
--form 'file=@"/path/to/file"'
{"objectKey": "temp/upload-proxy/<unique-id>.<file-extension>"}{
"documents": [
"document": {
"name": "sample.pdf",
"objectKey": "temp/upload-proxy/some-sample-filename.pdf"
},
"extras": [
{
"name": "transcription.txt",
"externalUrl": "https://gist.githubusercontent.com/ivanm-gdp/3c2eeef9c8a124b628b1ee42fcaa07a3/raw/9d2d3c1599634764e4139defc90cd9b4502566c0/sample.txt"
}
]
]
}Migrating to the new mutation
Last updated