How to hit the Render API

Render's API at https://api.render.com/v1 manages services, deploys, and environment variables.

Authentication

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/

List services

curl "https://api.render.com/v1/services?limit=20" \
  -H "Authorization: Bearer {{RENDER_API_KEY}}"
Run in PostTaco

A service's deploys

curl "https://api.render.com/v1/services/{{SERVICE_ID}}/deploys?limit=5" \
  -H "Authorization: Bearer {{RENDER_API_KEY}}"
Run in PostTaco

Trigger a deploy

curl -X POST https://api.render.com/v1/services/{{SERVICE_ID}}/deploys \
  -H "Authorization: Bearer {{RENDER_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{}'
Run in PostTaco