Authentication

Get an API key and authenticate your requests.

To use the API, you need an API key. It identifies your Cargoboard account and is sent with every request.

Getting an API key

  • If the API is already activated for your account, you find your key in my.cargoboard.com under Account → Integration.
  • If you don't have a key yet, write to Patrick, our integration specialist, at [email protected], or ask your Cargoboard contact. We reply quickly.

The same key works in the sandbox and in production. See Sandbox and production.

Treat your key like a password: keep it in your server-side configuration, not in client-side code or public repositories.

Authenticating requests

Add your API key to every request in the X-API-KEY header:

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

If the key is missing or wrong, the API answers with 403 Forbidden. See Errors.

Connecting AI assistants (MCP)

AI assistants such as Claude can use the same key through the Cargoboard MCP server. Setup, tools and examples: AI assistants (MCP).

📘

Need help?

Write to Patrick, our integration specialist, at [email protected]. We reply quickly.