Base URL: https://api.youklid.cz/v2
Authentication: Bearer token in Authorization header
All API requests require authentication using your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY Content-Type: application/json
To access client data, you must first obtain delegation access:
POST/delegate/otp
{
"email": "client@example.com"
}
POST/delegate/verify-otp
{
"email": "client@example.com",
"otp": "123456"
}
GET/delegations
Returns all clients who have granted you access.
GET/catalog
Returns all available services with their options, pricing, and availability.
Catalog structure follows Product-Option-Value model:
POST/cart/add
{
"delegate_user_id": 123,
"items": [
{
"name": "regular_cleaning",
"properties": [
{"name": "location", "value": "praha"},
{"name": "duration", "value": 5},
{"name": "start", "value": 9},
{"name": "date", "value": "2025-01-20"},
{"name": "name", "value": "John Doe"},
{"name": "address", "value": "Plzeňská 155/113"}
]
},
{
"name": "details",
"properties": [
{"name": "phone", "value": "+420123456789"},
{"name": "invoice_name", "value": "John Doe"},
{"name": "invoice_address", "value": "Plzeňská 155/113"},
{"name": "invoice_city", "value": "Praha"}
]
}
]
}
GET/cart?delegate_user_id=123
Returns all services currently in the client's cart.
DELETE/cart/remove
{
"delegate_user_id": 123,
"name": "regular_cleaning"
}
POST/cart/checkout
{
"delegate_user_id": 123
}
Response:
{
"status": "success",
"message": "Cart checkout successful",
"total_price": 3180,
"order_id": 123456,
"paid": false,
"paygate_link": "https://pay1.comgate.cz/init?id=XXXX-XXXX-XXXX"
}
POST/pay
{
"delegate_user_id": 123,
"amount": 3380
}
Response:
{
"status": "success",
"link": "https://pay1.comgate.cz/init?id=XXXX-XXXX-XXXX",
"amount": "3380",
"currency": "CZK"
}
GET/orders?delegate_user_id=123
Returns all orders for a specific client with status information.
Response:
{
"status": "success",
"orders": [
{
"id": 123456,
"address": "Plzeňská 155/113",
"start": "2025-07-12 08:00:00",
"duration": 5,
"state": "UPCOMING",
"payment": "PAID",
"price": 3180,
"currency": "CZK"
}
]
}
Service States:
STORNO - Order cancelledUPCOMING - Scheduled for futureIN_PROGRESS - Currently being performedDONE - Service completedPayment States:
CANCELED - Payment cancelledWAITING - Awaiting paymentPAID - Payment completedAll endpoints return JSON responses with status and message fields:
{
"status": "error",
"message": "Error description"
}
For support: devops@youklid.cz | For client support: info@youklid.cz