Terminal49 Webhooks API

The Webhooks API from Terminal49 — 5 operation(s) for webhooks.

GitHub OpenAPI

Operations 11

GET /webhooks List webhooks #
POST /webhooks Create a webhook #
GET /webhooks/{id} Retrieve a webhook #
PATCH /webhooks/{id} Edit a webhook #
DELETE /webhooks/{id} Delete a webhook #
POST /webhooks/{id}/test Trigger a test delivery for a webhook #
GET /webhook_notifications List webhook notifications #
GET /webhook_notifications/{id} Retrieve a webhook notification #
GET /webhooks/events List webhook events #
GET /webhooks/ips List webhook IPs #
POST /webhooks/trigger Trigger a webhook test delivery #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/terminal49:terminal49-webhooks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

terminal49-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Terminal49 Webhooks API
  description: Terminal49 v2 container and ocean-freight tracking API. A single integration to track Bills of Lading, bookings, and container numbers across global ocean carriers and North American rail, returning normalized milestones, ETAs, terminal availability, holds, demurrage fees, and last free day. The API follows the JSON:API specification; all requests and responses use the `application/vnd.api+json` media type and authenticate with a Token header.
  termsOfService: https://www.terminal49.com/terms-of-service/
  contact:
    name: Terminal49 Support
    url: https://terminal49.com/docs/api-docs/api-reference/introduction
    email: support@terminal49.com
  version: '2.0'
servers:
- url: https://api.terminal49.com/v2
  description: Terminal49 v2 production API
