Mutations
sendCustomerChat
Send a chat message on behalf of a customer into an existing CHAT-channel thread. Use this in a
headless portal integration to forward messages written by the customer in your own UI into Plain.
Unlike sendChat, threadId is required and the caller must be authenticated as a machine user.
An optional timestamp (ISO 8601, must be in the past) allows backdating messages when backfilling.
Requires the chat:create permission and the headless-portal billing entitlement.
MUTATION
sendCustomerChat(input: SendCustomerChatInput!): SendCustomerChatOutput!Arguments
input
required
Returns
chat
error
Mutation
Variables
Response
Mutation
Variables
Response

