Query
query ChatAppSecret($chatAppId: ID!) {
chatAppSecret(chatAppId: $chatAppId) {
chatAppId
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
}
}Variables
{
"chatAppId": "id"
}Response
{
"data": {
"chatAppSecret": {
"chatAppId": "id",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
}
}
}
}Queries
chatAppSecret
Check whether a signing secret exists for a chat app. Returns metadata about the secret (creation time,
actor) but never the secret value itself — the raw secret is only returned once, at creation time via
createChatAppSecret. Returns null if no secret has been created for the given chat app.
Requires the chatAppSecret:read permission.
QUERY
chatAppSecret(chatAppId: ID!): ChatAppHiddenSecretArguments
chatAppId
ID!
required
Returns
chatAppId
ID!
createdAt
createdBy
updatedAt
updatedBy
Query
query ChatAppSecret($chatAppId: ID!) {
chatAppSecret(chatAppId: $chatAppId) {
chatAppId
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
userId
user {
__typename
}
}
}
}
}Variables
{
"chatAppId": "id"
}Response
{
"data": {
"chatAppSecret": {
"chatAppId": "id",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor",
"userId": "id",
"user": {
"__typename": "User"
}
}
}
}
}Was this page helpful?

