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.
Authorization
bearerAuth AuthorizationBearer <token>
Bearer token authentication for API access.
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://api.sophiie.ai/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": [
"What type of countertops do you prefer?",
"Do you need electrical work?"
],
"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"
}
}List Organization Products GET
Retrieve all products for the organization, grouped by trade categories. Returns product information including names, descriptions, and pricing organized by their respective categories.
Create Policy POST
Create a new policy entry. The policy will be associated with the organization of the API key.