Getting Events

get
Get Event by ID

https://api.sentenai.com/streams/<stream-name>/events/<event-id>
Request a single event by its ID.
Request
Response
Request
Path Parameters
stream-name
required
string
event-id
required
string
Headers
Auth-Key
required
string
Your Sentenai API key
Response
200: OK
{
"duration": null,
"event": {},
"id": "XTlo-cry0yMB8PLUB0u2CbhX",
"ts": "2010-12-11T00:00:00Z"
}

get
Events from Stream

https://api.sentenai.com/streams/<stream-name>/events
Fetch raw events from a stream.
Request
Response
Request
Headers
Auth-Key
required
string
Your Sentenai API key
Query Parameters
start
optional
string
ISO 8601 encoded datetime. Events from this moment onward will be returned.
end
optional
string
ISO 8601 encoded datetime. Events up until this moment will be returned.
limit
optional
integer
Maximum number of events to be returned.
sort
optional
string
Events can be ordered `asc` for ascending and `desc` for descending.
offset
optional
number
Number of events to ignore before beginning to return events.
Response
200: OK
[
{
"duration": null,
"event": {},
"id": "XTlo-cry0yMB8PLUB0u2CbhX",
"ts": "2010-12-11T00:00:00Z"
},
{
"duration": 3600, // in seconds
"event": {},
"id": "deVDJko_C1iCt77HbRZE90Sa",
"ts": "2010-12-10T00:00:00Z"
}
]