Realtime
Get channel message history
Retrieve historical messages from a realtime channel, returned in chronological order.
Use start and end (cursor IDs in {ms}-{seq} format) to paginate through history. Use "-" for the beginning and "+" for the latest message. Maximum of 1 000 messages can be returned in a single request.
get/api/realtime/{project_id}/messages
Request
- Base URLhttps://core.blink.new
- URLhttps://core.blink.new/api/realtime/{project_id}/messages
- AuthHTTP bearer
Path parameters
project_idstring required
Example:my-project-123
Unique identifier for the project
Query parameters
channelstring required
Example:chat-room-1
Name of the channel to fetch messages from
limitinteger
Example:50
Maximum number of messages to return (capped at 1 000)
startstring
Example:1640995100000-0
Cursor ID to start from (inclusive). Use "-" for the oldest available message.
endstring
Example:+
Cursor ID to end at (inclusive). Use "+" for the latest message.
Response
Messages retrieved successfully
Changes
No recorded changes to this operation across all 1 revision of this API.