security:
- TokenAuth: []
tags:
- name: Webhooks
paths:
  /webhooks:
    get:
      operationId: listWebhooks
      tags:
      - Webhooks
      summary: List webhooks
      responses:
        '200':
          description: A list of webhooks.
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/WebhookList'
    post:
      operationId: createWebhook
      tags:
      - Webhooks
      summary: Create a webhook
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/WebhookSingle'
      responses:
        '201':
          description: The created webhook.
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/WebhookSingle'
    parameters: []
  /webhooks/{id}:
    get:
      operationId: getWebhook
      tags:
      - Webhooks
      summary: Retrieve a webhook
      parameters:
      - $ref: '#/components/parameters/ResourceId'
      responses:
        '200':
          description: The requested webhook.
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/WebhookSingle'
    patch:
      operationId: updateWebhook
      tags:
      - Webhooks
      summary: Edit a webhook
      parameters:
      - $ref: '#/components/parameters/ResourceId'
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/WebhookSingle'
      responses:
        '200':
          description: The updated webhook.
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/WebhookSingle'
    delete:
      operationId: deleteWebhook
      tags:
      - Webhooks
      summary: Delete a webhook
      parameters:
      - $ref: '#/components/parameters/ResourceId'
      responses:
        '204':
          description: Webhook deleted.
    parameters:
    - schema:
        type: string
      name: id
      in: path
      required: true
  /webhooks/{id}/test:
    post:
      operationId: testWebhook
      tags:
      - Webhooks
      summary: Trigger a test delivery for a webhook
      parameters:
      - $ref: '#/components/parameters/ResourceId'
      responses:
        '202':
          description: Test delivery triggered.
  /webhook_notifications:
    get:
      operationId: listWebhookNotifications
      tags:
      - Webhooks
      summary: List webhook notifications
      parameters:
      - $ref: '#/components/parameters/PageNumber'
      - $ref: '#/components/parameters/PageSize'
      responses:
        '200':
          description: A list of webhook notifications.
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/WebhookNotificationList'
  /webhook_notifications/{id}:
    get:
      operationId: getWebhookNotification
      tags:
      - Webhooks
      summary: Retrieve a webhook notification
      parameters:
      - $ref: '#/components/parameters/ResourceId'
      responses:
        '200':
          description: The requested webhook notification.
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/WebhookNotificationSingle'
  /webhooks/events:
    parameters: []
    get:
      summary: List webhook events
      tags:
      - Webhooks
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        type:
                          type: string
                          enum:
                          - webhook_event_category
                        attributes:
                          type: object
                          properties:
                            name:
                              type: string
                            events:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    example: tracking_request.succeeded
                                  description:
                                    type: string
                                required:
                                - name
                                - description
                          required:
                          - name
                          - events
                      required:
                      - id
                      - type
                      - attributes
              examples:
                Event categories:
                  value:
                    data:
                    - id: tracking-request-events
                      type: webhook_event_category
                      attributes:
                        name: Tracking Request Events
                        events:
                        - name: tracking_request.succeeded
                          description: Shipment created and linked to the tracking request.
      operationId: get-webhooks-events
      description: Returns webhook event categories and event names available to the authenticated account. Events may be filtered by account features.
  /webhooks/ips:
    get:
      summary: List webhook IPs
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  webhook_notification_ips:
                    type: array
                    items:
                      type: string
                      format: ipv4
                  last_updated:
                    type: string
                    format: date-time
              examples:
                Example List of IPs:
                  value:
                    webhook_notification_ips:
                    - 35.222.62.171
                    - 3.230.67.145
                    - 44.217.15.129
                    last_updated: '2023-10-17T21:23:16Z'
      operationId: get-webhooks-ips
      description: Return the list of IPs used for sending webhook notifications. This can be useful for whitelisting the IPs on the firewall.
      tags:
      - Webhooks
      parameters: []
  /webhooks/trigger:
    post:
      summary: Trigger a webhook test delivery
      operationId: post-webhooks-trigger
      tags:
      - Webhooks
      description: Send a one-time test webhook notification payload to a target HTTPS URL without creating a webhook endpoint.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              - event
              properties:
                url:
                  type: string
                  format: uri
                  example: https://webhook.site/your-endpoint
                  description: Destination URL for the test webhook delivery. Must be HTTPS.
                event:
                  type: string
                  example: tracking_request.succeeded
                  description: Webhook event name to use for generating an example payload.
                secret:
                  type: string
                  example: optional-test-secret
                  description: Optional secret used to sign the request in `X-T49-Webhook-Signature`.
            examples:
              Trigger webhook test delivery:
                value:
                  url: https://webhook.site/your-endpoint
                  event: tracking_request.succeeded
                  secret: optional-test-secret
      responses:
        '200':
          description: Webhook test delivery attempt result
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                    description: Destination URL that the test webhook delivery attempted to call.
                  succeeded:
                    type: boolean
                    description: Whether the webhook delivery attempt was considered successful (HTTP 200, 201, 202, or 204).
                  error:
                    type:
                    - string
                    - 'null'
                    description: Error message captured when delivery failed, or `null` when no error occurred.
                  status_code:
                    type:
                    - integer
                    - 'null'
                    description: HTTP status code returned by the destination endpoint, or `null` if no response was received.
                  request_headers:
                    type: object
                    additionalProperties: true
                    description: Headers sent by Terminal49 with the test webhook request.
                  request_body:
                    type: string
                    description: Serialized JSON payload delivered to the target URL.
                  response_headers:
                    type:
                    - object
                    - 'null'
                    additionalProperties: true
                    description: Headers returned by the destination endpoint, or `null` when unavailable.
                  response_body:
                    type:
                    - string
                    - 'null'
                    description: Raw response body returned by the destination endpoint, or `null` when unavailable.
              examples:
                Delivery succeeded:
                  value:
                    url: https://webhook.site/your-endpoint
                    succeeded: true
                    error: null
                    status_code: 200
                    request_headers:
                      Content-Type: application/json
                      User-Agent: Terminal49 Webhook Bot
                      X-T49-Webhook-Signature: abc123
                    request_body: webhook notification payload JSON
                    response_headers:
                      content-type: application/json
                    response_body: ok
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        detail:
                          type: string
                          example: url is required
              examples:
                Missing url:
                  value:
                    errors:
                    - detail: url is required
