Create webhook subscription

Creates a subscription from a public webhook endpoint to one public event type. isActive is optional and defaults to true. The endpoint must exist and must be a public webhook endpoint for the authenticated brokerage. Duplicate subscriptions for the same webhookEndpointId and eventType are rejected with 409. After creating the subscription, send a test delivery for the returned subscription id. Subscriptions created through these public APIs deliver version 2 webhook event shapes for the selected event type.

Access to webhook management is gated by brokerage. Talk to Augment to enable access before relying on this endpoint.

Body·
required
application/json

Request body for creating a public webhook subscription.

  • eventType
    Type: string · enum
    required

    Public event type for webhook subscription creation. Call GET /v2/webhook-event-types for the current source of truth.

    values
    • TRACKING_UPDATE
    • STOP_UPDATE
    • LOAD_CARRIER_UPDATE
    • SEND_TMS_COMMENT
    • SCHEDULED_CARRIER_OUTREACH
    • UPLOAD_FILES
    • PUSH_BID_TO_TMS
    • PUSH_LOAD_DRAFT
    • CARRIER_ISSUE_UPDATED
  • webhookEndpointId
    Type: string
    required

    Webhook endpoint ID that should receive this event type

  • isActive
    Type: boolean

    Whether this subscription should be active. Defaults to true.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/v2/webhook-subscriptions
curl https://api.prod.goaugment.com/v2/webhook-subscriptions \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic username:password' \
  --data '{
  "webhookEndpointId": "endpoint-id",
  "eventType": "TRACKING_UPDATE",
  "isActive": true
}'
{
  "id": "webhook_subscription_01HY...",
  "webhookEndpointId": "webhook_endpoint_01HY...",
  "eventType": "TRACKING_UPDATE",
  "isActive": true
}