List channels
import requests
url = "https://api.datagrid.com/v1/channels"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/channels \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "channel",
"id": "<string>",
"type": "channel",
"name": "<string>",
"description": "<string>",
"teamspace_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true
}Channels
List channels
Lists shared public named channels in the resolved teamspace. Private channels, direct messages, and personal chats are intentionally omitted. q filters channel names and does not search message content.
GET
/
channels
List channels
import requests
url = "https://api.datagrid.com/v1/channels"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/channels \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "channel",
"id": "<string>",
"type": "channel",
"name": "<string>",
"description": "<string>",
"teamspace_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true
}