Upload Doc

Upload a doc to a workspace. Send the doc as multipart/form-data with a `doc` field and a `workspaceId` field. Maximum doc size is 100MB. Duplicate docnames within a workspace are not allowed.

POST/api/v1/docs
X-API-Key<token>

Your SteelEngine API key (personal or workspace). Generate one from the SteelEngine dashboard under Settings > API Keys.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/docs" \  -F file="string" \  -F workspaceId="string"
{  "success": true,  "data": {    "file": {      "id": "file_abc123",      "name": "data.csv",      "size": 1024,      "type": "text/csv",      "key": "files/wsp_abc123/data.csv",      "uploadedBy": "user_abc123",      "uploadedAt": "2026-01-15T10:30:00Z"    },    "message": "File uploaded successfully"  }}