Documents
List the files in the user bucket.
Authorizations
Path parameters
org_idstringRequired
The organization ID
user_idstringRequired
The user ID
flow_idstringRequired
The flow ID of the document
node_idstringRequired
The node ID of the document
Responses
200
Successful Response
application/json
Responsestring[]
422
Validation Error
application/json
get
/documents/{org_id}/{flow_id}/{node_id}/{user_id}GET /documents/{org_id}/{flow_id}/{node_id}/{user_id} HTTP/1.1
Host: api.stack-ai.com
Accept: */*
[
"text"
]Upload the file to the user bucket for a document node.
Authorizations
Path parameters
org_idstringRequired
The organization ID
user_idstringRequired
The user ID
flow_idstringRequired
The flow ID of the document
node_idstringRequired
The node ID of the document
Body
anyOptional
Responses
200
Successful Response
application/json
Responseobject · ResponseUploadToUserBucketDocumentsOrgIdFlowIdNodeIdUserIdPost
422
Validation Error
application/json
post
/documents/{org_id}/{flow_id}/{node_id}/{user_id}POST /documents/{org_id}/{flow_id}/{node_id}/{user_id} HTTP/1.1
Host: api.stack-ai.com
Content-Type: multipart/form-data
Accept: */*
{}Delete the file from the user bucket.
Authorizations
Path parameters
org_idstringRequired
The organization ID
user_idstringRequired
The user ID
flow_idstringRequired
The flow ID of the document
node_idstringRequired
The node ID of the document
Query parameters
filenamestringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
delete
/documents/{org_id}/{flow_id}/{node_id}/{user_id}DELETE /documents/{org_id}/{flow_id}/{node_id}/{user_id}?filename=text HTTP/1.1
Host: api.stack-ai.com
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": true
}Download the file from the user bucket.
Authorizations
Path parameters
org_idstringRequired
The organization ID
user_idstringRequired
The user ID
flow_idstringRequired
The flow ID of the document
node_idstringRequired
The node ID of the document
Query parameters
filenamestringRequired
Responses
200
Successful Response
application/json
Responseany
422
Validation Error
application/json
get
/documents/{org_id}/{flow_id}/{node_id}/{user_id}/fileGET /documents/{org_id}/{flow_id}/{node_id}/{user_id}/file?filename=text HTTP/1.1
Host: api.stack-ai.com
Accept: */*
No content
Was this helpful?

