List collections for the team.
import requests
url = "https://www.datalab.to/api/v1/collections"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"collections": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"archived": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"file_count": 0,
"files": []
}
],
"total": 123
}1 <= x <= 200x >= 0Was this page helpful?
import requests
url = "https://www.datalab.to/api/v1/collections"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"collections": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"archived": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"file_count": 0,
"files": []
}
],
"total": 123
}