OpenTrack /v1/partners/ingestion API
The /v1/partners/ingestion API from OpenTrack — 1 operation(s) for /v1/partners/ingestion.
The /v1/partners/ingestion API from OpenTrack — 1 operation(s) for /v1/partners/ingestion.
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-v1-partners-ingestion-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: Partner Data Ingestion /v1/partners/ingestion 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
servers:
- description: Production
url: https://api.opentrack.co/
security:
- ApiKeyAuth: []
SignatureAuth: []
tags:
- name: /v1/partners/ingestion
paths:
/v1/partners/ingestion:
post:
summary: Publish data to OpenTrack
description: 'This endpoint allows registered partners to publish data to OpenTrack.
### Authentication
In order to successfully provide data, your request will need two elements of authentication:
1. An API Key
2. A signature
If you have not yet received an API key, please reach out to support@opentrack.co.
You will also define a secret key that will allow you to sign your requests so we''re sure they''re coming from the right place.
Place your API Key in the header of each request:
```
OpenTrack-API-Key: {{yourAPIKey}}
```
As well as your request signature:
```
OpenTrack-Partner-Signature: {{yourSignature}}
```
You will generate the signature using the request body and your secret key:
```javascript
const crypto = require("crypto");
const hmac = crypto.createHmac("sha256", secret);
const signature = hmac.update(JSON.stringify(requestBody)).digest("hex");
```
```python
import hashlib
import hmac
import json from collections import OrderedDict
data = json.load(request_body, object_pairs_hook=OrderedDict)
body = json.dumps(data, separators=('','', '':''),
ensure_ascii=False).encode(''utf-8'')
signature = hmac.new(key=secret.encode(), msg=body,
digestmod=hashlib.sha256).hexdigest()
print(signature)
```
```java
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Hex;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
public class EventSignatureGenerationClass {
public static String hmac256(String inputString) throws InvalidKeyException, UnsupportedEncodingException, NoSuchAlgorithmException {
Gson gson = new Gson();
JsonObject inputJSON = JsonParser.parseString(inputString).getAsJsonObject();
Mac sha256_HMAC;
sha256_HMAC = Mac.getInstance("HmacSHA256");
SecretKeySpec secret_key = new SecretKeySpec(secret.getBytes("UTF-8"), "HmacSHA256");
sha256_HMAC.init(secret_key);
byte[] hash = sha256_HMAC.doFinal(inputJSON.toString().getBytes());
return new String(Hex.encodeHex(hash));
}
}
```
### Formatting the request body
Our top priority is to get as much quality data from you as possible, as quickly as possible. We are happy to support whatever schema or standard you use, if that is the lowest-friction path. **You can disregard the below if this applies to you.**
However if you''re looking for a standard to use, we encourage you to adopt our DCSA-inspired standard. Use the interactive request builder below to see how to construct requests using this format.
Our standard is based on the DCSA''s but simplified for ease of use and extended slightly to include location pings.
### Looking to get data from OpenTrack?
If you prefer to receive tracking data for key events related to containers tracked in OpenTrack, please see the Track a Container endpoint.'
operationId: publishDataToOpenTrack
x-readme:
explorer-enabled: false
tags:
- /v1/partners/ingestion
requestBody:
description: Payload to publish to OpenTrack
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerDataPayload'
responses:
'201':
description: Data Payload Accepted
content:
application/json:
schema:
$ref: '#/components/schemas/Success'
'400':
description: Data Payload Rejected
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Usage Error - From Rate Limitation or Other Cap
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
positionEvent:
description: An event capturing the current position of a transport or equipment entity.
allOf:
- $ref: '#/components/schemas/event'
- type: object
properties:
eventType:
type: string
example: positionEvent
enum:
- positionEvent
equipmentReference:
$ref: '#/components/schemas/equipmentReference'
coordinates:
$ref: '#/components/schemas/Point'
required:
- eventType
- equipmentReference
- coordinates
emptyIndicatorCode:
type: string
example: LADEN
description: Code to denote whether the equipment is empty or laden.
enum:
- EMPTY
- LADEN
shipmentEvent:
description: The shipment event entity is a specialization of the event entity to support specification of data that only applies to a shipment event. This is where to put all event data that applies to the paperwork related to a shipment (e.g. a Delivery Order). It has a different set of event codes.
allOf:
- $ref: '#/components/schemas/event'
- type: object
properties:
eventType:
type: string
example: shipmentEvent
enum:
- shipmentEvent
eventTypeCode:
$ref: '#/components/schemas/shipmentEventTypeCode'
eventClassifierCode:
$ref: '#/components/schemas/eventClassifierCode'
equipmentReference:
$ref: '#/components/schemas/equipmentReference'
shipmentDocumentInformationTypeCode:
$ref: '#/components/schemas/shipmentDocumentInformationTypeCode'
facilityTypeCode:
type: string
example: INTE
description: 'Specifies the type of facility.
- BOCR = Border Crossing. Border crossing is the point at a border between two countries where people, transports or goods can cross. This may or may not include a customs checkpoint.
- CLOC = Customer Location. Customer location is the premise of the customer, who can be either the shipper or the consignee.
- COFS = Container Freight Station. Container freight station is a facility where LCL (Less Than Container Load) shipments are consolidated or dispersed, cargo is stuffed into containers prior to shipment, or cargo is stripped from containers prior to release to the consignee.
- COYA = Container Yard. A place where containers are stored on the terminal or dry port (rail ramp) before they are loaded or offloaded from a ship. Containers are either stored for loading to be transported elsewhere or offloaded as they arrive into the port, terminal or rail ramp.
- OFFD = Off-Dock Storage. An interim storage facility where empty or full containers are stored in transit.
- DEPO = Depot. Depot is a designated area where empty equipment is stored between use.
- INTE = Inland Terminal. Inland terminal is a facility where containers are loaded, moved, or discharged. The inland terminal can be serviced by trucks, rail, and barges (at river terminals).
- POTE = Port Terminal. Port terminal is a facility located adjacent to a waterway where containers are loaded, moved, or discharged onto/from sea-going vessels and barges.
'
enum:
- BOCR
- CLOC
- COFS
- COYA
- OFFD
- DEPO
- INTE
- POTE
shipmentEventTypeCode:
type: string
example: RECE
description: 'Specifies the type of shipmentEvent.
- ISSU = Issued
- RECE = Received
- REJE = Rejected
'
enum:
- ISSU
- RECE
- REJE
Point:
type: object
properties:
latitude:
type: number
example: 34.0522
minimum: -90
maximum: 90
longitude:
type: number
example: 118.2437
minimum: -180
maximum: 180
shipmentDocumentInformationTypeCode:
type: string
example: SHI
description: 'Specifies the type of document.
- SHI = Shipping Instruction (Delivery Order)
'
enum:
- SHI
Error:
required:
- code
- message
properties:
code:
type: string
message:
type: string
PartnerDataPayload:
type: object
description: List of events on the shipment's journey.
properties:
events:
type: array
items:
anyOf:
- $ref: '#/components/schemas/equipmentEvent'
- $ref: '#/components/schemas/shipmentEvent'
- $ref: '#/components/schemas/positionEvent'
discriminator:
propertyName: eventType
modeOfTransportCode:
type: string
example: TRUCK
description: Specifies the transport mode.
enum:
- VESSEL
- RAIL
- TRUCK
eventDateTime:
type: string
format: date-time
example: '2019-11-12T07:41:00+08:30'
description: The local date and time, where the event took place, in ISO 8601 format.
UNLocationCode:
type: string
example: USLGB
description: The UN Location Code identifies a location in the sense of a city/town/village, being the smaller administrative area existing as defined by the competent national authority in each country.
eventType:
description: The Event Type of the object.
type: string
enum:
- equipmentEvent
- shipmentEvent
- positionEvent
otherFacility:
type: string
example: Customer receiving facility location or address
description: An alternative way to capture the facility when no standardized DCSA facility code can be found.
equipmentEventTypeCode:
type: string
example: GTOT
description: 'Specifies the type of event.
- LOAD = Loaded
- DISC = Discharged
- GTIN = Gated In
- GTOT = Gated Out
- STUF = Stuffed
- STRP = Stripped
- PICK = Picked Up
- DROP = Dropped Off
- HOLD = On Hold
'
enum:
- LOAD
- DISC
- GTIN
- GTOT
- STUF
- STRP
- PICK
- DROP
- HOLD
eventClassifierCode:
type: string
example: ACT
description: 'Specifies whether the event is Actual, Planned or Estimated.
- PLN = Planned. Used for future appointments agreed on by two parties.
- ACT = Actual. Used for confirmed events that have happened in the past.
- EST = Estimated. Used for future events that are forecasted but subject to change.
'
enum:
- PLN
- ACT
- EST
equipmentReference:
type: string
example: APZU4812090
description: The unique identifier for the equipment, which should follow the BIC ISO Container Identification Number standard where possible. If a container is not yet assigned to a shipment, the interface cannot return any information when an equipment reference is given as input. If a container is assigned to an (active) shipment, the interface returns information on the active shipment.
event:
description: The event entity is described as a generalization of all the specific event categories. An event always takes place in relation to a shipment and can additionally be linked to a transport mode or an equipment entity.
type: object
properties:
eventType:
$ref: '#/components/schemas/eventType'
eventDateTime:
$ref: '#/components/schemas/eventDateTime'
required:
- eventType
- eventDateTime
- eventTypeCode
facilityCode:
type: string
example: AEAUHADT
description: The code used for identifying the specific facility.
equipmentEvent:
description: The equipment event entity is a specialization of the event entity to support specification of data that only applies to an equipment event. This is where to put all event data that applies to the container itself. It has a different set of event codes.
allOf:
- $ref: '#/components/schemas/event'
- type: object
properties:
eventType:
type: string
example: equipmentEvent
enum:
- equipmentEvent
eventTypeCode:
$ref: '#/components/schemas/equipmentEventTypeCode'
eventClassifierCode:
$ref: '#/components/schemas/eventClassifierCode'
equipmentReference:
$ref: '#/components/schemas/equipmentReference'
facilityTypeCode:
$ref: '#/components/schemas/facilityTypeCode'
facilityCode:
$ref: '#/components/schemas/facilityCode'
emptyIndicatorCode:
$ref: '#/components/schemas/emptyIndicatorCode'
modeOfTransportCode:
$ref: '#/components/schemas/modeOfTransportCode'
oneOf:
- properties:
UNLocationCode:
$ref: '#/components/schemas/UNLocationCode'
required:
- eventType
- eventDateTime
- eventTypeCode
- emptyIndicatorCode
- eventClassifierCode
- equipmentReference
- UNLocationCode
- facilityCode
- facilityTypeCode
- properties:
otherFacility:
$ref: '#/components/schemas/otherFacility'
required:
- eventType
- eventDateTime
- eventTypeCode
- emptyIndicatorCode
- eventClassifierCode
- equipmentReference
- otherFacility
- facilityCode
- facilityTypeCode
Success:
properties:
success:
type: string
boolean:
type: boolean
securitySchemes:
ApiKeyAuth:
type: apiKey
name: Opentrack-API-Key
in: header
SignatureAuth:
type: apiKey
name: Opentrack-Partner-Signature
in: header
x-provenance:
method: searched
source: https://partners.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://partners.opentrack.co/reference/publishdatatoopentrack.md
merge:
pages: 1
deduped: 0
conflicts_kept_first: 0