Skip to main content

Get Event Info

Retrieves info about a specific event by ID and the associated event history

GET 'https://app.jiter.dev/api/events/:eventId'

Request Parameters

ParameterDescriptionExample
eventIdID of the event you want to retrieve47

Response

CodeDescription
200Event returned successfully
404Event was not found
500An error ocurred finding the event

Example Usage

index.ts
import axios from "axios";

const apiBaseUrl = "https://app.jiter.dev/api";

const getEvent = async () => {
try {
const { data } = await axios.get(`${apiBaseUrl}/events/47`, {
headers: { "x-api-key": "YOUR_API_KEY" },
});

console.log("Event found 🎉", data);
} catch (error) {
console.log("Unable to find event", error);
}
};

getEvent();

Example Success Response

{
"id": "9",
"scheduledTime": "2022-10-27T04:50:26.573Z",
"destination": "https://your-app.com/webhooks/jiter",
"org": "5",
"status": "Pending",
"payload": "{'action':'buyGroceries','values':['eggs','bacon','pasta','bread']}",
"createdAt": "2022-10-05T19:51:27.000Z",
"updatedAt": "2022-10-05T19:51:27.000Z"
}

Example Error Response

{
"message": "Unable to find event"
}