Skip to content

Custom Webhook API

Integrate any tool, any workflow.

1. Create a Webhook from Your Dashboard

  1. Navigate to the Webhooks section in your Trailpad dashboard
  2. Click "Create Webhook" and give it a name
  3. Select the project to associate activities with
  4. Copy the generated webhook URL and token

Security Note: Keep your webhook URL and token secure. Anyone with access to the URL can send activity data to your Trailpad account.

2. Send Activity Data

Send a POST request to your webhook URL with a JSON payload containing the activity data.

The Activity Object

FieldTypeRequiredDescription
titlestringYesShort title of the activity
descriptionstringNoDetailed description of the activity
startTimeISO 8601YesWhen the activity started
endTimeISO 8601NoWhen the activity ended
triggerstringNoThe source or trigger of the activity
eventstringNoEvent type (e.g. push, merge, resolve)
memberEmailstringYesEmail of the team member
externalIdstringNoID from the external system
metadataobjectNoAdditional key-value data

Example with cURL

curl -X POST https://api.trailpad.ai/webhooks/your-webhook-id \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-webhook-token" \
  -d '{
    "title": "Deployed v2.1.0 to production",
    "description": "Merged PR #142 and deployed to production servers",
    "startTime": "2025-07-01T14:30:00Z",
    "endTime": "2025-07-01T14:45:00Z",
    "trigger": "GitHub Actions",
    "event": "deployment",
    "memberEmail": "dev@company.com",
    "externalId": "deploy-142",
    "metadata": {
      "environment": "production",
      "version": "2.1.0"
    }
  }'