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.
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)Authorizations
Your workspace API key, leap_.... Create one at https://app.tryleap.ai/go/api, and keep it on your server.
Query Parameters
Maximum number of rows to return: 1 to 100; default 50.
^\d{1,3}$Send next_cursor as cursor; omit it for the first page.
1 - 512^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]{43}$Only events of these types, comma-separated, such as generation.succeeded,generation.failed.
Response
A page of events.
Forward list envelope. Live lists are not snapshots; totals are not promised.
The list object discriminator.
"list"The list's resource path, such as /v1/records.
Resource objects in this page, in the requested order.
Show child attributes
Show child attributes
Whether another page is available using next_cursor.
Send as cursor to read the next page; null on the last page.
1 - 512^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]{43}$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)