---
title: "Get a hub by Id"
method: POST
path: "/api/v{version}/hubs/{id}"
tags: ["hubs"]
---

# Get a hub by Id

`POST /api/v{version}/hubs/{id}`

Get a hub by Id

## Path parameters

- `version` string, required
- `id` string, uuid, required

## Headers

- `X-Tenant` string, required

## Request body

- GetHubRequest
  - `id` string, uuid
  - `includeServices` boolean
  - `expiration` string, date-span, nullable

## Response `200`

OK

- HubResponse
  - `id` string, uuid
  - `name` string, nullable
  - `type` string, nullable
  - `isPickupPoint` boolean
  - `address` AddressDto
    - `street` string, nullable
    - `city` string, nullable
    - `cityTerritoryId` string, uuid
    - `district` string, nullable
    - `districtTerritoryId` string, uuid
    - `postalCode` string, nullable
    - `country` string, nullable
    - `coordinates` Coordinates
      - `lat` number, double, nullable
      - `lng` number, double, nullable
  - `openingHours` string, nullable
  - `phone` PhoneDto
    - `number1` string, nullable
    - `number2` string, nullable
    - `number3` string, nullable
  - `createdAt` string, date-time
  - `services` HubServiceDto[], nullable
    - `id` string, uuid
    - `type` string, nullable

---

[API](https://skmtc.net/zrexpress/apis/zrexpress-api.md) · [All operations](https://skmtc.net/zrexpress/apis/zrexpress-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zrexpress/zrexpress-api/revisions/99b075e0b641/schema)
