Skip to main content

How it works

1

Prepare

Send file metadata to get upload URLs for each file.
2

Upload

Upload each file to the returned URL using a multipart form POST.
3

Confirm

Send the source IDs back to confirm and start processing.

Prepare upload

URL: POST https://api.wolfia.com/v1/content-source/prepare-upload Authentication: API key required (see API overview for setup)

Request parameters

Supported file types

Response (200 OK)

Returns an upload URL and form fields for each file. Use these to upload the file content directly.

Upload files

Use the upload_url and fields from the prepare response. Include all fields as form fields, then append the file as the last field.
The file field must be the last field in the multipart form data.

Confirm upload

URL: POST https://api.wolfia.com/v1/content-source/confirm-upload Authentication: API key required (see API overview for setup)

Request parameters

Response (200 OK)

Integration example

Python: upload a directory of documents

Error responses

Best practices

Send multiple files in one prepare call to reduce round trips.
If some files fail during upload, confirm only the successful ones. The confirm endpoint processes each ID independently.
Use the context field to describe what the document covers. This helps Wolfia extract more relevant knowledge.

Getting help

  • Check permissions: API key owner needs Expert or Admin role
  • Verify file types: Use a supported extension and correct MIME type
  • Contact support: Email support@wolfia.com

Next steps

API overview

Authentication, rate limits, and error handling

Questionnaires

Upload, list, search, and track questionnaires