Units
List units
Return every unit attached to the workspace.
Endpoint
GET
/v1/unitsHeaders
| Key | Value | Required |
|---|---|---|
| Authorization | Bearer {access_token} | Required |
Response
| Field | Type | Description |
|---|---|---|
| id | string | Unit identifier. |
| name | string | Display name shown in the dashboard. |
| channels | string[] | Connected channel slugs (e.g. `airbnb`, `booking`). |
Example usage
Request
curl https://api.bookbed.io/v1/units \
-H "Authorization: Bearer eyJ…"Response
[
{ "id": "u_001", "name": "Cabin · Lofoten", "channels": ["airbnb","booking"] },
{ "id": "u_002", "name": "Studio · Kraków", "channels": ["booking","direct"] }
]