Authentication ๐Ÿ”

Get an API key, authenticate your requests and connect AI assistants via MCP.

The Cargoboard API lets you automate quoting, booking and shipment tracking directly from your own systems โ€” covering groupage, LTL and FTL shipments, ADR/dangerous goods, and B2B and B2C deliveries. Every request is authenticated with an API key.

Prefer working with AI? With the same API key you can also connect AI assistants such as Claude to Cargoboard via our MCP server โ€” see Connecting AI assistants (MCP) below.

Getting an API key

  • Already have an account? If the API is activated for your account, find your key on the user settings page.
  • No key yet? Request one from your personal Cargoboard contact, or reach out directly to [email protected].

The sandbox and production environment use different keys โ€” see Test and Production System.

๐Ÿ”

Keep your key secret

Your API key grants full access to the API and does not expire on its own. Treat it like a password: keep it out of client-side code, public repositories and logs.

Authenticating requests

Send your API key in the X-API-KEY header with every request:

curl --request GET \
     --url https://api-sandbox.cargoboard.com/v1/orders \
     --header 'X-API-KEY: YourKeyHere'

Requests without a valid X-API-KEY header are rejected with 403 Forbidden โ€” see Error Messages.

Connecting AI assistants (MCP)

In addition to the REST API, Cargoboard provides a server for the Model Context Protocol (MCP). It lets MCP-compatible AI assistants โ€” for example Claude Code โ€” request quotes, book shipments, look up orders and print shipping labels for you, using your existing Cargoboard API key.

Requirements

Connect

MCP server URL:

https://cargo-mcp-customer-prod-by5hmotcna-ey.a.run.app/mcp

Run the following command once in your terminal to add the Cargoboard MCP server to Claude Code. Replace YourKeyHere with your API key:

claude mcp add --transport http cargoboard https://cargo-mcp-customer-prod-by5hmotcna-ey.a.run.app/mcp --header "Authorization: Bearer YourKeyHere"
๐Ÿ“˜

Different authentication header

The MCP server expects your API key as Authorization: Bearer YourKeyHere โ€” not in the X-API-KEY header used by the REST API.

Your API key is part of the MCP configuration. Treat it like a password: don't share the command in public chats or tickets, and don't commit MCP configuration files containing the key to a repository.

Available tools

ToolWhat it doesKey inputs
create_quotationCreates a new quotation (price request)Product, shipper and consignee reference, postal codes and country codes, plus shipment data such as package type, dimensions and weight
get_quotationReturns the details of a quotationquotationId
create_orderBooks a new transport orderProduct and complete shipper and consignee addresses
get_orderReturns the details of an orderorderId
print_shipment_labelsGenerates shipping labels for an orderorderId; optional format A4 or A6

Supported product values for create_quotation and create_order: STANDARD, EXPRESS, EXPRESS_8, EXPRESS_10, EXPRESS_12, EXPRESS_16, FIX, FIX_8, FIX_10, FIX_12, FIX_16 and DIRECT โ€” see Shipment Products.

๐Ÿšง

Live system

The MCP server is connected to the Cargoboard production system. create_order creates a real, billable transport order. Before booking, have your assistant summarize all order details and only confirm once you have checked them. For integration testing, use the REST API sandbox at https://api-sandbox.cargoboard.com.

Example prompts

  • "Get me a Cargoboard quote for 2 euro pallets, 120 ร— 80 ร— 150 cm, 400 kg each, from 10115 Berlin (DE) to 80331 Munich (DE)."
  • "Show me the details of order 123456."
  • "Print the A6 shipping labels for order 123456."

Troubleshooting

If the connection or a tool call fails, check in this order:

  1. Is exactly the MCP URL above configured (ending in /mcp)?
  2. Is your API key sent as Authorization: Bearer YourKeyHere?
  3. Is your API key still valid and is the API activated for your account?
  4. Are all required fields of the tool present and are formats and values (e.g. product) valid?

Support

Questions about authentication, your integration or MCP? Contact the Cargoboard API team at [email protected] โ€” we're happy to help you get set up.