Frequently Asked Question

How do I upload documents to a matter through the API?

Send a multipart/form-data POST to https://app.fluentcase.com/api/documents with an API token:

curl -X POST https://app.fluentcase.com/api/documents \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -F "files[]=@/path/to/file.pdf" \
  -F "matter_id=5301"
  • files[] (required): one or more files, up to 384 MB each.
  • matter_id (optional): the matter to file the documents under.
  • doc_dates (optional): a JSON object mapping file names to document dates, e.g. {"file.pdf":"2024-01-01"}.

The response lists the documents that were created. Full details are in the FluentCase API documentation.