Endpoints

Base URL

All of our API endpoints are accessed through the base url: https://api.clear-port.com/v1/

CDS Exports

Create

  • Endpoint: cds/exports
  • Method: POST
  • Request body schema: CreateExportDataSchema
  • Returns
    • 202 Accepted. CreateExportResponseSchema
    • 400 Bad Request. There was a problem with the data you provided. An explanation will be provided in the response body.
    • 401 Unauthorised. You did not provide a valid API key.

CDS Imports

Create

  • Endpoint: cds/imports
  • Method: POST
  • Schema: CreateImportDataSchema
  • Returns
    • 202 Accepted. CreateImportResponseSchema
    • 400 Bad Request. There was a problem with the data you provided. An explanation will be provided in the response body.
    • 401 Unauthorised. You did not provide a valid API key. -

NCTS Departures

Create

  • Endpoint: ncts/v5/departures
  • Method: POST

Download TAD

  • Endpoint: ncts/v5/departures/:id/tad
  • Method: GET

Vehicles

Create

  • Endpoint: vehicles
  • Method: POST

List

  • Endpoint: vehicles
  • Method: GET

Get Vehicle

  • Endpoint: vehicles/:id
  • Method: GET

Update

  • Endpoint: vehicles/:id
  • Method: PUT