For the complete documentation index, see llms.txt. This page is also available as Markdown.

Files

Upload inputs and download exports.

Endpoints

MethodPathScopeCreditsDescription
POST/v1/filesfiles:write0Upload
GET/v1/files/{id}files:read0Retrieve metadata + download URL

Upload

Files are uploaded as multipart/form-data, never as JSON. Two constraints, both enforced at upload: 100 MB maximum, and purpose=document accepts application/pdf only.

curl https://api.scispace.com/v1/files \ -H "Authorization: Bearer $SCISPACE_API_KEY" \ -H "SciSpace-Version: 2026-08-01" \ -F "purpose=document" \ -F "file=@Attention is all you need.pdf;type=application/pdf"
json
{ "object": "file", "id": "file_qwqxq7ix10", "purpose": "document", "filename": "Attention is all you need.pdf", "mime_type": "application/pdf", "byte_size": 2214883, "created_at": "2026-08-11T09:19:58Z" }

Uploading is free and does nothing on its own — a file is inert until you reference it, usually from documents. Unreferenced files are deleted after 24 hours.

error.codeCause
file_too_largeover 100 MB
file_unsupported_typepurpose=document with a non-PDF
file_emptyzero bytes

Constraints

ConstraintValue
Max size100 MB
Accepted types (ingest)application/pdf
Download URL expiry1 hour

Errors

StatuscodeWhen
400file_too_largeover 100 MB
400unsupported_file_typenon-PDF for document ingest

file · documents · extractions

Last updated