StateSet ReSponse API Documentation
Embeddings
Attributes
Function Parameters
Channels
Channels
List Channel Threads
This endpoint gets a channel threads.
GET
/
v1
/
channel_threads
curl --location --request GET 'https://api.stateset.com/v1/channel_threads' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
{
"data": {
"message": {
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"body": "Hello World",
"created_at": "2021-01-01T00:00:00.000000Z",
"date": "2021-01-01",
"deliveredReceipt": true,
"from": "user1",
"fromMe": true,
"is_public": true,
"messageNumber": 1,
"sentReceipt": true,
"time": "00:00:00",
"timestamp": "2021-01-01T00:00:00.000000Z",
"to": "user2",
"user_id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"username": "user1"
}
}
}
Body
Response
This is the id of the channel_thread
This is the name of the channel_thread
This is the uuid of the channel_thread
This is the user_id of the channel_thread
curl --location --request GET 'https://api.stateset.com/v1/channel_threads' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
{
"data": {
"message": {
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"body": "Hello World",
"created_at": "2021-01-01T00:00:00.000000Z",
"date": "2021-01-01",
"deliveredReceipt": true,
"from": "user1",
"fromMe": true,
"is_public": true,
"messageNumber": 1,
"sentReceipt": true,
"time": "00:00:00",
"timestamp": "2021-01-01T00:00:00.000000Z",
"to": "user2",
"user_id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"username": "user1"
}
}
}
curl --location --request GET 'https://api.stateset.com/v1/channel_threads' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
{
"data": {
"message": {
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"body": "Hello World",
"created_at": "2021-01-01T00:00:00.000000Z",
"date": "2021-01-01",
"deliveredReceipt": true,
"from": "user1",
"fromMe": true,
"is_public": true,
"messageNumber": 1,
"sentReceipt": true,
"time": "00:00:00",
"timestamp": "2021-01-01T00:00:00.000000Z",
"to": "user2",
"user_id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"username": "user1"
}
}
}