cURL
curl --request POST \ --url https://api.dualship.run/api/v1/documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --header 'X-Workspace-Id: <x-workspace-id>' \ --form file='@example-file'
{ "createdAt": "<string>", "fileName": "<string>", "fileSizeBytes": 123, "fileType": "<string>", "id": "<string>", "organizationID": "<string>", "parseError": "<string>", "parseStatus": "pending", "parsedContent": "<string>", "s3Key": "<string>", "tensorlakeFileID": "<string>", "tensorlakeParseID": "<string>", "tokenCount": 123, "updatedAt": "<string>", "uploadedBy": "<string>" }
Upload a document for AI chat context
JWT Bearer token authentication
Workspace ID
Document file
Document uploaded successfully
pending
parsing
completed
failed
Was this page helpful?