OpenTrack /webhooks API
Manage webhooks to receive container updates.
Manage webhooks to receive container updates.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/opentrack:opentrack-webhooks-api"
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.
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: 3.2.0
info:
version: v1
title: OpenTrack /webhooks API
contact:
email: support@opentrack.co
x-logo:
url: https://s3-us-west-1.amazonaws.com/opentrack.co/images/opentrack_logo_dark.png
altText: OpenTrack Logo
description: Manage webhooks to receive container updates.
servers:
- description: Production
url: https://api.opentrack.co
security:
- ApiKeyAuth: []
tags:
- name: /webhooks
description: Manage webhooks to receive container updates.
paths:
/v1/webhooks:
post:
summary: Register a Webhook
description: 'OpenTrack offers the ability for developers to subscribe to various events that occur in the container lifecycle. When these events occur, we will ping the server defined at the configured webhook URL with data relevant to the event.
In this request, pass in your desired Webhook URL and the events you would like to consume.
If no events are provided, the webhook will include all event types.
See Webhooks Overview for the list of possible event types to consume.
The API will enforce unique webhook URLs in your account. It will return a `VALIDATION_ERROR` if an attempt is made to register a webhook with a URL that is already registered.
### Using A Secret For Added Security
Optionally, you can specify a `secret` in the registration request, which we will use to identify webhook requests from OpenTrack. (See Validating Webhooks)
### Receiving Webhooks
When these events occur, we will send a `POST` request to your webhook URL. You can expect these events to have a latency of up to 1 minute of the actual event taking place.
If our `POST` request to your endpoint fails (meaning we receive a 4xx or 5xx status code in response), then we will retry the same `POST` request, no more than 30 minutes later, and keep repeating every 30 minutes until:
- We receive a 2xx response from your server.
- We have attempted to reach your server with this webhook event 5 times.
The webhook payload will look like the following:
```json
{
"data": {...},
"changes":
{
"status":
{ "previous": "DISCHARGED", "current": "AVAILABLE" }
},
"deliveryAttempt": 1,
"pendingRetries": 4,
"event": "container.status.updated",
"sentAt": "2019-07-19T17:00:00.654Z"
}
```
The contents of data vary depending on the webhook event type. Take a look at the Webhooks section of the docs for more details.
### Validating Webhooks
In the webhook event request, we will also send a `X-OpenTrack-Signature` header which can be used to verify that this webhook event is indeed coming from OpenTrack.
To validate, encrypt the incoming webhook payload with your webhook config secret key. Check that this generated signature matches the signature in X-OpenTrack-Signature header.
For example, in Javascript:
```javascript
const crypto = require("crypto");
const hmac = crypto.createHmac("sha256", secret);
const signature = hmac.update(JSON.stringify(webhookPayload)).digest("hex");
```'
operationId: registerWebhook
tags:
- /webhooks
requestBody:
description: Webhook Registration
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookRegistrationRequest'
responses:
'201':
description: Webhook Registration Success
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookRegistrationSuccess'
'400':
description: Webhook Registration Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Usage Error - From Rate Limitation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-internal: false
get:
summary: List Webhooks
description: This endpoint allows you to list the webhooks registered to your account.
operationId: listWebhooks
tags:
- /webhooks
responses:
'200':
description: Expected response to a valid request
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookList'
'429':
description: Usage Error - From Rate Limitation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/webhooks/{webhookId}:
put:
summary: Update a Webhook
description: 'Change the name, secret, and events list for an existing webhook. Calling this endpoint is equivalent to unregistering a webhook and registering it again with different options.
For a list of event types that can be consumed, see the endpoint to register a webhook.
The list of event types specified in the request body is considered exhaustive. Event types consumed by the webhook previously are overwritten when it is updated. Leave the `events` parameter out of the request body to maintain the list of event types as is. If the parameter is included as an empty list, the webhook will be updated to include all event types.'
operationId: updateWebhook
tags:
- /webhooks
parameters:
- name: webhookId
in: path
required: true
description: The ID of the webhook to update
schema:
type: string
requestBody:
description: Webhook Update
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookUpdateRequest'
responses:
'200':
description: Webhook Update Success
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookRegistrationSuccess'
'400':
description: Webhook Update Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Webhook Not Found Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Usage Error - From Rate Limitation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
summary: Unregister a Webhook
description: This endpoint allows you to unregister a webhook in your account.
operationId: deleteWebhooks
tags:
- /webhooks
parameters:
- name: webhookId
in: path
required: true
description: The ID of the webhook to unregister
schema:
type: string
responses:
'200':
description: Expected response to a valid request
'404':
description: Webhook Not Found Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Usage Error - From Rate Limitation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
WebhookRegistrationSuccess:
properties:
id:
type: string
example: 5101e125-70da-4f27-9ea6-e401f8e153bd
url:
type: string
example: https://exceptions.acme.com/webhooks
name:
type: string
example: acme-exceptions-endpoint
events:
type: array
items:
$ref: '#/components/schemas/Event'
callbackHeaders:
type: object
example:
Authorization: Bearer d74e-48d2-83dd-189fbfa68b79
WebhookRegistrationRequest:
anyOf:
- required:
- url
- required:
- events
- required:
- secret
- required:
- name
- required:
- callbackHeaders
properties:
url:
type: string
example: https://exceptions.acme.com/webhooks
events:
type: array
items:
$ref: '#/components/schemas/Event'
secret:
type: string
example: 78ae6f0cd191d25147e252dc54768238
name:
type: string
example: acme-exceptions-endpoint
callbackHeaders:
type: object
example:
Authorization: Bearer d74e-48d2-83dd-189fbfa68b79
Error:
required:
- code
- message
properties:
code:
type: string
message:
type: string
WebhookList:
properties:
data:
type: array
items:
$ref: '#/components/schemas/WebhookRegistrationSuccess'
Event:
type: string
enum:
- container.status.updated
- container.history.updated
- container.itinerary.updated
- container.location.updated
- container.holds.updated
- container.demurrage.updated
- container.exceptions.updated
- container.tracking.stopped
- container.tracking.failed
- shipment.itinerary.updated
- shipment.tracking.failed
example: container.status.updated
WebhookUpdateRequest:
properties:
url:
type: string
example: https://exceptions.acme.com/webhooks
events:
type: array
items:
$ref: '#/components/schemas/Event'
secret:
type: string
example: 78ae6f0cd191d25147e252dc54768238
name:
type: string
example: acme-exceptions-endpoint
callbackHeaders:
type: object
example:
Authorization: Bearer d74e-48d2-83dd-189fbfa68b79
securitySchemes:
ApiKeyAuth:
type: apiKey
name: Opentrack-API-Key
in: header
x-provenance:
method: searched
source: https://developers.opentrack.co/reference
harvested: '2026-11-15'
tool: harvest-readme-openapi.py
note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
assembled_from:
- https://developers.opentrack.co/reference/deletewebhooks.md
- https://developers.opentrack.co/reference/getcontainerroute.md
- https://developers.opentrack.co/reference/getcontainerstatus.md
- https://developers.opentrack.co/reference/getevents.md
- https://developers.opentrack.co/reference/getmasterbillstatus.md
- https://developers.opentrack.co/reference/listwebhooks.md
- https://developers.opentrack.co/reference/registerwebhook.md
- https://developers.opentrack.co/reference/trackcontainer.md
- https://developers.opentrack.co/reference/trackmasterbill.md
- https://developers.opentrack.co/reference/updatewebhook.md
merge:
pages: 10
deduped: 54
conflicts_kept_first: 0