Authentication overview

BIC-Boxtech secures access to its suite of APIs, including the BOXTECH API, BIC Facility Code API, and BIC Container Prefix Registry, through an API key-based authentication model. This method allows developers and integrators to programmatically interact with container and facility data for purposes such as container tracking, intermodal logistics operations, and automated equipment interchange processes. The API keys serve as a unique identifier and secret token, verifying the identity of the client making a request and ensuring that only authorized applications can retrieve or send data.

The system is designed to integrate container data into Transportation Management Systems (TMS) and other logistics platforms. All API communication is expected to occur over HTTPS/TLS encrypted connections to protect the transmission of API keys and data in transit. This aligns with general industry practices for securing API interactions, as detailed by organizations like the World Wide Web Consortium's information security guidelines.

Supported authentication methods

BIC-Boxtech primarily supports API key authentication for accessing its services. This approach is common for APIs that provide access to specific data sets and require a straightforward, consistent method for client identification and authorization.

BIC-Boxtech Authentication Methods
Method When to Use Security Level
API Key Programmatic access to BIC-Boxtech APIs (BOXTECH, Facility Code, Container Prefix Registry) from server-side applications or trusted clients. Standard. Relies on secure storage and transmission.

Getting your credentials

To obtain API keys for BIC-Boxtech, developers must register for an account on the BIC-Boxtech platform. Upon successful registration and potentially subscription to a suitable plan (starting with a free developer account), API keys can typically be generated and managed within the account dashboard. The process generally involves:

  1. Account Registration: Create a developer account on the BIC-Boxtech website.
  2. Accessing Dashboard: Log in to your developer dashboard.
  3. Generating API Key: Navigate to the API settings or credentials section. Here, you will typically find an option to generate a new API key. Some platforms allow for multiple keys, which can be useful for different environments (e.g., development, staging, production) or different applications.
  4. Storing the Key: Once generated, the API key is usually displayed only once. It is crucial to copy and store this key securely immediately. BIC-Boxtech's API documentation provides comprehensive guidance on this process, including examples for common use cases, which can be found in the BIC-Boxtech technical documentation.

It is important to treat API keys as sensitive credentials, similar to passwords, to prevent unauthorized access to your BIC-Boxtech resources.

Authenticated request example

When making an authenticated request to a BIC-Boxtech API endpoint, the API key is typically included in the request headers. This is a common pattern for API key authentication, as described in various HTTP authentication specifications from the IETF. Below is an example using cURL, demonstrating how to include an API key in the X-API-Key header (the exact header name might vary, so always refer to the official BIC-Boxtech API reference for precise details).


curl -X GET \
  'https://api.bic-boxtech.org/v1/containers/example_container_id' \
  -H 'Accept: application/json' \
  -H 'X-API-Key: YOUR_BIC_BOXTECH_API_KEY'

In this example:

  • YOUR_BIC_BOXTECH_API_KEY should be replaced with the actual API key obtained from your BIC-Boxtech account.
  • The -H 'X-API-Key: ...' part adds the custom header containing your API key.
  • The -H 'Accept: application/json' header specifies that the client expects a JSON response.
  • The URL https://api.bic-boxtech.org/v1/containers/example_container_id is a placeholder for an actual API endpoint.

Security best practices

Proper management and protection of API keys are critical to maintaining the security of your integration with BIC-Boxtech. Adhering to these best practices helps prevent unauthorized access and potential data breaches:

  • Do Not Embed Keys Directly in Code: Avoid hardcoding API keys directly into your application's source code. Instead, use environment variables, configuration files, or a secure secrets management service. This prevents the key from being exposed if your code repository is compromised.
  • Restrict Access to Keys: Ensure that only authorized personnel and systems have access to API keys. Implement strict access controls for any files or services storing these credentials.
  • Use Environment Variables for Server-Side Applications: For server-side applications, store API keys as environment variables. This keeps them out of the codebase and makes it easier to manage different keys for different deployment environments (development, staging, production).
  • Never Expose Keys in Client-Side Code: API keys should never be exposed in client-side code (e.g., JavaScript in a web browser, mobile application bundles). If your application requires client-side access to BIC-Boxtech data, consider implementing a backend proxy that authenticates with BIC-Boxtech and exposes a controlled interface to your client.
  • Utilize HTTPS/TLS: Always ensure that all communication with BIC-Boxtech APIs occurs over HTTPS (HTTP Secure) to encrypt data in transit. This protects your API key from interception during transmission. This is a fundamental security practice for any API integration, as highlighted by organizations such as Google's recommendations on HTTPS.
  • Regularly Rotate API Keys: Periodically generate new API keys and revoke old ones. This practice limits the window of exposure if a key is compromised. The frequency of rotation depends on your organization's security policies and risk assessment.
  • Implement Least Privilege: If BIC-Boxtech offers granular permissions (check the BIC-Boxtech documentation), configure your API keys with the minimum necessary permissions required for your application to function. This minimizes the impact of a compromised key.
  • Monitor API Usage: Regularly monitor your API usage logs for any unusual activity or spikes that could indicate unauthorized use of your API key. Set up alerts for suspicious patterns if possible.
  • Secure Your Development Environment: Ensure that your local development environment and CI/CD pipelines are secure to prevent accidental exposure of API keys during development or deployment processes.
  • IP Whitelisting: If BIC-Boxtech supports IP whitelisting for API keys, configure it to allow requests only from your authorized server IP addresses. This adds an extra layer of security, preventing unauthorized requests originating from other IP addresses.