Render
Connect
Connect Render from the terminal. Pass --help for the flags Render accepts, plus --no-browser for headless environments.
polylane cloud connect --provider renderAn API key from Account Settings → API Keys in Render.
Connect your Render account with one API key. Polylane encrypts the key before it stores it, and the agent never sees it.
- In the Render Dashboard, go to Account Settings → API Keys.
- Click Create API Key.
- Copy the key and paste it into Polylane. Polylane checks the key and starts the first sync.
On connect, Polylane creates a webhook named "polylane" in your Render workspace. Render sends deploy and service events to this webhook.
Connect Render from a CI job or any other environment without a browser.
Connecting Render needs no browser: the same endpoint the console calls fits in a CI job. One authenticated POST creates the connection and starts the first sync.
Prerequisites
- A Polylane API key with the
cloud_accounts:writeandcloud_accounts:readscopes. See API keys and OAuth. - Your workspace ID, which starts with
ws_. Read it fromGET /v1/workspaceswith the same key. - A Render API key (starts with
rnd_) from Account Settings → API Keys.
Create the connection
curl -X POST https://api.polylane.com/v1/cloud_accounts \
-H "x-api-key: $POLYLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "render",
"workspaceId": "ws_0abc123",
"apiKey": "rnd_..."
}'
One call connects every Render workspace the key can reach; pass the optional ownerId (usr-… or tea-…) to connect just one.
The response lists what was connected, with the first sync already running. Trimmed to the two fields the rest of the flow reads:
{
"success": true,
"result": {
"provider": "render",
"accounts": [{ "id": "acc_34gky74ibc92h8t2efn8csrh", "status": "syncing" }],
"failures": []
}
}
An account that is already connected lands in failures instead of accounts, so repeating the call never duplicates a connection.
Wait for the first sync
Poll each returned account by its id until status reaches ready (new on registration, syncing while resources stream in):
until [ "$(curl -s "https://api.polylane.com/v1/cloud_accounts/$WORKSPACE_ID/$ACCOUNT_ID" \
-H "x-api-key: $POLYLANE_API_KEY" | jq -r '.result.status')" = "ready" ]; do
sleep 15
done
Give the loop a deadline so a failed connect fails the job instead of hanging it. Once the account is ready, its resources are in the topology and Polylane has started its first check.
Disconnect from the API
Deleting the connection stops every sync and check and deletes the credentials Polylane held. The call needs the cloud_accounts:delete scope:
curl -X DELETE "https://api.polylane.com/v1/cloud_accounts/$WORKSPACE_ID/$ACCOUNT_ID" \
-H "x-api-key: $POLYLANE_API_KEY"
Then revoke the Render API key, as described under Disconnecting.
How it works
Resources in the context graph
Polylane maps your projects, environments, web services, private services, background workers, cron jobs, static sites, Postgres databases, Key Value instances, disks, custom domains, environment groups and workflows. It links them to each other and to your repositories.
Polylane syncs every 15 minutes. When the "polylane" webhook is active, Polylane syncs about two minutes after Render sends a change event, such as a finished deploy or a scaling change, instead of on the 15-minute schedule. Render offers webhooks only on some workspace plans. If Render refuses the webhook, the 15-minute sync continues.
Deploy failures and outages become issues
These webhook events open an issue, or add to the open issue for the same service:
- a failed deploy or an image pull failure
- a failed server or a hardware failure
- a Postgres database that is unavailable
- a Key Value instance that is unhealthy
The matching recovery event resolves the issue: a successful deploy, an available server, an available database or a healthy Key Value instance. Polylane triages each issue and investigates it.
Checks and anomaly detection
An account check counts failed and canceled deploys across all services. Each service also gets its own monitor. Polylane reads CPU, memory, HTTP requests, p95 HTTP latency and bandwidth, plus the service logs and its deploys. Postgres databases report CPU, memory, connections and disk use. Key Value instances report CPU, memory, connections and instance count. Disks report used and total space. Polylane compares each series with its usual level, and opens an issue when a change is a real problem.
What agents can do
During an investigation, agents read service logs, metrics, deploys, service events and the Render audit log. Agents can set a watch that wakes a thread when the next deploy of a service lands. Agents can also request changes through the Render API, such as a deploy, a restart or a scaling change. The account is read-only by default. A change needs the account to allow writes, and each change needs safety review and approval before it runs.
Troubleshooting
"Invalid API key" error
- Make sure you copied the full key. It starts with
rnd_. - Check that the key is not revoked in the Render dashboard.
- Make sure you use an API key, not a deploy hook token.
Missing resources
- The first sync can take a few minutes.
- Click Sync in the account header to sync again.
Disconnecting
Disconnecting deletes the "polylane" webhook from Render. Then revoke the API key under Account Settings → API Keys in Render.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Polylane held. Everything Polylane set up in Render is removed as well; nothing is left behind.
polylane cloud disconnect <id>Tools
5Operations agents can perform in threads.
Supported resources
13Resource types that show up in your infrastructure graph.