AccessKey header. Examples use fictional values.
Carrier and label assignments are optional when creating an asset. Skip the corresponding lookup when you do not need that assignment.
1. Look up a carrier
CallGET /Carriers/GetCarriers. The response is a direct array:
CarrierID when creating or editing an asset. To retrieve a single carrier, supply its CarrierID; the response remains an array and is empty when nothing matches.
Results are returned in a single response. Look up carriers when you configure your integration and reuse the result instead of requesting the list before every asset operation.
2. Find an available label
CallGET /Labels/GetLabels. The response is an object with two separate properties:
Labelscontains only available labels: state0(Healthy) and state8(Near expiration).Summaryalso counts assigned labels (state2). Assigned labels are counted but not returned as rows, so the number of rows is notTotal.- Label states are a different set of values from asset statuses.
- Each label includes its
AccountID. Choose a label whoseAccountIDmatches the asset’sAccountID. - Results are returned in one response. Retrieve the list when you need to choose a label.
3. Create the asset
Send the chosen identifiers toPOST /Assets/NewAssets. Send LabelID as a string:
CarrierID returned by List carriers. Choose a label whose AccountID matches the asset’s AccountID. You can also assign a label later, while the asset is Created. Assigning a label moves the asset to Ready, after which LabelID cannot be changed.
4. Add a note
CallPOST /Assets/UserComment with the asset and the note text:
User comment event, and configured email notifications for that event can be sent.
Rejected requests return HTTP 400, with a body such as {"Code":400,"Message":"Asset not found."}. Invalid input, such as a missing required field, returns HTTP 422.
