Skip to main content

Inventory

Query available compute resources, their specifications, pricing, and current availability. This endpoint does not require authentication.


List Inventory​

List available compute resources, optionally filtered by type or GPU availability.

Endpoint​

GET /tha/v3/inventory

Query Parameters​

FieldTypeDescription
typestringFilter by resource type: vm or bm.
gpubooleanFilter by GPU availability. Set to true to only return GPU resources.
regionstringFilter by region UID (lowercase slug, max 32 characters). Applies to region-scoped resources such as bm.

Example Request​

curl -X GET "https://api.targon.com/tha/v3/inventory?type=vm&gpu=true"

Bare-metal capacity in a single region:

curl -X GET "https://api.targon.com/tha/v3/inventory?type=bm&region=us-ord-1"

Response​

Returns an array of inventory objects.

Each inventory object:

FieldTypeDescription
namestringResource identifier (e.g. h200-small).
display_namestringHuman-readable name.
descriptionstringDescription of the resource.
typestringResource type (vm or bm).
regionobjectRegion the resource is offered in. Present for bm. See Region object.
gpubooleanWhether this resource includes a GPU.
specobjectHardware specifications.
cost_per_hournumberHourly cost. Region-specific for bm.
availableintegerNumber of units currently available (per region for bm).
reservedobjectOrg-scoped endpoint only. { "count", "reservations": [{ "uid", "status", "workload_uid", "reservation_end_at" }] }

Region object​

FieldTypeDescription
uidstringRegion UID (e.g. us-ord-1). Use as region on BM workloads.
display_namestringHuman-readable name.
countrystringISO country code.
continentstringContinent.

The spec object:

FieldTypeDescription
gpu_typestringGPU type (e.g. "H200").
gpu_countintegerNumber of GPUs.
vcpuintegerVirtual CPU cores.
memoryintegerMemory in MB.
storageintegerStorage in MB.

Example Response​

[
{
"name": "h200-small",
"display_name": "NVIDIA H200 - Small",
"description": "Single H200 GPU instance",
"type": "vm",
"gpu": true,
"spec": {
"gpu_type": "H200",
"gpu_count": 1,
"vcpu": 12,
"memory": 115000,
"storage": 0
},
"cost_per_hour": 2.49,
"available": 5
}
]

Errors​

Status CodeDescription
400 - Bad RequestInvalid query parameter (unrecognized type, invalid gpu value, or malformed region).
500 - Internal Server ErrorServer error.

List Regions​

List active regions. Bare-metal inventory and BM workloads are scoped to a region. This endpoint does not require authentication.

Endpoint​

GET /tha/v3/region

Example Request​

curl -X GET https://api.targon.com/tha/v3/region

Response​

Returns an array of Region objects.

[
{
"uid": "us-ord-1",
"display_name": "US Central (Chicago)",
"country": "US",
"continent": "North America"
}
]

Errors​

Status CodeDescription
500 - Internal Server ErrorServer error.

Org Inventory​

GET /tha/v3/orgs/{org_slug}/inventory

Same query parameters and response shape as List Inventory, plus the reserved field showing capacity reserved for your organization. Requires authentication.