Query
query ChatApp($chatAppId: ID!) {
chatApp(chatAppId: $chatAppId) {
id
name
logo {
id
fileName
fileSize {
bytes
kiloBytes
megaBytes
}
fileExtension
fileMimeType
visibility
}
businessHoursSchedules {
id
name
timezone {
name
}
slots {
timezone {
__typename
}
weekday
opensAt
closesAt
}
overrides {
edges {
__typename
}
pageInfo {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
}
}Variables
{
"chatAppId": "id"
}Response
{
"data": {
"chatApp": {
"id": "id",
"name": "string",
"logo": {
"id": "id",
"fileName": "string",
"fileSize": {
"bytes": 1,
"kiloBytes": 1.5,
"megaBytes": 1.5
},
"fileExtension": "string",
"fileMimeType": "string",
"visibility": "PRIVATE"
},
"businessHoursSchedules": [
{
"id": "id",
"name": "string",
"timezone": {
"name": "string"
},
"slots": [
{
"timezone": {
"__typename": "Timezone"
},
"weekday": "MONDAY",
"opensAt": "string",
"closesAt": "string"
}
],
"overrides": {
"edges": [
{
"__typename": "BusinessHoursOverrideEdge"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
}
],
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
}
}
}
}Queries
chatApp
Fetch a single chat app by its ID. Returns null if no chat app with that ID exists in the workspace.
Requires the chatApp:read permission. Deleting a chat app is done by the user in the Plain app. The Plain app page is https://app.plain.com/workspace/w_…/settings/chat/<chatAppId>.
QUERY
chatApp(chatAppId: ID!): ChatAppArguments
chatAppId
ID!
required
Returns
id
ID!
name
String!
logo
An optional image used to represent this chat app in the Plain UI.
businessHoursSchedules
The business hours schedules linked to this chat app. Empty if none are selected.
createdAt
createdBy
updatedAt
updatedBy
Query
query ChatApp($chatAppId: ID!) {
chatApp(chatAppId: $chatAppId) {
id
name
logo {
id
fileName
fileSize {
bytes
kiloBytes
megaBytes
}
fileExtension
fileMimeType
visibility
}
businessHoursSchedules {
id
name
timezone {
name
}
slots {
timezone {
__typename
}
weekday
opensAt
closesAt
}
overrides {
edges {
__typename
}
pageInfo {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
}
}Variables
{
"chatAppId": "id"
}Response
{
"data": {
"chatApp": {
"id": "id",
"name": "string",
"logo": {
"id": "id",
"fileName": "string",
"fileSize": {
"bytes": 1,
"kiloBytes": 1.5,
"megaBytes": 1.5
},
"fileExtension": "string",
"fileMimeType": "string",
"visibility": "PRIVATE"
},
"businessHoursSchedules": [
{
"id": "id",
"name": "string",
"timezone": {
"name": "string"
},
"slots": [
{
"timezone": {
"__typename": "Timezone"
},
"weekday": "MONDAY",
"opensAt": "string",
"closesAt": "string"
}
],
"overrides": {
"edges": [
{
"__typename": "BusinessHoursOverrideEdge"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
}
],
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
}
}
}
}Was this page helpful?

