List workspace files
curl --request GET \
--url https://developer.creao.ai/v1/workspaces/{workspace_id}/files \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/workspaces/{workspace_id}/files';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/workspaces/{workspace_id}/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"sha256": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"offset": 123
}Workspace Files
List workspace files
List root uploads in a personal workspace.
GET
/
v1
/
workspaces
/
{workspace_id}
/
files
List workspace files
curl --request GET \
--url https://developer.creao.ai/v1/workspaces/{workspace_id}/files \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/workspaces/{workspace_id}/files';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/workspaces/{workspace_id}/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"sha256": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"offset": 123
}Authorizations
bearerAuthapiKeyQuery
Account API key from Developer Console. Keys start with cr_sk_.
Path Parameters
Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 0Case-insensitive substring of the display name.
Exact MIME type filter.