Snapshot the current state of a room and its most recent messages.
GET {{baseUrl}}/rooms/:roomId/initialSync
Get a copy of the current state and the most recent messages in a room.
This endpoint was deprecated in r0 of this specification. There is no
direct replacement; the relevant information is returned by the
/sync
API. See the
migration guide.
RESPONSES
status: OK
{"membership":"join","messages":{"chunk":[{"$ref":"../../event-schemas/examples/m.room.message$m.text.yaml"},{"$ref":"../../event-schemas/examples/m.room.message$m.file.yaml"}],"end":"s3456_9_0","start":"t44-3453_9_0"},"room_id":"!636q39766251:example.com","state":[{"$ref":"../../event-schemas/examples/m.room.join_rules.yaml"},{"$ref":"../../event-schemas/examples/m.room.member.yaml"},{"$ref":"../../event-schemas/examples/m.room.create.yaml"},{"$ref":"../../event-schemas/examples/m.room.power_levels.yaml"}],"visibility":"private","account_data":[{"type":"m.tag","content":{"tags":{"work":{"order":"1"}}}}]}