Organization

List Organization Services

Retrieve all services for the organization, grouped by trade categories. Returns service information including names, descriptions, durations, and follow-up questions organized by their respective categories.

GET
/v1/organization/services

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication for API access.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/organization/services"
{  "categories": [    {      "id": 1,      "name": "Kitchen Services",      "type": "SERVICE",      "services": [        {          "id": 123,          "name": "Kitchen Installation",          "description": "Complete kitchen renovation and installation service",          "duration": 180,          "followUpQuestions": [],          "tradeCategoryId": 1,          "createdAt": "2023-01-01T00:00:00.000Z",          "isActive": true        }      ]    }  ],  "totalCategories": 5,  "totalServices": 23}
{  "success": false,  "message": "Invalid or expired token",  "error": {    "status": 401,    "message": "Invalid or expired token"  }}
{  "success": false,  "message": "Internal server error",  "error": {    "status": 500,    "message": "Internal server error"  }}