Documents

List Files In User Bucket

get

List the files in the user bucket.

Authorizations
OAuth2passwordRequired
Token URL:
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[]
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
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  "text"
]

Upload To User Bucket

post

Upload the file to the user bucket for a document node.

Authorizations
OAuth2passwordRequired
Token URL:
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
filestring · binaryOptional
Responses
200

Successful Response

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
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17

{
  "file": "binary"
}
{
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Delete From User Bucket

delete

Delete the file from the user bucket.

Authorizations
OAuth2passwordRequired
Token URL:
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
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
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "ANY_ADDITIONAL_PROPERTY": true
}

Download From User Bucket

get

Download the file from the user bucket.

Authorizations
OAuth2passwordRequired
Token URL:
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
get
/documents/{org_id}/{flow_id}/{node_id}/{user_id}/file
GET /documents/{org_id}/{flow_id}/{node_id}/{user_id}/file?filename=text HTTP/1.1
Host: api.stack-ai.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Last updated

Was this helpful?