Documents may be uploaded via the REST API or by using the One Codex CLI or Python client library. The latter two options are simpler and thus recommended. In every case, we replace spaces in filenames with underscores. To upload with the CLI, simply:Documentation Index
Fetch the complete documentation index at: https://developer.onecodex.com/llms.txt
Use this file to discover all available pages before exploring further.
- (1) Initiating an upload by POSTing to
/documents/init_upload - (2) Uploading the document to the provided
upload_urland with anyadditional_fieldsprovided. See the Starting an Upload documentation for more details. - (3) Confirming the upload by POSTing to
/documents/confirm_upload
Documents over 20GB
The above upload mechanisms currently only allow document uploads up to 20GB (optionally compressed withgzip). If you need to upload a compressed file over 20GB, please contact us at support@onecodex.com and we can provide an alternative upload or file import mechanism for your situation.
