Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
List baseline, change diff, and error events for a monitor (newest first).
cURL
curl --request GET \ --url https://api.gainflow.ai/v1/monitors/{monitor_id}/events \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.gainflow.ai/v1/monitors/{monitor_id}/events" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.gainflow.ai/v1/monitors/{monitor_id}/events', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "data": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "monitor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "slot_at": "2023-11-07T05:31:56Z", "change_type": "baseline", "content_hash": "<string>", "diff_summary": {}, "created_at": "2023-11-07T05:31:56Z" } ], "has_more": true, "next_cursor": "<string>" }
{ "type": "<string>", "title": "<string>", "status": 123, "code": "UNAUTHORIZED", "request_id": "<string>", "detail": "<string>" }
Either a Gainflow API key (gf_live_*) or a WorkOS AuthKit OAuth 2.1 JWT.
1 <= x <= 100
Opaque pagination cursor returned in next_cursor.
Paginated monitor events
Show child attributes