Skip to content

Webhooks

Developer

Webhooks are URLs that receive HTTP POST requests from external systems when certain events occur. In Prodgy, webhooks can be used to:

  • Trigger agents automatically based on external events
  • Receive notifications from integrated tools (Git, DevOps, communicators)
  • Integrate systems that need to send data to Prodgy in real time

Prodgy webhooks use custom paths:

POST /api/webhook/{custom_path}
Content-Type: application/json

{
  "event": "event_type",
  "data": { }
}

The custom_path is defined during webhook configuration and serves as a unique identifier.


FieldTypeDescription
Content-TypeHeaderapplication/json
MethodHTTPPOST
BodyJSONEvent payload with structured data
{
  "event": "commit.pushed",
  "repository": "my-project",
  "branch": "main",
  "author": "dev@example.com",
  "timestamp": "2026-03-05T14:30:00Z",
  "data": {
    "commit_id": "abc123",
    "message": "feat: new feature"
  }
}

{
  "success": true,
  "message": "Webhook processed successfully",
  "data": { }
}
{
  "success": false,
  "message": "Error description"
}
CodeDescription
200Webhook processed successfully
400Invalid or malformed payload
404Webhook path not found
500Internal error processing the webhook

Prodgy receives webhooks from communication platforms for chat integration:

POST /api/communicator/webhook/{integration_base_id}
Content-Type: application/json
POST /api/communicator/botframework/{integration_base_id}/messages
Content-Type: application/json

These endpoints are automatically configured when installing communicator integrations and do not require manual configuration.


  • Validate received data before processing — never blindly trust the payload
  • Respond quickly — return HTTP 200 as fast as possible and process asynchronously if needed
  • Implement retries — configure the system sending webhooks to retry on failure (5xx)
  • Use HTTPS in production to protect transmitted data
  • Monitor logs to identify failures and unprocessed events