Admin API / Mutations
sendDirectMessage
Sends a direct message to a member as the caller. A first message needs an order or an offer between the two users in this store, a mutual follow, or an OWNER caller and a recipient who is an ACTIVE member or an applicant; the mutation never creates a message request. A reply in an existing conversation needs none, and a reply to a request accepts it. After the commit, the recipient gets the realtime event, a push and an email. A repeat with the same idempotencyKey and input within 24 hours returns the first message. A caller can send at most 20 direct messages a minute and 200 in 24 hours (DirectMessageRateLimitWindow). A send over a limit gives DirectMessageRateLimitedError, also a repeat of a key whose first send has not finished.
admin:chat:writeRequires this member role or higher: SELLERsendDirectMessage(
input: SendDirectMessageInput!
): SendDirectMessagePayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | SendDirectMessageInput! | The message to send and the idempotency key. |