Mutation
mutation CreateChatAppSecret($input: CreateChatAppSecretInput!) {
createChatAppSecret(input: $input) {
chatAppSecret {
chatAppId
secret
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"chatAppId": "id"
}
}Response
{
"data": {
"createChatAppSecret": {
"chatAppSecret": {
"chatAppId": "id",
"secret": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createChatAppSecret
Generate a signing secret for a chat app used to authenticate incoming webhook requests.
If a secret already exists for the given chat app it is deleted and replaced — the new secret
is the only time the raw value is returned. Store it securely immediately after creation.
Requires the chatAppSecret:create permission and the live-chat billing entitlement.
MUTATION
createChatAppSecret(input: CreateChatAppSecretInput!): CreateChatAppSecretOutput!Arguments
input
required
Returns
chatAppSecret
error
Mutation
mutation CreateChatAppSecret($input: CreateChatAppSecretInput!) {
createChatAppSecret(input: $input) {
chatAppSecret {
chatAppId
secret
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"chatAppId": "id"
}
}Response
{
"data": {
"createChatAppSecret": {
"chatAppSecret": {
"chatAppId": "id",
"secret": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

