Based on the information available, you’re correct that the /v3/deployments/{idOrUrl}/events endpoint primarily returns build logs, not runtime logs .
For runtime logs, Vercel provides access through the dashboard UI where you can search, inspect, and share your team’s runtime logs at a project level . However, there isn’t a direct REST API endpoint specifically for runtime logs mentioned in the documentation.
If you want to programmatically access runtime logs, the recommended approach is to use Log Drains . Log Drains allow you to export your log data to external services, making it easier to debug and analyze. This feature is available on Pro and Enterprise plans.
To implement a monitoring system similar to the example you referenced, you would:
Set up a Log Drain to export your runtime logs to a service you can query programmatically
Create a script that pulls data from that service rather than directly from Vercel’s API
Implement your alerting logic based on the aggregated logs