Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Replay history

POSThttps://api.moralis-streams.com/history/replay/:streamId/:id

Replay a specific history.

PATH PARAMS
streamIdstringrequired
The id of the stream the history will be replayed
idstringrequired
The id of the history to replay
Responses
API KEY
import Moralis from "moralis";

try {
await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});

const id = "id-1";
const streamId = "stream-1";

const { result } = await Moralis.Streams.retry({
id,
streamId,
});

console.log(result);
} catch (e) {
console.error(e);
}
Response Example
{
"id": "",
"date": "",
"payload": "",
"errorMessage": "",
"webhookUrl": "",
"streamId": "",
"tag": ""
}