pydo.harness.post_trigger_webhook()
Generated on 13 Nov 2026
from pydo version
v0.46.0
Usage
client.harness.post_trigger_webhook(
trigger_id="b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d",
body={...},
)Description
The one public, un-team-authenticated endpoint. There is NO DO bearer token: the caller is the customer’s external system. Authentication is the per-trigger HMAC secret, verified on every delivery; edge rate-limiting is mandatory.
The request body is the provider’s RAW body, forwarded verbatim (the HMAC is computed over the exact bytes received); Content-Type is provider-defined and passed through. The signature header depends on the trigger’s provider:
- github:
X-Hub-Signature-256: sha256=<hex>(HMAC-SHA256 of the raw body) - gitlab:
X-Gitlab-Token: <token>(plaintext token equality; GitLab does not sign) - custom:
X-DigitalOcean-Signature: t=<unix>,v1=<hex>(HMAC-SHA256 of{unix}.{raw body};do-signatureis also accepted as a transitional alias)
On success (including a provider retry that dedupes to an existing firing) it returns 202 with the execution_id. A delivery to a paused trigger returns 202 with no body and queues nothing (deliberately not 409, so providers do not auto-disable the webhook after repeated non-2xx).
Parameters
trigger_idstring requiredExample:
b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5dThe trigger UUID.
bodyJSON or IO[bytes] requiredThe provider's raw webhook body, forwarded verbatim. The HMAC is computed over these exact bytes. Content-Type is provider-defined (GitHub sends
application/json, some providers form-encode) and passed through; the handler reads the raw bytes regardless of type. Documented as a singleapplication/octet-streambody so client generators can model the raw payload.
Response Example
More Information
See /v2/agents/triggers/{trigger_id}/webhook in the API reference for additional detail on responses, headers, parameters, and more.