components:
  schemas:
    WebhookList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/WebhookResource'
        links:
          $ref: '#/components/schemas/JsonApiLinks'
    JsonApiLinks:
      type: object
      properties:
        self:
          type: string
        first:
          type: string
        prev:
          type: string
        next:
          type: string
        last:
          type: string
    WebhookNotificationSingle:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/WebhookNotificationResource'
    WebhookAttributes:
      type: object
      properties:
        url:
          type: string
          description: The callback URL Terminal49 POSTs notifications to.
        active:
          type: boolean
        events:
          type: array
          items:
            type: string
            description: Event types to subscribe to (e.g. tracking_request.succeeded, container.transport.vessel_departed).
        secret:
          type: string
          description: Shared secret used to sign notification payloads.
        created_at:
          type: string
          format: date-time
    WebhookResource:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
          - webhook
        attributes:
          $ref: '#/components/schemas/WebhookAttributes'
    WebhookNotificationAttributes:
      type: object
      properties:
        event:
          type: string
        delivery_status:
          type: string
          enum:
          - pending
          - succeeded
          - failed
        response_status_code:
          type:
          - integer
          - 'null'
        created_at:
          type: string
          format: date-time
        body:
          type: object
          description: The JSON:API payload delivered to the webhook URL.
    WebhookSingle:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/WebhookResource'
    WebhookNotificationList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/WebhookNotificationResource'
        links:
          $ref: '#/components/schemas/JsonApiLinks'
    WebhookNotificationResource:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
          - webhook_notification
        attributes:
          $ref: '#/components/schemas/WebhookNotificationAttributes'
    meta:
      title: meta
      type: object
      properties:
        size:
          type: integer
        total:
          type: integer
    webhook:
      title: webhook
      type: object
      x-examples: {}
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          enum:
          - webhook
        attributes:
          type: object
          properties:
            url:
              type: string
              format: uri
              description: https end point
            active:
              type: boolean
              default: true
              description: Whether the webhook will be delivered when events are triggered
            events:
              type: array
              description: The list of events to enabled for this endpoint
              uniqueItems: true
              minItems: 1
              items:
                type: string
                enum:
                - container.transport.vessel_arrived
                - container.transport.estimated.vessel_arrived
                - container.transport.vessel_discharged
                - container.transport.vessel_loaded
                - container.transport.vessel_departed
                - container.transport.estimated.vessel_departed
                - container.transport.rail_departed
                - container.transport.rail_arrived
                - container.transport.rail_loaded
                - container.transport.rail_unloaded
                - container.transport.transshipment_arrived
                - container.transport.transshipment_discharged
                - container.transport.transshipment_loaded
                - container.transport.transshipment_departed
                - container.transport.feeder_arrived
                - container.transport.feeder_discharged
                - container.transport.feeder_loaded
                - container.transport.feeder_departed
                - container.transport.empty_out
                - container.transport.full_in
                - container.transport.full_out
                - container.transport.empty_in
                - container.transport.vessel_berthed
                - shipment.estimated.arrival
                - tracking_request.succeeded
                - tracking_request.failed
                - tracking_request.awaiting_manifest
                - tracking_request.tracking_stopped
                - container.created
                - container.updated
                - container.pod_terminal_changed
                - container.transport.arrived_at_inland_destination
                - container.transport.estimated.arrived_at_inland_destination
                - container.pickup_lfd.changed
                - container.pickup_lfd_line.changed
                - container.pickup_lfd_terminal.changed
                - container.pickup_lfd_rail.changed
                - container.pickup_appointment.changed
                - container.transport.available
                - container.transport.not_available
                - container.transport.delivered
                - document.extracted
                - document.extraction_failed
            secret:
              type: string
              description: A random token that will sign all delivered webhooks
            headers:
              type:
              - array
              - 'null'
              items:
                type: object
                properties:
                  name:
                    type: string
                  value:
                    type: string
          required:
          - url
          - active
          - events
          - secret
      required:
      - id
      - type
      description: ''
    links:
      title: links
      type: object
      properties:
        last:
          type: string
          format: uri
        next:
          type: string
          format: uri
        prev:
          type: string
          format: uri
        first:
          type: string
          format: uri
        self:
          type: string
          format: uri
  parameters:
    ResourceId:
      name: id
      in: path
      required: true
      description: The resource identifier (UUID).
      schema:
        type: string
    PageSize:
      name: page[size]
      in: query
      required: false
      description: Number of records per page.
      schema:
        type: integer
    PageNumber:
      name: page[number]
      in: query
      required: false
      description: Page number for JSON:API pagination.
      schema:
        type: integer
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Token-based authentication. Send the header `Authorization: Token YOUR_API_KEY`.'
    authorization:
      name: Authorization
      type: apiKey
      in: header
      description: 'Use a Terminal49 API key in the `Authorization` header with the `Token` prefix.


        `Authorization: Token YOUR_API_KEY`'