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.
Get
- Endpoint:
cds/exports/:correlationId
- Method: GET
- Parameters:
- correlationId - the value returned by the Create method
- Response body schema: GetExportDataSchema
- Returns
- 200 Ok. GetExportResponseSchema
- 401 Unauthorised. You did not provide a valid API key.
- 404 Not found. The declaration could not be found.
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.
Get
- Endpoint:
cds/imports/:correlationId
- Method: GET
- Parameters:
- correlationId - the value returned by the Create method
- Response body schema: GetImportDataSchema
- Returns
- 200 Ok. GetImportResponseSchema
- 401 Unauthorised. You did not provide a valid API key.
- 404 Not found. The declaration could not be found.
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