Chats
Resources for interacting with other Skool accounts through the chat
Query parameters
pageintegerRequired
session_idstringRequired
Header parameters
x-api-secretstringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /v1/chats/?page=1&session_id=text HTTP/1.1
Host:
x-api-secret: text
Accept: */*
[
{
"id": "text",
"last_message_id": "text",
"user": {
"id": "text",
"username": "text",
"first_name": "text",
"last_name": "text",
"picture_bubble": "text",
"picture_profile": "text"
}
}
]
Path parameters
chat_idstringRequired
Query parameters
message_idstringRequired
limitinteger · max: 50Required
session_idstringRequired
Header parameters
x-api-secretstringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /v1/chats/{chat_id}?message_id=text&limit=1&session_id=text HTTP/1.1
Host:
x-api-secret: text
Accept: */*
[
{
"id": "text",
"author_id": "text",
"content": "text"
}
]
Path parameters
chat_idstringRequired
Query parameters
session_idstringRequired
Header parameters
x-api-secretstringRequired
Body
contentstringRequired
Responses
201
Successful Response
application/json
Responseany
422
Validation Error
application/json
post
POST /v1/chats/{chat_id}?session_id=text HTTP/1.1
Host:
x-api-secret: text
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"content": "text"
}
No content
Path parameters
chat_idstringRequired
Query parameters
session_idstringRequired
Header parameters
x-api-secretstringRequired
Responses
204
Successful Response
422
Validation Error
application/json
post
POST /v1/chats/{chat_id}/read?session_id=text HTTP/1.1
Host:
x-api-secret: text
Accept: */*
No content
Path parameters
chat_idstringRequired
Query parameters
session_idstringRequired
Header parameters
x-api-secretstringRequired
Responses
204
Successful Response
422
Validation Error
application/json
post
POST /v1/chats/{chat_id}/unread?session_id=text HTTP/1.1
Host:
x-api-secret: text
Accept: */*
No content