Skip to main content

Endpoint

GET /api/services

Authentication

Authorization
string
required
Bearer token. Format: Bearer <token>

Response

[].id
string
Unique service identifier (UUID).
[].name
string
Service display name.
[].description
string | null
Optional description of the service.
[].price
number
Service price.
[].tenantId
string
UUID of the tenant that owns this service.
[].createdAt
string
ISO 8601 timestamp of when the service was created.
[].updatedAt
string
ISO 8601 timestamp of the last update.

Examples

curl --request GET \
  --url http://localhost:5000/api/services \
  --header 'Authorization: Bearer <token>'

Example response

[
  {
    "id": "c3d4e5f6-a7b8-9012-cdef-012345678902",
    "name": "Hardware Installation",
    "description": "On-site installation of hardware components",
    "price": 120.00,
    "tenantId": "t9e8d7c6-b5a4-3210-fedc-ba9876543210",
    "createdAt": "2026-01-20T10:00:00.000Z",
    "updatedAt": "2026-01-20T10:00:00.000Z"
  },
  {
    "id": "d4e5f6a7-b8c9-0123-defa-123456789013",
    "name": "Annual Maintenance",
    "description": null,
    "price": 250.00,
    "tenantId": "t9e8d7c6-b5a4-3210-fedc-ba9876543210",
    "createdAt": "2026-02-05T09:30:00.000Z",
    "updatedAt": "2026-02-05T09:30:00.000Z"
  }
]

Build docs developers (and LLMs) love