Files API¶
Upload files for analysis and download them again. See Files.
Paths are relative to https://<your-atlas-host>/api/v1. For the API key and headers every
request needs, see Authentication.
Endpoint |
What it does |
|---|---|
List files in a workspace |
|
Upload a file to a workspace for processing |
|
Get a file’s details and processing status |
|
Delete a file |
|
Rename a file’s user-facing display name |
|
Download a file’s original content |
|
Re-run parsing/profiling for a file (e.g |
List files¶
GET /files/
List files in a workspace.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
UUID |
Yes |
|
|
query |
string |
|
|
|
query |
string |
|
|
|
query |
string |
Case-insensitive search on the file name. |
|
|
query |
integer |
||
|
query |
integer |
Response A list of objects:
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
integer |
|
|
string |
From the extension: |
|
string |
|
|
string |
|
|
string |
AI-generated summary of the file’s content. |
|
object |
Structure extracted from the file, such as columns, row count, and sheets. |
|
UUID |
|
|
datetime |
|
|
datetime |
|
|
boolean |
Pending or processing for over 30 minutes without progress; reprocess it. |
Upload file¶
POST /files/upload/
Upload a file to a workspace for processing.
Form fields
Field |
Type |
Required |
|---|---|---|
|
file |
Yes |
|
UUID |
Yes |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
integer |
|
|
string |
From the extension: |
|
string |
|
|
string |
|
|
string |
AI-generated summary of the file’s content. |
|
object |
Structure extracted from the file, such as columns, row count, and sheets. |
|
UUID |
|
|
datetime |
|
|
datetime |
|
|
boolean |
Pending or processing for over 30 minutes without progress; reprocess it. |
Get file¶
GET /files/{file_id}/
Get a file’s details and processing status.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
integer |
|
|
string |
From the extension: |
|
string |
|
|
string |
|
|
string |
AI-generated summary of the file’s content. |
|
object |
Structure extracted from the file, such as columns, row count, and sheets. |
|
UUID |
|
|
datetime |
|
|
datetime |
|
|
boolean |
Pending or processing for over 30 minutes without progress; reprocess it. |
Delete file¶
DELETE /files/{file_id}/
Delete a file.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
The raw file content.
Rename file¶
PATCH /files/{file_id}/
Rename a file’s user-facing display name.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Request body
Field |
Type |
Required |
|---|---|---|
|
string |
Yes |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
integer |
|
|
string |
From the extension: |
|
string |
|
|
string |
|
|
string |
AI-generated summary of the file’s content. |
|
object |
Structure extracted from the file, such as columns, row count, and sheets. |
|
UUID |
|
|
datetime |
|
|
datetime |
|
|
boolean |
Pending or processing for over 30 minutes without progress; reprocess it. |
Download file¶
GET /files/{file_id}/download/
Download a file’s original content.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
The raw file content.
Reprocess file¶
POST /files/{file_id}/reprocess/
Re-run parsing/profiling for a file (e.g. after a processing failure).
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
Field |
Type |
Description |
|---|---|---|
|
UUID |
|
|
string |
|
|
string |
|
|
UUID |
|
|
string |
|
|
string |
|
|
integer |
|
|
string |
From the extension: |
|
string |
|
|
string |
|
|
string |
AI-generated summary of the file’s content. |
|
object |
Structure extracted from the file, such as columns, row count, and sheets. |
|
UUID |
|
|
datetime |
|
|
datetime |
|
|
boolean |
Pending or processing for over 30 minutes without progress; reprocess it. |
What’s next?¶
API overview: authentication, worked examples, and error handling
Webhooks: get events pushed to your systems instead of polling
Service accounts: create the key an integration uses