Render's API at https://api.render.com/v1 manages services, deploys, and environment variables.
Create a token at Account Settings → API Keys. Send it as Authorization: Bearer <token>. In the examples it's written {{RENDER_API_KEY}}.
Full reference: https://api-docs.render.com/
curl "https://api.render.com/v1/services?limit=20" \
-H "Authorization: Bearer {{RENDER_API_KEY}}"
curl "https://api.render.com/v1/services/{{SERVICE_ID}}/deploys?limit=5" \
-H "Authorization: Bearer {{RENDER_API_KEY}}"
curl -X POST https://api.render.com/v1/services/{{SERVICE_ID}}/deploys \
-H "Authorization: Bearer {{RENDER_API_KEY}}" \
-H "Content-Type: application/json" \
-d '{}'