List Files

List all files in a workspace.

GET/api/v1/files
X-API-Key<token>

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

In: header

Query Parameters

workspaceId*string

The unique identifier of the workspace.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET \  "https://www.sim.ai/api/v1/files?workspaceId=YOUR_WORKSPACE_ID" \  -H "X-API-Key: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "files": [
      {
        "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"
      }
    ],
    "totalCount": 1
  }
}
{
  "error": "string",
  "details": [
    {}
  ]
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}