Matrix client implementation: To device
Created by: bassory99
PUT /_matrix/client/r0/sendToDevice/{eventType}/{txnId} HTTP/1.1 Content-Type: application/json
{
"messages": {
"@alice:example.com": {
"TLLBEANAAG": {
"example_content_key": "value"
}
}
}
}
Request format
Parameter | Type | Description |
---|---|---|
Path parameters | ||
eventType | string | Required. The type of event to send. |
txnId | string | Required. The transaction ID for this event. Clients should generate an ID unique across requests with the same access token; it will be used by the server to ensure idempotency of requests. |
JSON body parameters | ||
messages | {string: {string: EventContent}} | The messages to send. A map from user ID, to a map from device ID to message body. The device ID may also be *, meaning all known devices for the user. |
Response format
{}
Rate-limited: No. Requires auth: Yes.