Events
List events
Your workspace’s events from the last 30 days, newest first, optionally only some types. Use it to catch up after your endpoint was down.
Needs an API key with the generations:read scope.
GET
https://api.tryleap.ai
/
v1
/
events
List events
curl --request GET \
--url https://api.tryleap.ai/v1/events \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tryleap.ai/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tryleap.ai/v1/events"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"url": "/v1/events",
"data": [
{
"id": "evt_9Wc3Yb1Dq7Hm2Vx4Lr8Kp6Tn",
"object": "event",
"type": "generation.succeeded",
"api_version": "2026-10-04",
"created_at": "2026-10-04T18:24:12.031Z",
"data": {
"object": {
"id": "gen_7Hq2mVx9Lr4Kp8Tn3Wc6Yb1D",
"object": "generation",
"model": "google/veo-3.1-fast",
"modality": "video",
"status": "succeeded",
"provider": "gateway",
"revision": "2026-10-02",
"input": {
"prompt": "A heron lands on a still lake at dawn",
"aspect_ratio": "16:9",
"n": 1,
"duration": 4,
"resolution": "1080p",
"audio": true
},
"output": [
{
"type": "video",
"url": "https://api.tryleap.ai/files/eyJrIjoibWVkaWEvb3V0cHV0cy9nZW5fN0hxMm1WeDlMcjRLcDhUbjNXYzZZYjFEIn0",
"expires_at": "2026-10-05T18:24:12.004Z",
"content_type": "video/mp4",
"width": 1920,
"height": 1080,
"poster": {
"url": "https://api.tryleap.ai/files/eyJrIjoibWVkaWEvb3V0cHV0cy9nZW5fN0hxMm1WeDlMcjRLcDhUbjNXYzZZYjFEIn0",
"expires_at": "2026-10-05T18:24:12.004Z",
"width": 720,
"height": 405
}
}
],
"error": null,
"failure_cause": null,
"usage": {
"cost_usd": "0.80"
},
"source": "api",
"batch_id": null,
"created_at": "2026-10-04T18:22:41.512Z",
"started_at": "2026-10-04T18:22:42.090Z",
"completed_at": "2026-10-04T18:24:11.877Z",
"slow_at": null,
"deadline_at": null,
"suggested_recipe": null
}
}
}
],
"has_more": true,
"next_cursor": "eyJpZCI6ImV2dF85V2MzWWIxRHE3SG0yVng0THI4S3A2VG4ifQ.4Kx9Qm7Lr1Tn5Wc3Yb8Df6Gh0Jk2Mn4Pq6Rs8Tv0XyZ"
}
Authorizations
ApiKeyBearer
Your workspace API key, leap_.... Create one at https://app.tryleap.ai/go/api, and keep it on your server.
Query Parameters
Response
A page of events.
Forward list envelope. Live lists are not snapshots; totals are not promised.
⌘I
List events
curl --request GET \
--url https://api.tryleap.ai/v1/events \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tryleap.ai/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tryleap.ai/v1/events"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"url": "/v1/events",
"data": [
{
"id": "evt_9Wc3Yb1Dq7Hm2Vx4Lr8Kp6Tn",
"object": "event",
"type": "generation.succeeded",
"api_version": "2026-10-04",
"created_at": "2026-10-04T18:24:12.031Z",
"data": {
"object": {
"id": "gen_7Hq2mVx9Lr4Kp8Tn3Wc6Yb1D",
"object": "generation",
"model": "google/veo-3.1-fast",
"modality": "video",
"status": "succeeded",
"provider": "gateway",
"revision": "2026-10-02",
"input": {
"prompt": "A heron lands on a still lake at dawn",
"aspect_ratio": "16:9",
"n": 1,
"duration": 4,
"resolution": "1080p",
"audio": true
},
"output": [
{
"type": "video",
"url": "https://api.tryleap.ai/files/eyJrIjoibWVkaWEvb3V0cHV0cy9nZW5fN0hxMm1WeDlMcjRLcDhUbjNXYzZZYjFEIn0",
"expires_at": "2026-10-05T18:24:12.004Z",
"content_type": "video/mp4",
"width": 1920,
"height": 1080,
"poster": {
"url": "https://api.tryleap.ai/files/eyJrIjoibWVkaWEvb3V0cHV0cy9nZW5fN0hxMm1WeDlMcjRLcDhUbjNXYzZZYjFEIn0",
"expires_at": "2026-10-05T18:24:12.004Z",
"width": 720,
"height": 405
}
}
],
"error": null,
"failure_cause": null,
"usage": {
"cost_usd": "0.80"
},
"source": "api",
"batch_id": null,
"created_at": "2026-10-04T18:22:41.512Z",
"started_at": "2026-10-04T18:22:42.090Z",
"completed_at": "2026-10-04T18:24:11.877Z",
"slow_at": null,
"deadline_at": null,
"suggested_recipe": null
}
}
}
],
"has_more": true,
"next_cursor": "eyJpZCI6ImV2dF85V2MzWWIxRHE3SG0yVng0THI4S3A2VG4ifQ.4Kx9Qm7Lr1Tn5Wc3Yb8Df6Gh0Jk2Mn4Pq6Rs8Tv0XyZ"
}