# API Developer Portal > Developer Portal for API Documentation ## Table of contents - [ELD Integrations](https://developer.truckertools.com/apis/eld.md): The APIs for providing carrier ELD integration information - [Invoice Api](https://developer.truckertools.com/apis/brokercarrierinvoiceapi.md): Create or update an invoice of a load - Retrieve authentication keys from TruckerTools - Create authentication signatures for each Request - Send invoice updates to TruckerTools Authentication is done using the provided API Key and a Signature, encrypted using the Secret Key, in the header of the API call. ``` X-Api-Key: ${ApiKey} X-Signature: ${Signature} ``` | Sample Keys | | | --- | --- | | API Key | `f3f4b655b406bfa2e5ea81d02e862db0` | | Secret Key | `37d7118e12551a58a5431db8a6944baef085426b7b2bd07b1249b7a11f7ea289` | ## Steps to create encrypted signature 1. Build a URL-encoded query string with the following values: | Field | Description | Example | | --- | --- | --- | | `accountId` | This is your Account ID which will be provided to you. | `12345` | | `userName` | This is the email of the user that needs access to the SmartCapacity system. | `user@domain.com` | | `timestamp` | Current time in UTC when the request was initiated in `YYYYMMDDHHmmss` format. The request should reach Trucker Tools within 10 minutes from this timestamp. | `20220315153030` | ``` accountId=12345&userName=user%40domain.com×tamp=20220315153030 ``` 2. Encrypt the string using the AES-256-CBC encryption method, using the MD5 hash of the Secret Key as the passphrase and the first 16 characters of the secret key as the IV (initialization vector), then get the result as a UTF8-encoded, base 64 string. | Encryption | | | --- | --- | | **Cipher Algorithm** | AES | | **Mode** | CBC | | **Key Size** | 256 | | **Data** | `accountId=12345&userName=user%40domain.com×tamp=20220315153030` | | **Passphrase** | `56d64066e6035e0ac38d246a27c71027` | | **IV / Nonce** | `37d7118e12551a58` | ``` aIvJ83KqAw/T/L+xHkyzwW75xwSrjZZTxN2drRYyOqtrxJoSkb/pdpAG+Pl+RT+XuVv0Gfwe1774GLtxFWNgNbv9Ko4chfboDfLqD5Mvgno= ``` 3. In order to use the output above in API calls we need to make it URL safe. To do that you need to: - replace all `+` (plus) characters with `-` (dash) - replace all `/` (slash) characters with `_` (underscore) - remove all `=` (equal) characters ``` aIvJ83KqAw_T_L-xHkyzwW75xwSrjZZTxN2drRYyOqtrxJoSkb_pdpAG-Pl-RT-XuVv0Gfwe1774GLtxFWNgNbv9Ko4chfboDfLqD5Mvgno ``` 4. Convert signature to Base 64 encoding: ``` YUl2SjgzS3FBd19UX0wteEhreXp3Vzc1eHdTcmpaWlR4TjJkclJZeU9xdHJ4Sm9Ta2JfcGRwQUctUGwtUlQtWHVWdjBHZndlMTc3NEdMdHhGV05nTmJ2OUtvNGNoZmJvRGZMcUQ1TXZnbm8= ``` - [Smart Capacity - Smart Routes API](https://developer.truckertools.com/apis/addsmartroute.md): Specification of API to manage Smart Route in Trucker Tools Platform - [Cancel Load Track](https://developer.truckertools.com/apis/cancelloadtrack.md): The Partner system can send a cancel request to the Load Track system. On receiving the request the Load Track system will cancel the Load Track if the last stop time has not passed yet. - [Smart Capacity - Carrier Activity BookItNow API](https://developer.truckertools.com/apis/carrieractivitybookitnow.md): Smart Capacity - carrier Activity BookItNow API - [Smart Capacity - Carrier Activity Load Views API](https://developer.truckertools.com/apis/carrieractivityloadviews.md): Smart Capacity - carrier Activity Load Views API - [Smart Capacity - Carrier Activity Loads API](https://developer.truckertools.com/apis/carrieractivityloads.md): Smart Capacity - carrier Activity Loads API - [Smart Capacity - Carrier Activity Offers API](https://developer.truckertools.com/apis/carrieractivityoffers.md): Smart Capacity - carrier Activity Offers API - [Smart Capacity - Carrier Activity BookItNow API](https://developer.truckertools.com/apis/carrieractivityphoneclick.md): Smart Capacity - carrier Activity BookItNow API - [Carrier Book-It-Now API](https://developer.truckertools.com/apis/carrierbookitnow.md): Create Book-It-Now request for a load - Retrieve authentication keys from TruckerTools - Create authentication signatures for each Request - Create Book-It-Now request - [Carrier ELD Integration List](https://developer.truckertools.com/apis/carriereldintegrationlist.md): The API provides the list of currently integrated ELD carriers. Requests are authenticated by the `partnerId` and `accountId` attributes as query params. These values will be provided by TruckerTools during onboarding, the latter already being encrypted. - [Smart Capacity - Carrier Activity -Load Views](https://developer.truckertools.com/apis/carrierloadviewactivity.md): Set of endpoints to enable Brokers to get carrier activity (views & clicks) on a Load. - Retrieve authentication keys from TruckerTools - Create authentication signatures for each Request - Retrieve Lookup values - Get View & Click details Before Users are able to use the Views & Clicks detail, the Broker must sign up for Smart Capacity and receive a **apiKey and signature pair**. - [Carrier Offer Negotiation APIs](https://developer.truckertools.com/apis/carrieroffernegotiations.md): An endpoint to enable carriers to make offers/counters - Retrieve authentication keys from TruckerTools - Create authentication signatures for each Request - Create or update or get offers/counters - [Overview](https://developer.truckertools.com/index.html.md) - [Offer Negotiation APIs](https://developer.truckertools.com/apis/carrieroffers.md): Create or update or find carrier offers/counters - Create or update or get offers/counters - [LoadTrack - Create or Update Track](https://developer.truckertools.com/apis/createloadtrack.md): Requests are authenticated by the `partnerId` and `accountId` attributes in the body. These values will be provided by TruckerTools during onboarding, the latter already being encrypted. - [Get asset list of an ELD carrier](https://developer.truckertools.com/apis/geteldassetlist.md): The API provides the list of assets of an ELD carriers. Requests are authenticated by the `partnerId` and `accountId` attributes as query params. These values will be provided by TruckerTools during onboarding, the latter already being encrypted. **Note:** The below providers do not allow us to access a carrier's vehicle list, so carriers with these providers will result in blank responses. ``` Omnitracs Mercer Big Road Ariontech GPS Border ``` - [LoadTrack - Pull Load Track Updates](https://developer.truckertools.com/apis/getloadtrackupdates.md): Requests are authenticated by the `partnerId` and `accountId` attributes in the body. These values will be provided by TruckerTools during onboarding, the latter already being encrypted. - [Get telematic details of an ELD carrier](https://developer.truckertools.com/apis/gettelematicdetails.md): The API provides the list of providers and assets of an ELD carriers. Requests are authenticated by the `partnerId` and `accountId` attributes as query params. These values will be provided by TruckerTools during onboarding, the latter already being encrypted. **Note:** The below providers do not allow us to access a carrier's vehicle list, so carriers with these providers will result in blank responses. ``` Omnitracs Mercer Ariontech GPS Border ``` - [Smart Capacity - Load Search API](https://developer.truckertools.com/apis/loadsearchforcarriers.md): Specification of API to Search For Loads - [Load Track Stats API Suite](https://developer.truckertools.com/apis/loadtrackstats.md): Suite of APIs to pull load tracking stats. - [Load Track Webhooks API](https://developer.truckertools.com/apis/loadtrackwebhooks.md) - [Create or pdate an action of a stop](https://developer.truckertools.com/apis/manageactionofstop.md): create or update an individual action of a stop in a Load Track. Not all actions are updatable. Only the actions with pickup and delivery numbers are updatable. - [OAuth2](https://developer.truckertools.com/apis/oauth2.0.md): API for OAuth2 authentication - [Proactive Driver Verification](https://developer.truckertools.com/apis/proactivedriververification.md): The Proactive Driver Verification (PDV) API allows brokers to request driver verification documents and track verification status. This API enables you to create verification requests, query existing requests, and receive driver-submitted documents. - [Mark Stop Complete](https://developer.truckertools.com/apis/markstopcomplete.md): Marks a stop on a Load Track as complete and removes it from ETA calculations. Use this endpoint when a stop is completed outside of the normal tracking flow, for example when the driver bypassed the stop or an administrative correction is needed. When a stop is marked complete: - The stop is flagged as complete and is no longer included in ETA calculations. - Any pending running-late notifications for that stop are cancelled. - ETAs for the remaining stops on the load are recalculated. - [SmartCapacity Administration](https://developer.truckertools.com/apis/scapiadmin.md): # API for SmartCapacity Administration - [SmartCapacity - Get Available Loads](https://developer.truckertools.com/apis/scapiavailableloads.md): Endpoint for retrieving a list of available load numbers with a starting time of at least two weeks before the request. # Authentication Authentication is done using the provided API Key and a Signature, encrypted using the Secret Key, in the header of the API call. ``` X-Api-Key: ${ApiKey} X-Signature: ${Signature} ``` | Sample Keys | | | --- | --- | | API Key | `f3f4b655b406bfa2e5ea81d02e862db0` | | Secret Key | `37d7118e12551a58a5431db8a6944baef085426b7b2bd07b1249b7a11f7ea289` | ## Steps to create encrypted signature 1. Build a URL-encoded query string with the following values: | Field | Description | Example | | --- | --- | --- | | `accountId` | This is your Account ID which will be provided to you. | `12345` | | `userName` | This is the email of the user that needs access to the SmartCapacity system. | `user@domain.com` | | `timestamp` | Current time in UTC when the request was initiated in `YYYYMMDDHHmmss` format. The request should reach Trucker Tools within 10 minutes from this timestamp. | `20220315153030` | ``` accountId=12345&userName=user%40domain.com×tamp=20220315153030 ``` 2. Encrypt the string using the AES-256-CBC encryption method, using the MD5 hash of the Secret Key as the passphrase and the first 16 characters of the secret key as the IV (initialization vector), then get the result as a UTF8-encoded, base 64 string. | Encryption | | | --- | --- | | **Cipher Algorithm** | AES | | **Mode** | CBC | | **Key Size** | 256 | | **Data** | `accountId=12345&userName=user%40domain.com×tamp=20220315153030` | | **Passphrase** | `56d64066e6035e0ac38d246a27c71027` | | **IV / Nonce** | `37d7118e12551a58` | ``` aIvJ83KqAw/T/L+xHkyzwW75xwSrjZZTxN2drRYyOqtrxJoSkb/pdpAG+Pl+RT+XuVv0Gfwe1774GLtxFWNgNbv9Ko4chfboDfLqD5Mvgno= ``` 3. In order to use the output above in API calls we need to make it URL safe. To do that you need to: - replace all `+` (plus) characters with `-` (dash) - replace all `/` (slash) characters with `_` (underscore) - remove all `=` (equal) characters ``` aIvJ83KqAw_T_L-xHkyzwW75xwSrjZZTxN2drRYyOqtrxJoSkb_pdpAG-Pl-RT-XuVv0Gfwe1774GLtxFWNgNbv9Ko4chfboDfLqD5Mvgno ``` 4. Convert signature to Base 64 encoding: ``` YUl2SjgzS3FBd19UX0wteEhreXp3Vzc1eHdTcmpaWlR4TjJkclJZeU9xdHJ4Sm9Ta2JfcGRwQUctUGwtUlQtWHVWdjBHZndlMTc3NEdMdHhGV05nTmJ2OUtvNGNoZmJvRGZMcUQ1TXZnbm8= ``` - [SmartCapacity - Broker Advantage Reports](https://developer.truckertools.com/apis/scapibrokeradvantagereports.md): Reports available to Broker Advantage customers. - [Smart Capacity - Carrier Load Search](https://developer.truckertools.com/apis/scapibrokerloadsearch.md): Set of endpoints to enable Carriers to search for loads. Before Users are able to use the Load Search, they must sign up for Smart Capacity and receive a public and private key pair unique to themselves and their Carrier. The public key will be passed in the headers of each of these Requests, and the private key will be used to generate a unique signature for each Request. This unique Request signature is composed of the following URL-encoded values: - `email` - Your e-mail address. - `mc` - Your Carrier MC code. - `timestamp` - Current unicode timestamp. For example: - `email=user@domain.com&mc=MC12345×tamp=1638378000` It is then hashed as an SHA-256 string, with an MD5 hash of the secret key, with the following details: - **Encryption:** AES - **Mode:** CBC - **Key Size:** 256 - **IV / Nonce:** first 16 characters of secret key For example: - `bbc6583b483aa3eb083f296b17a2de0060af354224602e615da0d2e067fdbb8d` Finally, it is then encoded as a base 64 string based on the UTF-8 character set: - `YmJjNjU4M2I0ODNhYTNlYjA4M2YyOTZiMTdhMmRlMDA2MGFmMzU0MjI0NjAyZTYxNWRhMGQyZTA2N2ZkYmI4ZA==` - [SmartCapacity - Capacity by Load](https://developer.truckertools.com/apis/scapicapacitybyload.md): Get carrier capacity by load number. - [Smart Capacity - Carrier Load Search](https://developer.truckertools.com/apis/scapicarriergetloads.md) - [Smart Capacity - Carrier Load Search](https://developer.truckertools.com/apis/scapicarrierloadssearch.md): Set of endpoints to enable Carriers to search for Loads. - Retrieve authentication keys from TruckerTools - Create authentication signatures for each Request - Retrieve Lookup values - Search for Loads Before Users are able to use the Load Search, the Carrier must sign up for Smart Capacity and receive a **public and private key pair**. The public key will be passed in the headers of each of these Requests, and the private key will be used to generate a unique signature for each Request. An additional Authorization header will be passed identifying the User. Each request will require these three headers: - `X-API-Key` - The user's public key. - `X-Signature` - A signature generated using the private key. - `Authorization` - A token identifying the User. **Signature Generation** We recommend that signatures be generated per request, but they have a lifetime of 10 minutes. With the following test values: | Sample Keys | | | --- | --- | | Public Key | `14e1c0907605ee5d09fc74411bdf1a59` | | Private Key | `3ddfb0818b68e8233e04e0a89fc2a062` | 1. Create a query string of the following values: - `timestamp` - Current UTC timestamp in the format `YYYYMMDDhhmmss`. - Example: `20220815120000` - `url` - The full URL of the Request, including query string parameters, with URL encoding. - Example: `%3A%2F%2Fscapi-staging.truckertools.com%2Fapi%2Fcarriers%2Floads%2Fsearch` - `content` - If the Request has content in the body, an MD5 hash of the body content. If there is no content (such as with GET Requests), this can be omitted. - Example: `58aa1d9059a3c78c71af3e684b88ae0f` For example: ``` timestamp=20220815120000&url=http%3A%2F%2Fscapi-staging.truckertools.com%2Fapi%2Fcarriers%2Floads%2Fsearch&content=58aa1d9059a3c78c71af3e684b88ae0f ``` 2. Create an IV using a randomized 16-character hexadecimal string. For example: `b12e0a944f2fa6d2` 3. Encrypt the query string in OpenSSL, using the above IV, the private key associated with your Carrier account, and the following cipher algorithm: - **Encryption:** AES - **Mode:** CBC - **Key Size:** 256 For example: ``` eAFiYGWlDfnoL4miBbi4/fVh/W17zZDYUwD5gQ4S3QfI0KwwDQn4oQrWusyAC8ZJyHYv9THxWTXUN5fVxRT8+NnZbNzwF7iNH5YvxXUKzkKQW6H0guMtv9vemPaaOq6OCY98bZZJBiDz1aH88luHjUCGuZCjUSlvv1zKolCVYMzL8fYi8ad+3bsCnrGqdnr45W+yfZCmAOJ4Ilzk3LjnZA== ``` 4. Prepend the IV to the encrypted string. For example: ``` b12e0a944f2fa6d2eAFiYGWlDfnoL4miBbi4/fVh/W17zZDYUwD5gQ4S3QfI0KwwDQn4oQrWusyAC8ZJyHYv9THxWTXUN5fVxRT8+NnZbNzwF7iNH5YvxXUKzkKQW6H0guMtv9vemPaaOq6OCY98bZZJBiDz1aH88luHjUCGuZCjUSlvv1zKolCVYMzL8fYi8ad+3bsCnrGqdnr45W+yfZCmAOJ4Ilzk3LjnZA== ``` 5. Finally, encode this string in base 64: ``` YjEyZTBhOTQ0ZjJmYTZkMmVBRmlZR1dsRGZub0w0bWlCYmk0L2ZWaC9XMTd6WkRZVXdENWdRNFMzUWZJMEt3d0RRbjRvUXJXdXN5QUM4Wkp5SFl2OVRIeFdUWFVONWZWeFJUOCtOblpiTnp3RjdpTkg1WXZ4WFVLemtLUVc2SDBndU10djl2ZW1QYWFPcTZPQ1k5OGJaWkpCaUR6MWFIODhsdUhqVUNHdVpDalVTbHZ2MXpLb2xDVllNekw4ZllpOGFkKzNic0NuckdxZG5yNDVXK3lmWkNtQU9KNElsemszTGpuWkE9PQ== ``` **Authorization Token** The `Authorization` header simply requires the User's email address in base 64 encoding, offered as a `Bearer` token. ``` Authorization: Bearer dXNlckBkb21haW4uY29t ``` **Lookups** Several search filters require specific values. This set of APIs provides the ability to lookup these values, including display text to populate any select fields you might be using. There is an informational request which lists the available lookup endpoints, which can be used to programatically fetch a full set of lookup values. Each individual lookup endpoint also uses server-side pagination as a performance precaution. - [SmartCapacity - Get Nearby Loads](https://developer.truckertools.com/apis/scapigetnearbyloads.md): Load Track Create API - [SmartCapacity - User Management](https://developer.truckertools.com/apis/scapiusers.md): # Purpose This is a set of endpoints to retrieve, create, update or delete Users from your Account. # Authentication These endpoints are secured by TruckerTools Authentication v3. - [Self-Service Webhooks API](https://developer.truckertools.com/apis/selfservicewebhooks.md): The Self-Service Webhooks API allows you to programmatically manage webhook subscriptions. ## Authentication All endpoints require OAuth 2.0 Bearer token authentication. See the [OAuth 2.0 documentation](/apis/oauth2.0) for details on obtaining access tokens. ## Supported Event Types Currently, the following event type is supported for self-service webhook subscriptions: - `PdvRequestCompleted` - Triggered when a driver completes a Proactive Driver Verification request ## Limits - Webhook URLs must use HTTPS - [Send Driver Comments](https://developer.truckertools.com/apis/sendcomments.md): Requests are authenticated by the `partnerId` and `accountId` attributes in the body. These values will be provided by TruckerTools during onboarding, the latter already being encrypted. - [create, update, retrieve a smartroute](https://developer.truckertools.com/apis/smartroute.md): create, update, retrieve a smartroute - [SmartCapacity API](https://developer.truckertools.com/apis/smartcapacity.md): API definitions for TruckerTools' SmartCapacity. Started 10/22/2018. - [Smart Capacity - Book It Now API](https://developer.truckertools.com/apis/smartcapacitybookitnow.md): scapi.truckertools.com - [Smart Capacity Broker API](https://developer.truckertools.com/apis/smartcapacitybrokerapi.md): Smart Capacity API. You can find out more about - [Get Posted Truck Capacity API](https://developer.truckertools.com/apis/smartcapacitymycapacitiesapi.md): Get capacities that are created by email parsing. # Authentication Authentication is done using the provided API Key and a Signature, encrypted using the Secret Key, in the header of the API call. ``` X-Api-Key: ${ApiKey} X-Signature: ${Signature} ``` | Sample Keys | | | --- | --- | | API Key | `f3f4b655b406bfa2e5ea81d02e862db0` | | Secret Key | `37d7118e12551a58a5431db8a6944baef085426b7b2bd07b1249b7a11f7ea289` | ## Steps to create encrypted signature 1. Build a URL-encoded query string with the following values: | Field | Description | Example | | --- | --- | --- | | `accountId` | This is your Account ID which will be provided to you. | `12345` | | `userName` | This is the email of the user that needs access to the SmartCapacity system. | `user@domain.com` | | `timestamp` | Current time in UTC when the request was initiated in `YYYYMMDDHHmmss` format. The request should reach Trucker Tools within 10 minutes from this timestamp. | `20220315153030` | ``` accountId=12345&userName=user%40domain.com×tamp=20220315153030 ``` 2. Encrypt the string using the AES-256-CBC encryption method, using the MD5 hash of the Secret Key as the passphrase and the first 16 characters of the secret key as the IV (initialization vector), then get the result as a UTF8-encoded, base 64 string. | Encryption | | | --- | --- | | **Cipher Algorithm** | AES | | **Mode** | CBC | | **Key Size** | 256 | | **Data** | `accountId=12345&userName=user%40domain.com×tamp=20220315153030` | | **Passphrase** | `56d64066e6035e0ac38d246a27c71027` | | **IV / Nonce** | `37d7118e12551a58` | ``` aIvJ83KqAw/T/L+xHkyzwW75xwSrjZZTxN2drRYyOqtrxJoSkb/pdpAG+Pl+RT+XuVv0Gfwe1774GLtxFWNgNbv9Ko4chfboDfLqD5Mvgno= ``` 3. In order to use the output above in API calls we need to make it URL safe. To do that you need to: - replace all `+` (plus) characters with `-` (dash) - replace all `/` (slash) characters with `_` (underscore) - remove all `=` (equal) characters ``` aIvJ83KqAw_T_L-xHkyzwW75xwSrjZZTxN2drRYyOqtrxJoSkb_pdpAG-Pl-RT-XuVv0Gfwe1774GLtxFWNgNbv9Ko4chfboDfLqD5Mvgno ``` 4. Convert signature to Base 64 encoding: ``` YUl2SjgzS3FBd19UX0wteEhreXp3Vzc1eHdTcmpaWlR4TjJkclJZeU9xdHJ4Sm9Ta2JfcGRwQUctUGwtUlQtWHVWdjBHZndlMTc3NEdMdHhGV05nTmJ2OUtvNGNoZmJvRGZMcUQ1TXZnbm8= ``` - [SmartCapacity - All Capacity](https://developer.truckertools.com/apis/smartcapacitypull.md): API to pull all available Trucker Tools Capacity - [Smart Capacity - Qualified Carriers API](https://developer.truckertools.com/apis/smartcapacitysynccarriers.md): API used by Brokers to identify Carriers who are or aren't qualified on the Trucker Tools portal. Qualified Carriers marked as in-network can see load details and contact information in Trucker Tools. Out-of-network Carriers can only see the Broker's loads exist and must use our platform to communicate with the Broker. - [SmartCapacity - Sync Loads API](https://developer.truckertools.com/apis/syncloads.md): API used by Brokers to create and update loads in the Trucker Tools System.