messaging
0.000001 credits per request
Consume events from a given topic.
groupstring
Optional group for the subscription
offsetstring
Optional offset to read from e.g "2006-01-02T15:04:05.999Z07:00"
topicstring
The topic to subscribe to
idstring
Unique message id
messageobject
The next json message on the topic
timestampstring
Timestamp of publishing
topicstring
The topic subscribed to
Request
Response
{
"topic": "events",
"message": {
"id": "1",
"type": "signup",
"user": "john"
}
}
0.000001 credits per request
Publish a event to the event stream.
messageobject
The json message to publish
topicstring
The topic to publish to
Request
Response
{}
0.000001 credits per request
Read stored events
limitnumber
number of events to read; default 25
offsetnumber
offset for the events; default 0
topicstring
topic to read from
eventsarray
the events
Request
Response
{
"events": [
{
"id": "123e4567-e89b-12d3-a456-426652340000",
"message": {
"id": "1",
"type": "signup",
"user": "john"
}
}
]
}