How to Retrieve deployHookUrl Programmatically via API or Terraform Provider?

Hello,

I’ve been setting up my deployment workflows using GitHub Actions, and I want to automate everything as much as possible, including retrieving the deployHookUrl for my services. I need this as I am using Deploy to Render.com · Actions · GitHub Marketplace · GitHub so that I can deploy a specific branch from my GH actions not always just main.

My Current Setup
• Infrastructure: All services are defined in Terraform and deployed to Render.
• Workflow: GitHub Actions with a setup_matrix job to manage multiple environments.
• Goal: I want to retrieve the deployHookUrl programmatically to avoid manual steps of copying it from the Render dashboard.

What I’ve Tried
1. REST API: I’ve queried https://api.render.com/v1/services and can retrieve service metadata like id, name, and type, but the deployHookUrl doesn’t seem to be included in the response.
2. Terraform Provider: I’ve checked the Terraform provider documentation for Render but couldn’t find an output or attribute that provides the deployHookUrl.

Questions
1. Is there an API endpoint that exposes the deployHookUrl for a given service?
2. Can the Terraform provider output the deployHookUrl or provide a way to retrieve it programmatically?
3. If neither option is currently available, are there plans to include this functionality in future updates?

Why This Matters

Manually copying the deployHookUrl from the Render dashboard is not ideal for my fully automated CI/CD pipeline. Having an API or Terraform-based solution would help streamline the process and eliminate manual steps.

Any guidance, workarounds, or insight into upcoming features would be greatly appreciated!

Thank you in advance for your help! :pray: