Skip to main content
GET
/
hubs
/
{id}
Get hub by ID
curl --request GET \
  --url https://api.autoprintfarm.com/public/v1/hubs/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "firmware_version": "<string>",
    "hardware_version": "<string>",
    "is_online": true,
    "last_seen_at": "<string>",
    "printer_count": 123,
    "claimed_at": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "is_stale": true,
    "printers": [
      {
        "id": "<string>",
        "name": "<string>",
        "model": "<string>",
        "status": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Path Parameters

id
string
required

Hub ID

Response

Hub detail

success
enum<boolean>
required
Available options:
true
data
object
required