Container API

Get access to your container data through Cloudbox's Container API.

Retrieving Container Data

After syncing your SKU list, the next step is retrieving your organization’s CloudBox containers. Containers represent the physical CloudBox units in your facility and return current inventory values, tracking information, and audit details.

The container export endpoint allows you to pull real-time inventory data into your internal systems, dashboards, or reporting tools.

Only active containers are returned, most recently active first. The response wraps the containers in data alongside a metadata object.

API Endpoint

GET
/api/export/containers

Current Use Cases

Required Headers

Every request must include the following:

Header Key
Description
org-api-key
Your Organization API key. Contact Cloudbox Support For Access: support@cloudboxapp.com.
user-api-key
Your User API Key

Requests missing either header will return 401 Unauthorized

Example Request

bash curl -X GET "https://app.cloudboxapp.com/api/export/containers" \ -H "org-api-key: YOUR_ORG_API_KEY" \ -H "user-api-key: YOUR_USER_API_KEY" \ -H "Accept: application/json"

Response Schema

Column
Type
Description
id
string
Unique randomly generated number
created_at
string (ISO 8601)
Time container was created
hardwareId
string
Serial of container sticker
serialId
string
Serial of container sticker
name
string
Name of container
currentWeight
number
Current weight in container
unitWeight
number
Unit weight of SKU assigned to the container
lastActive
string (ISO 8601)
Time container was last active
lastUpdated
string (ISO 8601)
Last time container data was updated
lastBaseName
string
Room container was last updated in
lastBaseLocation
string
Placement container was last updated
organizationId
string
ID of organization who owns the container
lastBaseId
string
ID of the last base the container was on
containerWeight
number
Weight of empty container
unitModeEnabled
boolean
True if unit mode is enabled
tracking_id
string (nullable)
External tracking ID (e.g., Metrc, BioTrack, WMS SKU Serial Number)
active
boolean
Whether container is currently active
units
number
Number of units in container
isOverThreshold
boolean
Whether weight exceeds threshold
isUnitWeightDeviated
boolean
Whether unit weight has deviated from expected
expiration_date
string (YYYY-MM-DD)
Expiration date of contents
isPossibleTheft
boolean
Flag indicating possible theft detected
is_third_party
boolean
Whether container is from third party
containerStatus
string (nullable)
Current status of container
preTrimWeight
number, nullable
postTrimWeight
number, nullable
trimLossWeight
number, nullable
preShippingWeight
number, nullable
preShippingUnits
number, nullable
destroyedWeight
number, nullable
destroyedUnits
number, nullable
receivedWeight
number, nullable
receivedUnits
number, nullable
vaultWeight
number, nullable
vaultUnits
number, nullable
retailWeight
number, nullable
retailUnits
number, nullable
skuId
string
ID of SKU assigned to container
is_plant
boolean, nullable
plantID
number, nullable
References canna_plants
placement_id
string (uuid), nullable
References Placements
room_id
string (uuid), nullable
References rooms
location_id
string (uuid), nullable
References Locations
fluid_ounce_qty
number, nullable
mixed_sku_enabled
boolean
require_scan_out
boolean
section_id
string (uuid), nullable
References Sections
SKU
object (nullable)
SKU assigned to the container: id, name, unitWeight, description, trackingId, unitModeEnabled, expirationDate, createdAt, updatedAt
metadata.total_containers
number
Number of containers returned
metadata.exported_at
string (ISO 8601)
Time the export was generated
metadata.organization_id
string
ID of the organization the API keys belong to

Filters

Errors

Cloudbox uses standard HTTP status codes to indicate API success or failure:

  • 200–299 – Request succeeded
  • 400 – Bad request (missing parameters, invalid values)
  • 401 – Unauthorized (missing or invalid API keys)
  • 404 – Resource not found
  • 429 – Too many requests (rate limited)