Getting events for a room
Last updated
Last updated
GET
https://{{tekos_homeserver}}/_matrix/client/r0/rooms/{roomId}/event/{eventId}
Get a single event based on roomId/eventId. You must have permission to retrieve this event e.g. by being a member in the room for this event.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Example request:
eventId
string
The event ID to get.
roomId
string
The ID of the room the event is in.
tekos_homeserver
string
Your home server address, the default one is m.tekos.co, but we suggest to use env.get('BASE_URL') this variable should contain address to your home server stored on our S3 server.
access_token
string
Access Token of the user or bot that will send a message.
msg.payload
object
See the Events avalible for the body.
Event
Parameter
Type
Description
content
object
Required. The fields in this object will vary depending on the type of event. When interacting with the REST API, this is the HTTP body.
type
string
Required. The type of event. This SHOULD be namespaced similar to Java package naming conventions e.g. 'com.example.subdomain.event.type'