Agents

Set the URL that receives signed events about this agent's pod.

Call once instead of polling: agent.running, agent.stopped, agent.failed, agent.deleted, payment.confirmed, deletion.warning are POSTed there with an HMAC signature. Replacing the URL issues a new secret; the secret is returned only by this call. Private and loopback hosts are refused.

put/agents/{id}/webhook

Request

  • Base URL: https://agentspodium.com/api
  • URL: https://agentspodium.com/api/agents/{id}/webhook
  • Auth: HTTP bearer

Path parameters

idstring required

Agent id (agt_…).

Request body

urlstring required

Example request

{
  "url": "https://ops.example.com/hooks/agentspodium"
}

Response

OK.

Example response

{
  "agent": {
    "id": "agt_…",
    "app": {
      "repo": "https://github.com/owner/project",
      "buildCommand": "npm ci && npm run build",
      "outputDir": "dist",
      "startCommand": "node server.js",
      "rootDir": "app"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.