{"components":{"headers":{},"parameters":{"AcceptLanguage":{"description":"`sk` or `cs` returns error messages in Slovak, anything else in English.","in":"header","name":"Accept-Language","schema":{"enum":["sk","cs","en"],"type":"string"},"x-sk-description":"`sk` alebo `cs` vráti chybové hlásenia po slovensky, inak po anglicky."},"CreatedAfter":{"description":"Only items created after this instant (RFC 3339). Use for polling new items and dedupe by `id`.","in":"query","name":"created_after","schema":{"format":"date-time","type":"string"},"x-sk-description":"Iba položky vytvorené po tomto okamihu (RFC 3339). Na načítanie nových položiek; deduplikujte podľa `id`."},"Cursor":{"description":"Opaque cursor from `next_cursor` of the previous page. Valid only with the same filters.","in":"query","name":"cursor","schema":{"type":"string"},"x-sk-description":"Nepriehľadný kurzor z `next_cursor` predchádzajúcej stránky. Platí iba s rovnakými filtrami."},"IdempotencyKey":{"description":"Makes the POST safe to retry: a repeat with the same key and body returns the stored response with `Idempotent-Replayed: true`. A different body returns 422 `IDEMPOTENCY_KEY_REUSED`; a repeat while the first call is still running returns 409 `IDEMPOTENCY_IN_PROGRESS`.","in":"header","name":"Idempotency-Key","schema":{"maxLength":255,"type":"string"},"x-sk-description":"Umožní bezpečne zopakovať POST: opakovanie s rovnakým kľúčom a telom vráti uloženú odpoveď s hlavičkou `Idempotent-Replayed: true`. Iné telo vráti 422 `IDEMPOTENCY_KEY_REUSED`, súbežné opakovanie 409 `IDEMPOTENCY_IN_PROGRESS`."},"Limit":{"description":"Page size (1–100).","in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"},"x-sk-description":"Veľkosť stránky (1–100)."},"Sort":{"description":"Sort field, prefix `-` for descending. Allowed fields are listed per endpoint; default `-created_at`.","example":"-created_at","in":"query","name":"sort","schema":{"type":"string"},"x-sk-description":"Pole triedenia, predpona `-` = zostupne. Povolené polia sú uvedené pri jednotlivých koncových bodoch; predvolene `-created_at`."},"UpdatedSince":{"description":"Only items updated since this instant (RFC 3339). Use for incremental sync.","in":"query","name":"updated_since","schema":{"format":"date-time","type":"string"},"x-sk-description":"Iba položky zmenené od tohto okamihu (RFC 3339). Na inkrementálnu synchronizáciu."}},"responses":{"E400":{"content":{"application/json":{"example":{"error":{"code":"BAD_REQUEST","detail":null,"message":"Invalid request."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request.","x-sk-description":"Neplatná požiadavka."},"E401":{"content":{"application/json":{"example":{"error":{"code":"UNAUTHORIZED","detail":null,"message":"Missing, invalid, expired or revoked API key."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing, invalid, expired or revoked API key.","x-sk-description":"Chýbajúci, neplatný, expirovaný alebo zrušený API kľúč."},"E403":{"content":{"application/json":{"example":{"error":{"code":"FORBIDDEN","detail":null,"message":"The key lacks the required scope."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The key lacks the required scope.","x-sk-description":"Kľúč nemá požadovaný scope."},"E404":{"content":{"application/json":{"example":{"error":{"code":"NOT_FOUND","detail":null,"message":"Resource not found."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Resource not found.","x-sk-description":"Zdroj sa nenašiel."},"E409":{"content":{"application/json":{"example":{"error":{"code":"CONFLICT","detail":null,"message":"Conflict with the current state."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Conflict with the current state.","x-sk-description":"Konflikt s aktuálnym stavom."},"E422":{"content":{"application/json":{"example":{"error":{"code":"VALIDATION_ERROR","detail":null,"message":"Validation failed or the request cannot be processed."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Validation failed or the request cannot be processed.","x-sk-description":"Validácia zlyhala alebo požiadavku nemožno spracovať."},"E429":{"content":{"application/json":{"example":{"error":{"code":"RATE_LIMITED","detail":null,"message":"Too many requests"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Rate limit exceeded (per key and per organization). Wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"x-sk-description":"Prekročený limit požiadaviek (na kľúč aj na organizáciu). Počkajte `Retry-After` sekúnd."}},"schemas":{"Activity":{"properties":{"app_url":{"description":"Link to the record in the Dakoty app.","format":"uri","type":"string"},"assignee":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"company":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"completed_at":{"format":"date-time","type":["string","null"]},"contact":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"created_at":{"format":"date-time","type":["string","null"]},"end_at":{"format":"date-time","type":["string","null"]},"id":{"description":"Stable identifier; use it for dedupe.","format":"uuid","type":"string"},"importance":{"enum":["low","normal","high"],"type":"string"},"lead":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"location":{"type":["string","null"]},"name":{"type":"string"},"note":{"type":["string","null"]},"owner":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"start_at":{"format":"date-time","type":["string","null"]},"status":{"enum":["open","closed","canceled"],"type":"string"},"type":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"updated_at":{"format":"date-time","type":["string","null"]},"video_call_url":{"type":["string","null"]}},"required":["id"],"type":"object"},"ActivityBody":{"properties":{"assignee_id":{"description":"Default: the owner of the key.","format":"uuid","type":"string"},"company_id":{"format":"uuid","type":"string"},"contact_id":{"format":"uuid","type":"string"},"end_at":{"description":"Default: `start_at` + 30 minutes.","format":"date-time","type":"string"},"importance":{"default":"normal","enum":["low","normal","high"],"type":"string"},"lead_id":{"format":"uuid","type":"string"},"location":{"maxLength":255,"type":"string"},"name":{"description":"Required on create.","maxLength":255,"type":"string"},"note":{"type":"string"},"start_at":{"description":"Required on create.","format":"date-time","type":"string"},"type_id":{"format":"uuid","type":"string"},"video_call_url":{"maxLength":2048,"type":"string"}},"required":["name","start_at"],"type":"object"},"Address":{"properties":{"city":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"street":{"type":["string","null"]}},"type":"object"},"ArchiveBody":{"properties":{"lost_note":{"maxLength":2000,"type":"string"},"lost_reason_id":{"format":"uuid","type":"string"}},"type":"object"},"Booking":{"properties":{"app_url":{"description":"Link to the record in the Dakoty app.","format":"uri","type":"string"},"cancellation_reason":{"type":["string","null"]},"cancelled_at":{"format":"date-time","type":["string","null"]},"client":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"completed_at":{"format":"date-time","type":["string","null"]},"confirmed_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"currency":{"type":["string","null"]},"customer":{"properties":{"company":{"type":["string","null"]},"email":{"type":["string","null"]},"name":{"type":"string"},"notes":{"type":["string","null"]},"phone":{"type":["string","null"]}},"type":"object"},"ends_at":{"format":"date-time","type":"string"},"id":{"description":"Stable identifier; use it for dedupe.","format":"uuid","type":"string"},"lead":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"price":{"type":["number","null"]},"service":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"source":{"type":"string"},"staff":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"starts_at":{"format":"date-time","type":"string"},"status":{"type":"string"}},"required":["id"],"type":"object"},"BookingBody":{"properties":{"customer":{"properties":{"email":{"format":"email","type":"string"},"name":{"maxLength":255,"type":"string"},"phone":{"maxLength":50,"type":"string"}},"required":["name"],"type":"object"},"notes":{"maxLength":2000,"type":"string"},"service_id":{"format":"uuid","type":"string"},"staff_id":{"format":"uuid","type":"string"},"starts_at":{"format":"date-time","type":"string"}},"required":["service_id","starts_at","customer"],"type":"object"},"BookingServiceItem":{"properties":{"currency":{"type":"string"},"duration_minutes":{"type":"integer"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"price":{"type":["number","null"]}},"type":"object"},"BookingStaffItem":{"properties":{"email":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"CancelBookingBody":{"properties":{"reason":{"maxLength":1000,"type":"string"}},"type":"object"},"Client":{"properties":{"app_url":{"description":"Link to the record in the Dakoty app.","format":"uri","type":"string"},"company":{"oneOf":[{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"registration_id":{"type":["string","null"]}},"type":"object"},{"type":"null"}]},"created_at":{"format":"date-time","type":["string","null"]},"id":{"description":"Stable identifier; use it for dedupe.","format":"uuid","type":"string"},"note":{"type":["string","null"]},"owner":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"reference_code":{"type":["string","null"]},"reference_name":{"type":["string","null"]},"reference_valid_until":{"format":"date","type":["string","null"]},"updated_at":{"format":"date-time","type":["string","null"]}},"required":["id"],"type":"object"},"ClientBody":{"properties":{"company_id":{"description":"Required on create.","format":"uuid","type":"string"},"note":{"type":"string"},"owner_id":{"format":"uuid","type":"string"},"reference_code":{"maxLength":100,"type":"string"},"reference_name":{"maxLength":255,"type":"string"},"reference_valid_until":{"format":"date","type":"string"}},"type":"object"},"Company":{"properties":{"address":{"$ref":"#/components/schemas/Address"},"app_url":{"description":"Link to the record in the Dakoty app.","format":"uri","type":"string"},"contacts":{"description":"Detail response only.","items":{"$ref":"#/components/schemas/Contact"},"type":"array"},"country_code":{"description":"ISO 3166-1 alpha-2.","type":["string","null"]},"created_at":{"format":"date-time","type":["string","null"]},"custom_fields":{"additionalProperties":{"type":"string"},"type":"object"},"email":{"type":["string","null"]},"id":{"description":"Stable identifier; use it for dedupe.","format":"uuid","type":"string"},"name":{"type":"string"},"note":{"type":["string","null"]},"owner":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"phone":{"type":["string","null"]},"registration_id":{"type":["string","null"]},"tags":{"items":{"type":"string"},"type":"array"},"tax_id":{"type":["string","null"]},"updated_at":{"format":"date-time","type":["string","null"]},"vat_id":{"type":["string","null"]}},"required":["id"],"type":"object"},"CompanyBody":{"properties":{"city":{"type":"string"},"country_code":{"description":"ISO 3166-1 alpha-2; defaults to the organization's country.","type":"string"},"email":{"format":"email","type":"string"},"name":{"description":"Required on create.","maxLength":255,"type":"string"},"note":{"type":"string"},"owner_id":{"format":"uuid","type":"string"},"phone":{"maxLength":50,"type":"string"},"postal_code":{"maxLength":20,"type":"string"},"registration_id":{"maxLength":20,"type":"string"},"street":{"type":"string"},"tax_id":{"maxLength":20,"type":"string"},"vat_id":{"maxLength":20,"type":"string"}},"required":["name"],"type":"object"},"Contact":{"properties":{"app_url":{"description":"Link to the record in the Dakoty app.","format":"uri","type":"string"},"company":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"created_at":{"format":"date-time","type":["string","null"]},"email":{"type":["string","null"]},"emails":{"items":{"type":"string"},"type":"array"},"id":{"description":"Stable identifier; use it for dedupe.","format":"uuid","type":"string"},"is_primary":{"type":"boolean"},"name":{"type":"string"},"note":{"type":["string","null"]},"phone":{"type":["string","null"]},"phones":{"items":{"type":"string"},"type":"array"},"position":{"type":["string","null"]},"updated_at":{"format":"date-time","type":["string","null"]}},"required":["id"],"type":"object"},"ContactBody":{"properties":{"company_id":{"description":"Required on create.","format":"uuid","type":"string"},"email":{"format":"email","type":"string"},"is_primary":{"type":"boolean"},"name":{"description":"Required on create.","maxLength":255,"type":"string"},"note":{"maxLength":1000,"type":"string"},"phone":{"maxLength":50,"type":"string"},"position":{"type":"string"}},"required":["company_id","name"],"type":"object"},"CustomFieldItem":{"properties":{"description":{"type":["string","null"]},"group":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"required":{"type":"boolean"},"type":{"enum":["text","number","date","checkbox"],"type":"string"}},"type":"object"},"Error":{"properties":{"error":{"properties":{"code":{"description":"Stable machine-readable code, e.g. `NOT_FOUND`, `VALIDATION_ERROR`, `LEGACY_KEY_NOT_ALLOWED`.","type":"string"},"detail":{"description":"Optional details, e.g. per-field validation errors or the offending parameter."},"message":{"description":"Human-readable message in the language of `Accept-Language`.","type":"string"}},"required":["code","message"],"type":"object"}},"required":["error"],"type":"object"},"EventType":{"properties":{"description":{"type":"string"},"entity":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"}},"type":"object"},"Invoice":{"properties":{"app_url":{"description":"Link to the record in the Dakoty app.","format":"uri","type":"string"},"counterparty":{"properties":{"client":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"company":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"name":{"type":["string","null"]}},"type":"object"},"created_at":{"format":"date-time","type":["string","null"]},"currency":{"type":"string"},"due_date":{"format":"date","type":["string","null"]},"id":{"description":"Stable identifier; use it for dedupe.","format":"uuid","type":"string"},"is_overdue":{"type":"boolean"},"is_paid":{"type":"boolean"},"issued_date":{"format":"date","type":["string","null"]},"items":{"items":{"properties":{"name":{"type":"string"},"quantity":{"type":"number"},"total":{"type":"number"},"unit":{"type":["string","null"]},"unit_price":{"type":"number"},"vat_rate":{"type":["number","null"]}},"type":"object"},"type":"array"},"number":{"type":["string","null"]},"paid_at":{"format":"date-time","type":["string","null"]},"remaining_amount":{"type":"number"},"status":{"type":"string"},"subtotal":{"type":"number"},"total":{"type":"number"},"updated_at":{"format":"date-time","type":["string","null"]},"variable_symbol":{"type":["string","null"]},"vat_amount":{"type":"number"}},"required":["id"],"type":"object"},"InvoiceBody":{"properties":{"client_id":{"format":"uuid","type":"string"},"company_id":{"format":"uuid","type":"string"},"currency":{"description":"ISO 4217, upper case.","maxLength":3,"minLength":3,"type":"string"},"due_date":{"format":"date","type":"string"},"issued_date":{"format":"date","type":"string"},"items":{"items":{"properties":{"name":{"maxLength":500,"type":"string"},"quantity":{"default":1,"exclusiveMinimum":0,"type":"number"},"unit":{"maxLength":20,"type":"string"},"unit_price":{"minimum":0,"type":"number"},"vat_rate":{"maximum":100,"minimum":0,"type":"number"}},"required":["name","unit_price"],"type":"object"},"maxItems":100,"minItems":1,"type":"array"},"note":{"maxLength":2000,"type":"string"}},"required":["items"],"type":"object"},"Lead":{"properties":{"acquisition_cost":{"type":["number","null"]},"app_url":{"description":"Link to the record in the Dakoty app.","format":"uri","type":"string"},"archived_at":{"format":"date-time","type":["string","null"]},"assignees":{"items":{"$ref":"#/components/schemas/Ref"},"type":"array"},"client":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"company":{"oneOf":[{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"registration_id":{"type":["string","null"]}},"type":"object"},{"type":"null"}]},"contact":{"oneOf":[{"properties":{"email":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"phone":{"type":["string","null"]}},"type":"object"},{"type":"null"}]},"created_at":{"format":"date-time","type":["string","null"]},"deduplicated":{"description":"Present and `true` only on `POST /leads` when `dedupe=company` returned an existing lead.","type":"boolean"},"expected_close_date":{"format":"date","type":["string","null"]},"id":{"description":"Stable identifier; use it for dedupe.","format":"uuid","type":"string"},"lost_at":{"format":"date-time","type":["string","null"]},"lost_note":{"type":["string","null"]},"lost_reason":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"name":{"type":["string","null"]},"note":{"type":["string","null"]},"origin":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"owner":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"pipeline":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"stage":{"oneOf":[{"properties":{"id":{"format":"uuid","type":"string"},"kind":{"enum":["open","won","lost"],"type":"string"},"name":{"type":"string"},"probability":{"type":"integer"}},"type":"object"},{"type":"null"}]},"stage_entered_at":{"format":"date-time","type":["string","null"]},"status":{"enum":["open","won","lost"],"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"updated_at":{"format":"date-time","type":["string","null"]},"value":{"type":["number","null"]},"won_at":{"format":"date-time","type":["string","null"]}},"required":["id"],"type":"object"},"LeadBody":{"properties":{"acquisition_cost":{"minimum":0,"type":"number"},"assignee_ids":{"items":{"format":"uuid","type":"string"},"maxItems":50,"type":"array"},"company":{"description":"POST only; matched or created.","properties":{"country_code":{"type":"string"},"email":{"format":"email","type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"registration_id":{"maxLength":20,"type":"string"}},"type":"object"},"company_id":{"format":"uuid","type":"string"},"contact":{"description":"POST only; matched or created within the company.","properties":{"email":{"format":"email","type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"position":{"type":"string"}},"type":"object"},"contact_id":{"format":"uuid","type":"string"},"dedupe":{"description":"POST only.","enum":["none","company"],"type":"string"},"expected_close_date":{"format":"date","type":["string","null"]},"name":{"maxLength":255,"type":"string"},"note":{"type":"string"},"origin_id":{"format":"uuid","type":"string"},"owner_id":{"format":"uuid","type":"string"},"pipeline_id":{"format":"uuid","type":"string"},"stage_id":{"format":"uuid","type":"string"},"value":{"minimum":0,"type":"number"}},"type":"object"},"Me":{"properties":{"api_version":{"example":"2026-10-01","type":"string"},"limits":{"properties":{"org_requests_per_minute":{"example":600,"type":"integer"},"requests_per_minute":{"example":120,"type":"integer"}},"type":"object"},"organization":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"type":"object"},"token":{"properties":{"expires_at":{"format":"date-time","type":["string","null"]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"scopes":{"items":{"type":"string"},"type":"array"}},"type":"object"}},"type":"object"},"MoveBody":{"properties":{"lost_note":{"maxLength":2000,"type":"string"},"lost_reason_id":{"format":"uuid","type":"string"},"stage_id":{"format":"uuid","type":"string"}},"required":["stage_id"],"type":"object"},"NamedItem":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"Order":{"description":"Shape of the e-shop order response, unchanged since before v1.","properties":{"billing_address":{"type":["string","null"]},"cancelled_at":{"format":"date-time","type":["string","null"]},"client_uuid":{"format":"uuid","type":["string","null"]},"cod_fee":{"type":["number","null"]},"company_uuid":{"format":"uuid","type":["string","null"]},"confirmed_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":["string","null"]},"currency":{"type":"string"},"customer_email":{"type":["string","null"]},"customer_name":{"type":["string","null"]},"customer_phone":{"type":["string","null"]},"delivered_at":{"format":"date-time","type":["string","null"]},"delivery_address":{"description":"JSON string `{street, city, postal_code, country}`.","type":["string","null"]},"discount_total":{"type":"number"},"external_id":{"type":["string","null"]},"external_source":{"type":"string"},"grand_total":{"type":"number"},"internal_number":{"type":"string"},"invoice_uuid":{"format":"uuid","type":["string","null"]},"items":{"items":{"$ref":"#/components/schemas/OrderItem"},"type":"array"},"notes":{"type":["string","null"]},"paid_at":{"format":"date-time","type":["string","null"]},"payment_method":{"type":["string","null"]},"payment_status":{"type":"string"},"shipped_at":{"format":"date-time","type":["string","null"]},"shipping_cost":{"type":"number"},"shipping_method":{"type":["string","null"]},"status":{"type":"string"},"subtotal":{"type":"number"},"updated_at":{"format":"date-time","type":["string","null"]},"uuid":{"format":"uuid","type":"string"},"vat_total":{"type":"number"}},"type":"object"},"OrderCreate":{"properties":{"auto_confirm":{"type":"boolean"},"currency":{"maxLength":3,"minLength":3,"type":"string"},"customer":{"properties":{"billing_address":{"type":"string"},"client_uuid":{"format":"uuid","type":"string"},"company_uuid":{"format":"uuid","type":"string"},"delivery_address":{"type":"string"},"email":{"format":"email","type":"string"},"name":{"type":"string"},"phone":{"type":"string"}},"type":"object"},"discount_total":{"type":"number"},"external_id":{"maxLength":255,"type":"string"},"external_source":{"maxLength":50,"type":"string"},"items":{"items":{"properties":{"discount_pct":{"type":"number"},"notes":{"type":"string"},"product_uuid":{"format":"uuid","type":"string"},"quantity":{"exclusiveMinimum":0,"type":"number"},"sku":{"type":"string"},"unit_price":{"type":"number"},"vat_rate":{"type":"number"}},"required":["quantity"],"type":"object"},"minItems":1,"type":"array"},"notes":{"type":"string"},"payment_method":{"type":"string"},"shipping_cost":{"type":"number"},"shipping_method":{"type":"string"}},"required":["customer","items"],"type":"object"},"OrderItem":{"properties":{"discount_pct":{"type":["number","null"]},"line_total":{"type":"number"},"name":{"type":"string"},"notes":{"type":["string","null"]},"product_uuid":{"format":"uuid","type":["string","null"]},"quantity":{"type":"number"},"sku":{"type":"string"},"unit_price":{"type":"number"},"uuid":{"format":"uuid","type":"string"},"vat_rate":{"type":"number"}},"type":"object"},"PipelineItem":{"properties":{"id":{"format":"uuid","type":"string"},"is_default":{"type":"boolean"},"name":{"type":"string"},"require_lost_reason":{"type":"boolean"},"stages":{"items":{"properties":{"color":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"kind":{"enum":["open","won","lost"],"type":"string"},"name":{"type":"string"},"probability":{"type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"Product":{"properties":{"active":{"type":"boolean"},"attachments":{"description":"Single-product GET only.","items":{"properties":{"kind":{"type":"string"},"locale":{"type":"string"},"mime":{"type":"string"},"size_bytes":{"type":"integer"},"title":{"type":"string"},"url":{"type":"string"}},"type":"object"},"type":"array"},"category_uuid":{"format":"uuid","type":["string","null"]},"description":{"type":["string","null"]},"discounted_price":{"type":["number","null"]},"ean":{"type":"string"},"images":{"description":"Single-product GET only.","items":{"properties":{"alt_text":{"type":"string"},"is_primary":{"type":"boolean"},"title":{"type":"string"},"url":{"type":"string"}},"type":"object"},"type":"array"},"name":{"type":"string"},"price":{"type":["number","null"]},"sku":{"type":"string"},"stock_available":{"description":"Only with `?include=stock`.","type":"number"},"stock_on_hand":{"description":"Only with `?include=stock`.","type":"number"},"updated_at":{"format":"date-time","type":"string"},"uuid":{"format":"uuid","type":"string"}},"type":"object"},"ProjectItem":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"stages":{"items":{"properties":{"category":{"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"type":"array"},"status":{"type":"string"}},"type":"object"},"Ref":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"required":["id"],"type":"object"},"RestHook":{"properties":{"created_at":{"format":"date-time","type":"string"},"events":{"items":{"type":"string"},"type":"array"},"id":{"format":"uuid","type":"string"},"name":{"type":["string","null"]},"target_url":{"format":"uri","type":"string"}},"type":"object"},"RestHookCreate":{"properties":{"event":{"description":"Single event (Zapier shape); alternative to `events`.","example":"lead.created","type":"string"},"events":{"example":["lead.created"],"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"target_url":{"description":"HTTPS URL that receives the events.","format":"uri","type":"string"}},"required":["target_url"],"type":"object"},"RestHookCreated":{"allOf":[{"$ref":"#/components/schemas/RestHook"},{"properties":{"secret":{"description":"Signing secret, shown only once.","example":"whsec_…","type":"string"}},"type":"object"}]},"TagItem":{"properties":{"color":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"Task":{"properties":{"app_url":{"description":"Link to the record in the Dakoty app.","format":"uri","type":"string"},"archived_at":{"format":"date-time","type":["string","null"]},"assignees":{"items":{"$ref":"#/components/schemas/Ref"},"type":"array"},"company":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"completed_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"description":{"type":["string","null"]},"due_date":{"format":"date","type":["string","null"]},"due_time":{"description":"HH:MM","type":["string","null"]},"id":{"description":"Stable identifier; use it for dedupe.","format":"uuid","type":"string"},"lead":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"priority":{"enum":["low","normal","high"],"type":"string"},"project":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"stage":{"oneOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"start_date":{"format":"date","type":["string","null"]},"title":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id"],"type":"object"},"TaskBody":{"properties":{"assignee_ids":{"items":{"format":"uuid","type":"string"},"maxItems":50,"type":"array"},"company_id":{"format":"uuid","type":"string"},"completed":{"description":"PATCH: `true` completes, `false` reopens.","type":"boolean"},"description":{"maxLength":5000,"type":"string"},"due_date":{"format":"date","type":"string"},"due_time":{"description":"HH:MM","type":"string"},"lead_id":{"format":"uuid","type":"string"},"priority":{"enum":["low","normal","high"],"type":"string"},"project_id":{"format":"uuid","type":"string"},"stage_id":{"format":"uuid","type":"string"},"start_date":{"format":"date","type":"string"},"title":{"description":"Required on create.","maxLength":255,"type":"string"}},"required":["title"],"type":"object"},"UserItem":{"properties":{"email":{"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object"},"WebhookEnvelope":{"properties":{"api_version":{"example":"2026-10-01","type":"string"},"data":{"description":"The resource exactly as returned by the matching GET endpoint.","type":"object"},"id":{"description":"Stable per event — use for dedupe (also header `webhook-id`).","example":"evt_3f2c0a9e5b1d4c7e8a6f2b1c9d0e3a4b","type":"string"},"organization":{"properties":{"id":{"format":"uuid","type":"string"},"slug":{"type":"string"}},"type":"object"},"test":{"description":"`true` for sample/test deliveries.","type":"boolean"},"timestamp":{"format":"date-time","type":"string"},"type":{"example":"lead.created","type":"string"}},"required":["id","type","timestamp","api_version","organization","test","data"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"dk_live_…","description":"API key created in Dakoty under Settings → Integrations. Send it as `Authorization: Bearer dk_live_…`.","scheme":"bearer","type":"http","x-sk-description":"API kľúč vytvorený v Dakoty v Nastavenia → Integrácie. Posielajte ho ako `Authorization: Bearer dk_live_…`."}}},"info":{"contact":{"name":"Dakoty","url":"https://dakoty.com"},"description":"REST API for integrating Dakoty with Make, Zapier, n8n, AI assistants and custom code. Every response is JSON; successful single resources are wrapped in `{\"data\": …}`, lists in `{\"data\": […], \"next_cursor\", \"has_more\"}`. Responses carry `X-Dakoty-Api-Version`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`. Mutating requests accept an `Idempotency-Key`.","summary":"Developer API v1 for the Dakoty CRM","title":"Dakoty Public API","version":"2026-10-01","x-sk-description":"REST API na prepojenie Dakoty s Make, Zapier, n8n, AI asistentmi a vlastným kódom. Odpovede sú JSON; jednotlivý zdroj je v `{\"data\": …}`, zoznamy v `{\"data\": […], \"next_cursor\", \"has_more\"}`. Odpovede obsahujú `X-Dakoty-Api-Version`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`. Zápisové požiadavky akceptujú `Idempotency-Key`.","x-sk-summary":"Developer API v1 pre Dakoty CRM"},"openapi":"3.1.0","paths":{"/activities":{"get":{"operationId":"listActivitys","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","start_at","name","-created_at","-updated_at","-start_at","-name"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Filter by `status`.","in":"query","name":"status","schema":{"enum":["open","closed","canceled"],"type":"string"},"x-sk-description":"Filter podľa `status`."},{"description":"Filter by `assignee_id` (UUID).","in":"query","name":"assignee_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `assignee_id` (UUID)."},{"description":"Filter by `company_id` (UUID).","in":"query","name":"company_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `company_id` (UUID)."},{"description":"Filter by `lead_id` (UUID).","in":"query","name":"lead_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `lead_id` (UUID)."},{"description":"Filter by `type_id` (UUID).","in":"query","name":"type_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `type_id` (UUID)."},{"description":"Filter by `importance`.","in":"query","name":"importance","schema":{"enum":["low","normal","high"],"type":"string"},"x-sk-description":"Filter podľa `importance`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Activity"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of activities."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List activities","tags":["Activities"],"x-dakoty-scope":"activities:read","x-sk-summary":"Zoznam: aktivity"},"post":{"operationId":"createActivity","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Activity"}},"required":["data"],"type":"object"}}},"description":"The created activity."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create activity","tags":["Activities"],"x-dakoty-scope":"activities:write","x-sk-summary":"Vytvoriť: aktivita"}},"/activities/{id}":{"get":{"operationId":"getActivity","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Activity"}},"required":["data"],"type":"object"}}},"description":"The activity."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get activity","tags":["Activities"],"x-dakoty-scope":"activities:read","x-sk-summary":"Detail: aktivita"},"patch":{"description":"Partial update: send only the fields to change; absent fields stay unchanged.","operationId":"updateActivity","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Activity"}},"required":["data"],"type":"object"}}},"description":"The updated activity."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Update activity","tags":["Activities"],"x-dakoty-scope":"activities:write","x-sk-description":"Čiastočná úprava: pošlite iba polia, ktoré sa majú zmeniť; chýbajúce polia ostanú nezmenené.","x-sk-summary":"Upraviť: aktivita"}},"/activities/{id}/complete":{"post":{"operationId":"completeActivity","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Activity"}},"required":["data"],"type":"object"}}},"description":"The completed activity."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Complete an activity","tags":["Activities"],"x-dakoty-scope":"activities:write","x-sk-summary":"Dokončiť aktivitu"}},"/activity-types":{"get":{"operationId":"listActivityTypes","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/NamedItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of activity types."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List activity types","tags":["Catalogs"],"x-dakoty-scope":"activities:read","x-sk-summary":"Zoznam: typy aktivít"}},"/booking-services":{"get":{"operationId":"listBookingServices","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BookingServiceItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of booking services."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List booking services","tags":["Catalogs"],"x-dakoty-scope":"bookings:read","x-sk-summary":"Zoznam: rezervačné služby"}},"/booking-staff":{"get":{"operationId":"listBookingStaff","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BookingStaffItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of booking staff."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List booking staff","tags":["Catalogs"],"x-dakoty-scope":"bookings:read","x-sk-summary":"Zoznam: rezervačný personál"}},"/bookings":{"get":{"operationId":"listBookings","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","starts_at","-created_at","-updated_at","-starts_at"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Filter by `status`.","in":"query","name":"status","schema":{"type":"string"},"x-sk-description":"Filter podľa `status`."},{"description":"Filter by `staff_id` (UUID).","in":"query","name":"staff_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `staff_id` (UUID)."},{"description":"Only bookings starting at or after this instant (RFC 3339).","in":"query","name":"starts_after","schema":{"format":"date-time","type":"string"},"x-sk-description":"Iba rezervácie začínajúce od tohto okamihu (RFC 3339)."},{"description":"Only bookings starting before this instant (RFC 3339).","in":"query","name":"starts_before","schema":{"format":"date-time","type":"string"},"x-sk-description":"Iba rezervácie začínajúce pred týmto okamihom (RFC 3339)."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Booking"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of bookings."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List bookings","tags":["Bookings"],"x-dakoty-scope":"bookings:read","x-sk-summary":"Zoznam: rezervácie"},"post":{"description":"Returns 409 when the requested slot is already occupied and 422 `BOOKING_NOT_CONFIGURED` when the organization has not set up bookings (booking portal).","operationId":"createBooking","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Booking"}},"required":["data"],"type":"object"}}},"description":"The created booking."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"content":{"application/json":{"example":{"error":{"code":"CONFLICT","detail":null,"message":"The slot is already occupied"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested time slot is already occupied.","x-sk-description":"Požadovaný termín je obsadený."},"422":{"content":{"application/json":{"example":{"error":{"code":"BOOKING_NOT_CONFIGURED","detail":null,"message":"Bookings are not set up for this organization"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Validation failed, or `BOOKING_NOT_CONFIGURED` — bookings are not set up for the organization.","x-sk-description":"Validácia zlyhala, alebo `BOOKING_NOT_CONFIGURED` — organizácia nemá nastavené rezervácie."},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create booking","tags":["Bookings"],"x-dakoty-scope":"bookings:write","x-sk-description":"Vráti 409, ak je požadovaný termín obsadený, a 422 `BOOKING_NOT_CONFIGURED`, ak organizácia nemá nastavené rezervácie (booking portál).","x-sk-summary":"Vytvoriť: rezervácia"}},"/bookings/{id}":{"get":{"operationId":"getBooking","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Booking"}},"required":["data"],"type":"object"}}},"description":"The booking."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get booking","tags":["Bookings"],"x-dakoty-scope":"bookings:read","x-sk-summary":"Detail: rezervácia"}},"/bookings/{id}/cancel":{"post":{"operationId":"cancelBooking","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBookingBody"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Booking"}},"required":["data"],"type":"object"}}},"description":"The cancelled booking."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Cancel a booking","tags":["Bookings"],"x-dakoty-scope":"bookings:write","x-sk-summary":"Zrušiť rezerváciu"}},"/clients":{"get":{"operationId":"listClients","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","name","-created_at","-updated_at","-name"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Filter by `search`.","in":"query","name":"search","schema":{"type":"string"},"x-sk-description":"Filter podľa `search`."},{"description":"Filter by `reference_code`.","in":"query","name":"reference_code","schema":{"type":"string"},"x-sk-description":"Filter podľa `reference_code`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Client"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of clients."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List clients","tags":["Clients"],"x-dakoty-scope":"clients:read","x-sk-summary":"Zoznam: klienti"},"post":{"operationId":"createClient","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Client"}},"required":["data"],"type":"object"}}},"description":"The created client."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create client","tags":["Clients"],"x-dakoty-scope":"clients:write","x-sk-summary":"Vytvoriť: klient"}},"/clients/{id}":{"get":{"operationId":"getClient","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Client"}},"required":["data"],"type":"object"}}},"description":"The client."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get client","tags":["Clients"],"x-dakoty-scope":"clients:read","x-sk-summary":"Detail: klient"},"patch":{"description":"Partial update: send only the fields to change; absent fields stay unchanged.","operationId":"updateClient","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Client"}},"required":["data"],"type":"object"}}},"description":"The updated client."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Update client","tags":["Clients"],"x-dakoty-scope":"clients:write","x-sk-description":"Čiastočná úprava: pošlite iba polia, ktoré sa majú zmeniť; chýbajúce polia ostanú nezmenené.","x-sk-summary":"Upraviť: klient"}},"/companies":{"get":{"operationId":"listCompanys","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","name","-created_at","-updated_at","-name"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Full-text search in name, e-mail and registration number.","in":"query","name":"search","schema":{"type":"string"},"x-sk-description":"Fulltext v názve, e-maile a IČO."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Company"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of companies."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List companies","tags":["Companies"],"x-dakoty-scope":"companies:read","x-sk-summary":"Zoznam: firmy"},"post":{"operationId":"createCompany","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Company"}},"required":["data"],"type":"object"}}},"description":"The created company."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create company","tags":["Companies"],"x-dakoty-scope":"companies:write","x-sk-summary":"Vytvoriť: firma"}},"/companies/find":{"get":{"description":"Exact lookup for dedupe; returns an empty list when nothing matches. At least one query parameter is required.","operationId":"findCompanies","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"description":"Registration number (IČO), exact match without spaces.","in":"query","name":"registration_id","schema":{"type":"string"},"x-sk-description":"IČO, presná zhoda bez medzier."},{"description":"E-mail, case-insensitive.","in":"query","name":"email","schema":{"type":"string"},"x-sk-description":"Filter podľa `email`."},{"description":"Phone number.","in":"query","name":"phone","schema":{"type":"string"},"x-sk-description":"Filter podľa `phone`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Company"},"type":"array"}},"type":"object"}}},"description":"Matching items."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Find companies","tags":["Companies"],"x-dakoty-scope":"companies:read","x-sk-description":"Presné vyhľadanie na deduplikáciu; ak nič nezodpovedá, vráti prázdny zoznam. Vyžaduje aspoň jeden parameter.","x-sk-summary":"Nájsť: firmy"}},"/companies/{id}":{"get":{"operationId":"getCompany","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Company"}},"required":["data"],"type":"object"}}},"description":"The company."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get company","tags":["Companies"],"x-dakoty-scope":"companies:read","x-sk-summary":"Detail: firma"},"patch":{"description":"Partial update: send only the fields to change; absent fields stay unchanged.","operationId":"updateCompany","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Company"}},"required":["data"],"type":"object"}}},"description":"The updated company."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Update company","tags":["Companies"],"x-dakoty-scope":"companies:write","x-sk-description":"Čiastočná úprava: pošlite iba polia, ktoré sa majú zmeniť; chýbajúce polia ostanú nezmenené.","x-sk-summary":"Upraviť: firma"}},"/contacts":{"get":{"operationId":"listContacts","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","-created_at","-updated_at"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Filter by `company_id` (UUID).","in":"query","name":"company_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `company_id` (UUID)."},{"description":"Filter by `search`.","in":"query","name":"search","schema":{"type":"string"},"x-sk-description":"Filter podľa `search`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Contact"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of contacts."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List contacts","tags":["Companies"],"x-dakoty-scope":"companies:read","x-sk-summary":"Zoznam: kontakty"},"post":{"operationId":"createContact","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Contact"}},"required":["data"],"type":"object"}}},"description":"The created contact."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create contact","tags":["Companies"],"x-dakoty-scope":"companies:write","x-sk-summary":"Vytvoriť: kontakt"}},"/contacts/find":{"get":{"description":"Exact lookup for dedupe; returns an empty list when nothing matches. At least one query parameter is required.","operationId":"findContacts","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"description":"E-mail, case-insensitive.","in":"query","name":"email","schema":{"type":"string"},"x-sk-description":"Filter podľa `email`."},{"description":"Phone number.","in":"query","name":"phone","schema":{"type":"string"},"x-sk-description":"Filter podľa `phone`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Contact"},"type":"array"}},"type":"object"}}},"description":"Matching items."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Find contacts","tags":["Companies"],"x-dakoty-scope":"companies:read","x-sk-description":"Presné vyhľadanie na deduplikáciu; ak nič nezodpovedá, vráti prázdny zoznam. Vyžaduje aspoň jeden parameter.","x-sk-summary":"Nájsť: kontakty"}},"/contacts/{id}":{"get":{"operationId":"getContact","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Contact"}},"required":["data"],"type":"object"}}},"description":"The contact."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get contact","tags":["Companies"],"x-dakoty-scope":"companies:read","x-sk-summary":"Detail: kontakt"},"patch":{"description":"Partial update: send only the fields to change; absent fields stay unchanged.","operationId":"updateContact","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Contact"}},"required":["data"],"type":"object"}}},"description":"The updated contact."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Update contact","tags":["Companies"],"x-dakoty-scope":"companies:write","x-sk-description":"Čiastočná úprava: pošlite iba polia, ktoré sa majú zmeniť; chýbajúce polia ostanú nezmenené.","x-sk-summary":"Upraviť: kontakt"}},"/custom-fields":{"get":{"operationId":"listCustomFields","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Entity (default `company`); the key needs that entity's read scope.","in":"query","name":"entity","schema":{"enum":["company","lead"],"type":"string"},"x-sk-description":"Entita (predvolene `company`); kľúč potrebuje jej čítací scope."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CustomFieldItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of custom fields."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List custom fields","tags":["Catalogs"],"x-dakoty-scope":"companies:read | leads:read","x-sk-summary":"Zoznam: vlastné polia"}},"/invoices":{"get":{"operationId":"listInvoices","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","issued_date","due_date","total","-created_at","-updated_at","-issued_date","-due_date","-total"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Filter by `status`.","in":"query","name":"status","schema":{"type":"string"},"x-sk-description":"Filter podľa `status`."},{"description":"Filter by `company_id` (UUID).","in":"query","name":"company_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `company_id` (UUID)."},{"description":"Filter by `client_id` (UUID).","in":"query","name":"client_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `client_id` (UUID)."},{"description":"Filter by `variable_symbol`.","in":"query","name":"variable_symbol","schema":{"type":"string"},"x-sk-description":"Filter podľa `variable_symbol`."},{"description":"Filter by `number`.","in":"query","name":"number","schema":{"type":"string"},"x-sk-description":"Filter podľa `number`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Invoice"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of invoices."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List invoices","tags":["Invoices"],"x-dakoty-scope":"invoices:read","x-sk-summary":"Zoznam: faktúry"},"post":{"description":"Exactly one of `company_id` / `client_id` is required. Maps to a regular invoice document (`document_type=invoice`).","operationId":"createInvoice","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Invoice"}},"required":["data"],"type":"object"}}},"description":"The created invoice."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create invoice","tags":["Invoices"],"x-dakoty-scope":"invoices:write","x-sk-description":"Povinné je presne jedno z `company_id` / `client_id`. Vytvorí sa bežná faktúra (`document_type=invoice`).","x-sk-summary":"Vytvoriť: faktúra"}},"/invoices/find":{"get":{"description":"Exact lookup for dedupe; returns an empty list when nothing matches. At least one query parameter is required.","operationId":"findInvoices","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"description":"Filter by `number`.","in":"query","name":"number","schema":{"type":"string"},"x-sk-description":"Filter podľa `number`."},{"description":"Filter by `variable_symbol`.","in":"query","name":"variable_symbol","schema":{"type":"string"},"x-sk-description":"Filter podľa `variable_symbol`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Invoice"},"type":"array"}},"type":"object"}}},"description":"Matching items."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Find invoices","tags":["Invoices"],"x-dakoty-scope":"invoices:read","x-sk-description":"Presné vyhľadanie na deduplikáciu; ak nič nezodpovedá, vráti prázdny zoznam. Vyžaduje aspoň jeden parameter.","x-sk-summary":"Nájsť: faktúry"}},"/invoices/{id}":{"get":{"operationId":"getInvoice","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Invoice"}},"required":["data"],"type":"object"}}},"description":"The invoice."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get invoice","tags":["Invoices"],"x-dakoty-scope":"invoices:read","x-sk-summary":"Detail: faktúra"}},"/lead-origins":{"get":{"operationId":"listLeadOrigins","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/NamedItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of lead origins."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List lead origins","tags":["Catalogs"],"x-dakoty-scope":"leads:read","x-sk-summary":"Zoznam: zdroje leadov"}},"/lead-pipelines":{"get":{"operationId":"listLeadPipelines","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PipelineItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of lead pipelines."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List lead pipelines","tags":["Catalogs"],"x-dakoty-scope":"leads:read","x-sk-summary":"Zoznam: pipeline leadov"}},"/leads":{"get":{"operationId":"listLeads","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","name","value","expected_close_date","-created_at","-updated_at","-name","-value","-expected_close_date"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Archive scope; default `false`.","in":"query","name":"archived","schema":{"enum":["false","true","all"],"type":"string"},"x-sk-description":"Rozsah archivácie; predvolene `false`."},{"description":"Filter by `origin_id` (UUID).","in":"query","name":"origin_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `origin_id` (UUID)."},{"description":"Filter by `owner_id` (UUID).","in":"query","name":"owner_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `owner_id` (UUID)."},{"description":"Filter by `company_id` (UUID).","in":"query","name":"company_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `company_id` (UUID)."},{"description":"Filter by `pipeline_id` (UUID).","in":"query","name":"pipeline_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `pipeline_id` (UUID)."},{"description":"Filter by `stage_id` (UUID).","in":"query","name":"stage_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `stage_id` (UUID)."},{"description":"Filter by `status`.","in":"query","name":"status","schema":{"enum":["open","won","lost"],"type":"string"},"x-sk-description":"Filter podľa `status`."},{"description":"Filter by `search`.","in":"query","name":"search","schema":{"type":"string"},"x-sk-description":"Filter podľa `search`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Lead"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of leads."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List leads","tags":["Leads"],"x-dakoty-scope":"leads:read","x-sk-summary":"Zoznam: leady"},"post":{"description":"Inline `company` / `contact` objects are matched to existing records (company by `registration_id`, then `email`; contact by `email` within the company) or created. With `dedupe=company` and an active lead on that company the existing lead is returned with 200 and `\"deduplicated\": true`. A missing `origin_id` uses the origin named \"API\".","operationId":"createLead","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Lead"}},"required":["data"],"type":"object"}}},"description":"An active lead of that company already exists (`dedupe=company`); it is returned with `deduplicated: true`.","x-sk-description":"Aktívny lead tejto firmy už existuje (`dedupe=company`); vráti sa s `deduplicated: true`."},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Lead"}},"required":["data"],"type":"object"}}},"description":"The created lead."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create lead","tags":["Leads"],"x-dakoty-scope":"leads:write","x-sk-description":"Vnorené objekty `company` / `contact` sa spárujú s existujúcimi záznamami (firma podľa `registration_id`, potom `email`; kontakt podľa `email` v rámci firmy), inak sa vytvoria. Pri `dedupe=company` a aktívnom leade firmy sa vráti existujúci lead s 200 a `\"deduplicated\": true`. Bez `origin_id` sa použije zdroj „API“.","x-sk-summary":"Vytvoriť: lead"}},"/leads/find":{"get":{"description":"Exact lookup for dedupe; returns an empty list when nothing matches. At least one query parameter is required.","operationId":"findLeads","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"description":"Filter by `email`.","in":"query","name":"email","schema":{"type":"string"},"x-sk-description":"Filter podľa `email`."},{"description":"Filter by `registration_id`.","in":"query","name":"registration_id","schema":{"type":"string"},"x-sk-description":"Filter podľa `registration_id`."},{"description":"Filter by `phone`.","in":"query","name":"phone","schema":{"type":"string"},"x-sk-description":"Filter podľa `phone`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Lead"},"type":"array"}},"type":"object"}}},"description":"Matching items."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Find leads","tags":["Leads"],"x-dakoty-scope":"leads:read","x-sk-description":"Presné vyhľadanie na deduplikáciu; ak nič nezodpovedá, vráti prázdny zoznam. Vyžaduje aspoň jeden parameter.","x-sk-summary":"Nájsť: leady"}},"/leads/{id}":{"get":{"operationId":"getLead","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Lead"}},"required":["data"],"type":"object"}}},"description":"The lead."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get lead","tags":["Leads"],"x-dakoty-scope":"leads:read","x-sk-summary":"Detail: lead"},"patch":{"description":"Partial update: send only the fields to change; absent fields stay unchanged.","operationId":"updateLead","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Lead"}},"required":["data"],"type":"object"}}},"description":"The updated lead."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Update lead","tags":["Leads"],"x-dakoty-scope":"leads:write","x-sk-description":"Čiastočná úprava: pošlite iba polia, ktoré sa majú zmeniť; chýbajúce polia ostanú nezmenené.","x-sk-summary":"Upraviť: lead"}},"/leads/{id}/archive":{"post":{"description":"An open lead is marked lost with `lost_reason_id` before archiving. If the lead's pipeline requires a lost reason (default) and none is given, the call fails with 422 `LOST_REASON_REQUIRED`; won/lost leads never need one.","operationId":"archiveLead","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveBody"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Lead"}},"required":["data"],"type":"object"}}},"description":"The archived lead."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"content":{"application/json":{"example":{"error":{"code":"LOST_REASON_REQUIRED","detail":null,"message":"A lost reason is required to archive an open lead"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Validation failed, e.g. `LOST_REASON_REQUIRED` when an open lead is archived without `lost_reason_id` and its pipeline requires a reason.","x-sk-description":"Validácia zlyhala, napr. `LOST_REASON_REQUIRED`, ak sa otvorený lead archivuje bez `lost_reason_id` a pipeline dôvod vyžaduje."},"429":{"$ref":"#/components/responses/E429"}},"summary":"Archive a lead","tags":["Leads"],"x-dakoty-scope":"leads:write","x-sk-description":"Otvorený lead sa pred archiváciou označí ako prehraný s `lost_reason_id`. Ak pipeline vyžaduje dôvod prehry (predvolene áno) a nie je zadaný, volanie zlyhá s 422 `LOST_REASON_REQUIRED`; vyhrané/prehraté leady dôvod nepotrebujú.","x-sk-summary":"Archivovať lead"}},"/leads/{id}/move":{"post":{"description":"Moving to a lost stage needs `lost_reason_id` when the pipeline requires one (422 `LOST_REASON_REQUIRED`). Emits `lead.stage_changed` and `lead.won` / `lead.lost`.","operationId":"moveLead","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Lead"}},"required":["data"],"type":"object"}}},"description":"The moved lead."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Move a lead to another stage","tags":["Leads"],"x-dakoty-scope":"leads:write","x-sk-description":"Presun do fázy Prehraný vyžaduje `lost_reason_id`, ak ho pipeline vyžaduje (422 `LOST_REASON_REQUIRED`). Vyvolá `lead.stage_changed` a `lead.won` / `lead.lost`.","x-sk-summary":"Presunúť lead do inej fázy"}},"/lost-reasons":{"get":{"operationId":"listLostReasons","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/NamedItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of lost reasons."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List lost reasons","tags":["Catalogs"],"x-dakoty-scope":"leads:read","x-sk-summary":"Zoznam: dôvody prehry"}},"/me":{"get":{"description":"Needs no scope — any valid key can call it. Use it as the first call to verify a key.","operationId":"getMe","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Me"}},"required":["data"],"type":"object"}}},"description":"The key, its organization and limits."},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Current key, organization and limits","tags":["General"],"x-dakoty-scope":"none","x-sk-description":"Nevyžaduje scope — zavolať ho môže každý platný kľúč. Použite ho ako prvé volanie na overenie kľúča.","x-sk-summary":"Aktuálny kľúč, organizácia a limity"}},"/orders":{"get":{"description":"Rows carry customer name, e-mail, phone and addresses, so this list is only available to **Developer API v1 keys**. A key whose only scope is `orders:read` (or any key created before v1 for an e-shop / storefront) is treated as a legacy key and gets 403 `LEGACY_KEY_NOT_ALLOWED`. Create a new key under Settings → Integrations and grant `orders:read` together with at least one other v1 scope.","operationId":"listOrders","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","grand_total","internal_number","-created_at","-updated_at","-grand_total","-internal_number"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Filter by `status`.","in":"query","name":"status","schema":{"type":"string"},"x-sk-description":"Filter podľa `status`."},{"description":"Filter by `payment_status`.","in":"query","name":"payment_status","schema":{"type":"string"},"x-sk-description":"Filter podľa `payment_status`."},{"description":"Filter by `external_source`.","in":"query","name":"external_source","schema":{"type":"string"},"x-sk-description":"Filter podľa `external_source`."},{"description":"Filter by `search`.","in":"query","name":"search","schema":{"type":"string"},"x-sk-description":"Filter podľa `search`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Order"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of orders."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"content":{"application/json":{"example":{"error":{"code":"LEGACY_KEY_NOT_ALLOWED","detail":null,"message":"This legacy API key cannot use the Developer API v1. Create a new key under Integrations."}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing `orders:read`, or a legacy key (`LEGACY_KEY_NOT_ALLOWED`) — only Developer API v1 keys may list orders.","x-sk-description":"Chýba `orders:read`, alebo ide o starší kľúč (`LEGACY_KEY_NOT_ALLOWED`) — zoznam objednávok smú čítať iba kľúče Developer API v1."},"429":{"$ref":"#/components/responses/E429"}},"summary":"List orders","tags":["Orders"],"x-dakoty-scope":"orders:read","x-sk-description":"Riadky obsahujú meno, e-mail, telefón a adresy zákazníka, preto je zoznam dostupný iba pre **kľúče Developer API v1**. Kľúč, ktorý má iba scope `orders:read` (alebo akýkoľvek kľúč vytvorený pred v1 pre e-shop / storefront), sa považuje za starší (legacy) a dostane 403 `LEGACY_KEY_NOT_ALLOWED`. Vytvorte nový kľúč v Nastavenia → Integrácie a priraďte `orders:read` spolu aspoň s jedným ďalším v1 scopom.","x-sk-summary":"Zoznam objednávok"},"post":{"description":"Unchanged e-shop endpoint (legacy scope rules). Same `external_source` + `external_id` returns the existing order.","operationId":"createOrder","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Order"}},"type":"object"}}},"description":"An order with the same `external_source` + `external_id` already exists; it is returned unchanged."},"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Order"}},"type":"object"}}},"description":"The created (or already existing) order."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create an order","tags":["Orders"],"x-dakoty-scope":"orders:write","x-sk-description":"Nezmenený e-shop endpoint (pôvodné pravidlá scopov). Rovnaké `external_source` + `external_id` vráti existujúcu objednávku.","x-sk-summary":"Vytvoriť objednávku"}},"/orders/{uuid}":{"get":{"description":"Unchanged e-shop endpoint: any key with `orders:read` can read an order by its UUID.","operationId":"getOrder","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"uuid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Order"}},"type":"object"}}},"description":"The order."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get an order","tags":["Orders"],"x-dakoty-scope":"orders:read","x-sk-description":"Nezmenený e-shop endpoint: objednávku podľa UUID prečíta každý kľúč s `orders:read`.","x-sk-summary":"Detail objednávky"}},"/orders/{uuid}/cancel":{"post":{"operationId":"cancelOrder","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"uuid","required":true,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Order"}},"type":"object"}}},"description":"The cancelled order."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Cancel an order","tags":["Orders"],"x-dakoty-scope":"orders:write","x-sk-summary":"Zrušiť objednávku"}},"/products":{"get":{"description":"Legacy-shaped list (`next_cursor`, optional `total`), kept compatible with existing e-shop integrations.","operationId":"listProducts","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"`stock` adds aggregate stock levels.","in":"query","name":"include","schema":{"enum":["stock"],"type":"string"},"x-sk-description":"`stock` pridá agregované zásoby."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Product"},"type":"array"},"next_cursor":{"type":["string","null"]},"total":{"type":"integer"}},"type":"object"}}},"description":"A page of products."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List products","tags":["Products"],"x-dakoty-scope":"products:read","x-sk-description":"Zoznam v pôvodnom tvare (`next_cursor`, voliteľne `total`) kvôli kompatibilite s existujúcimi e-shop integráciami.","x-sk-summary":"Zoznam produktov"}},"/products/{uuid}":{"get":{"operationId":"getProduct","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"uuid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Product"},"stock_levels":{"items":{"properties":{"available":{"type":"number"},"on_hand":{"type":"number"},"product_uuid":{"type":"string"},"reserved":{"type":"number"},"warehouse_name":{"type":"string"},"warehouse_uuid":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"}}},"description":"The product with images, attachments and per-warehouse stock."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get a product","tags":["Products"],"x-dakoty-scope":"products:read","x-sk-summary":"Detail produktu"}},"/projects":{"get":{"operationId":"listProjects","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProjectItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of projects with stages."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List projects with stages","tags":["Catalogs"],"x-dakoty-scope":"tasks:read","x-sk-summary":"Zoznam: projekty s fázami"}},"/tags":{"get":{"operationId":"listTags","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Entity the tags belong to (default `company`); the key needs that entity's read scope.","in":"query","name":"entity","schema":{"enum":["company","lead","activity"],"type":"string"},"x-sk-description":"Entita, ku ktorej štítky patria (predvolene `company`); kľúč potrebuje jej čítací scope."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TagItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of tags."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List tags","tags":["Catalogs"],"x-dakoty-scope":"companies:read | leads:read | activities:read","x-sk-summary":"Zoznam: štítky"}},"/tasks":{"get":{"operationId":"listTasks","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Sort field; prefix `-` for descending. Default `-created_at`.","in":"query","name":"sort","schema":{"enum":["created_at","updated_at","title","due_date","-created_at","-updated_at","-title","-due_date"],"type":"string"},"x-sk-description":"Pole triedenia; predpona `-` = zostupne. Predvolene `-created_at`."},{"$ref":"#/components/parameters/CreatedAfter"},{"$ref":"#/components/parameters/UpdatedSince"},{"description":"Filter by `search`.","in":"query","name":"search","schema":{"type":"string"},"x-sk-description":"Filter podľa `search`."},{"description":"Filter by `priority`.","in":"query","name":"priority","schema":{"enum":["low","normal","high"],"type":"string"},"x-sk-description":"Filter podľa `priority`."},{"description":"Filter by `project_id` (UUID).","in":"query","name":"project_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `project_id` (UUID)."},{"description":"Filter by `stage_id` (UUID).","in":"query","name":"stage_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `stage_id` (UUID)."},{"description":"Filter by `company_id` (UUID).","in":"query","name":"company_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `company_id` (UUID)."},{"description":"Filter by `lead_id` (UUID).","in":"query","name":"lead_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `lead_id` (UUID)."},{"description":"Filter by `assignee_id` (UUID).","in":"query","name":"assignee_id","schema":{"format":"uuid","type":"string"},"x-sk-description":"Filter podľa `assignee_id` (UUID)."},{"description":"Only completed (`true`) or open (`false`) tasks.","in":"query","name":"completed","schema":{"type":"boolean"},"x-sk-description":"Iba dokončené (`true`) alebo otvorené (`false`) úlohy."},{"description":"Only overdue open tasks when `true`.","in":"query","name":"overdue","schema":{"type":"boolean"},"x-sk-description":"Pri `true` iba otvorené úlohy po termíne."},{"description":"Archive scope; default `false`.","in":"query","name":"archived","schema":{"enum":["false","true","all"],"type":"string"},"x-sk-description":"Rozsah archivácie; predvolene `false`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Task"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of tasks."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List tasks","tags":["Tasks"],"x-dakoty-scope":"tasks:read","x-sk-summary":"Zoznam: úlohy"},"post":{"operationId":"createTask","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Task"}},"required":["data"],"type":"object"}}},"description":"The created task."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Create task","tags":["Tasks"],"x-dakoty-scope":"tasks:write","x-sk-summary":"Vytvoriť: úloha"}},"/tasks/{id}":{"get":{"operationId":"getTask","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Task"}},"required":["data"],"type":"object"}}},"description":"The task."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get task","tags":["Tasks"],"x-dakoty-scope":"tasks:read","x-sk-summary":"Detail: úloha"},"patch":{"description":"Partial update: send only the fields to change; absent fields stay unchanged.","operationId":"updateTask","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Task"}},"required":["data"],"type":"object"}}},"description":"The updated task."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Update task","tags":["Tasks"],"x-dakoty-scope":"tasks:write","x-sk-description":"Čiastočná úprava: pošlite iba polia, ktoré sa majú zmeniť; chýbajúce polia ostanú nezmenené.","x-sk-summary":"Upraviť: úloha"}},"/users":{"get":{"operationId":"listUsers","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"description":"Filter by `search`.","in":"query","name":"search","schema":{"type":"string"},"x-sk-description":"Filter podľa `search`."}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/UserItem"},"type":"array"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor","has_more"],"type":"object"}}},"description":"A page of users."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List users","tags":["Catalogs"],"x-dakoty-scope":"users:read","x-sk-summary":"Zoznam: používatelia"}},"/webhooks":{"get":{"description":"Only subscriptions with `source=rest_hook` of this organization; secrets are never returned.","operationId":"listRestHooks","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RestHook"},"type":"array"}},"type":"object"}}},"description":"Subscriptions."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List REST hooks","tags":["REST hooks"],"x-dakoty-scope":"webhooks:manage","x-sk-description":"Iba odbery typu `rest_hook` tejto organizácie; secret sa nikdy nevracia.","x-sk-summary":"Zoznam REST hookov"},"post":{"description":"The key's owner must hold the read scope of every event (e.g. `leads:read` for `lead.created`). The signing `secret` is returned once.","operationId":"createRestHook","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestHookCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/RestHookCreated"}},"required":["data"],"type":"object"}}},"description":"Subscription created."},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"422":{"$ref":"#/components/responses/E422"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Subscribe to events","tags":["REST hooks"],"x-dakoty-scope":"webhooks:manage","x-sk-description":"Kľúč musí mať čítací scope každej udalosti (napr. `leads:read` pre `lead.created`). Podpisový `secret` sa vráti iba raz.","x-sk-summary":"Prihlásiť odber udalostí"}},"/webhooks/events":{"get":{"operationId":"listWebhookEvents","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/EventType"},"type":"array"}},"type":"object"}}},"description":"Event catalog."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}},"summary":"List available event types","tags":["REST hooks"],"x-dakoty-scope":"webhooks:manage","x-sk-summary":"Dostupné typy udalostí"}},"/webhooks/events/{type}/sample":{"get":{"description":"Static sample envelope (`test: true`) for building Zap/scenario mappings.","operationId":"getWebhookEventSample","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"example":"lead.created","in":"path","name":"type","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WebhookEnvelope"},"type":"array"}},"type":"object"}}},"description":"An array with one sample envelope."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Sample payload of an event","tags":["REST hooks"],"x-dakoty-scope":"webhooks:manage","x-sk-description":"Statická vzorová obálka (`test: true`) na tvorbu mapovania v Zape/scenári.","x-sk-summary":"Vzorový payload udalosti"}},"/webhooks/{id}":{"delete":{"description":"404 if the subscription does not exist or is not a REST hook.","operationId":"deleteRestHook","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Unsubscribe","tags":["REST hooks"],"x-dakoty-scope":"webhooks:manage","x-sk-description":"404, ak odber neexistuje alebo nie je REST hook.","x-sk-summary":"Zrušiť odber"},"get":{"operationId":"getRestHook","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/RestHook"}},"required":["data"],"type":"object"}}},"description":"The subscription."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}},"summary":"Get a REST hook","tags":["REST hooks"],"x-dakoty-scope":"webhooks:manage","x-sk-summary":"Detail REST hooku"}}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Production","url":"https://api.dakoty.com/api/v1/public"}],"tags":[{"description":"Identity and limits of the current key.","name":"General","x-sk-description":"Identita a limity aktuálneho kľúča."},{"description":"Subscribe a target URL to events (Make, Zapier, n8n). Scope `webhooks:manage`.","name":"REST hooks","x-sk-description":"Prihlásenie cieľovej URL na udalosti (Make, Zapier, n8n). Scope `webhooks:manage`."},{"description":"Product catalog (read-only).","name":"Products","x-sk-description":"Katalóg produktov (iba čítanie)."},{"description":"E-shop orders.","name":"Orders","x-sk-description":"Objednávky e-shopu."},{"description":"Outgoing events, signed with Standard Webhooks (`webhook-id`, `webhook-timestamp`, `webhook-signature`). Legacy `X-Dakoty-Signature` is sent as well.","name":"Webhooks","x-sk-description":"Odchádzajúce udalosti podpísané podľa Standard Webhooks (`webhook-id`, `webhook-timestamp`, `webhook-signature`). Posiela sa aj pôvodný `X-Dakoty-Signature`."},{"description":"Companies and their contact persons. Scopes `companies:read` / `companies:write`.","name":"Companies","x-sk-description":"Firmy a ich kontaktné osoby. Scopy `companies:read` / `companies:write`."},{"description":"Clients (companies with a customer relationship). Scopes `clients:read` / `clients:write`.","name":"Clients","x-sk-description":"Klienti (firmy so zákazníckym vzťahom). Scopy `clients:read` / `clients:write`."},{"description":"Sales leads and deals. Scopes `leads:read` / `leads:write`.","name":"Leads","x-sk-description":"Obchodné príležitosti (leady). Scopy `leads:read` / `leads:write`."},{"description":"Calendar activities (calls, meetings, to-dos). Scopes `activities:read` / `activities:write`.","name":"Activities","x-sk-description":"Aktivity v kalendári (hovory, stretnutia, úlohy). Scopy `activities:read` / `activities:write`."},{"description":"Project tasks. Scopes `tasks:read` / `tasks:write`.","name":"Tasks","x-sk-description":"Projektové úlohy. Scopy `tasks:read` / `tasks:write`."},{"description":"Invoices (create issues a new invoice). Scopes `invoices:read` / `invoices:write`.","name":"Invoices","x-sk-description":"Faktúry (vytvorenie vystaví novú faktúru). Scopy `invoices:read` / `invoices:write`."},{"description":"Appointment bookings. Scopes `bookings:read` / `bookings:write`.","name":"Bookings","x-sk-description":"Rezervácie termínov. Scopy `bookings:read` / `bookings:write`."},{"description":"Lookup lists for dropdowns and mappings. Read scope of the respective entity.","name":"Catalogs","x-sk-description":"Číselníky pre výbery a mapovanie. Čítací scope príslušnej entity."}],"webhooks":{"activity.cancelled":{"post":{"description":"An activity is cancelled. The `data` member is the Activity resource.","operationId":"webhook_activity_cancelled","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Activity"},"type":{"const":"activity.cancelled"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Activity cancelled","tags":["Webhooks"],"x-dakoty-scope":"activities:read","x-sk-description":"Po zrušení aktivity.","x-sk-summary":"Aktivita zrušená"}},"activity.completed":{"post":{"description":"An activity is marked as completed. The `data` member is the Activity resource.","operationId":"webhook_activity_completed","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Activity"},"type":{"const":"activity.completed"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Activity completed","tags":["Webhooks"],"x-dakoty-scope":"activities:read","x-sk-description":"Po označení aktivity ako dokončenej.","x-sk-summary":"Aktivita dokončená"}},"activity.created":{"post":{"description":"An activity is created. The `data` member is the Activity resource.","operationId":"webhook_activity_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Activity"},"type":{"const":"activity.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Activity created","tags":["Webhooks"],"x-dakoty-scope":"activities:read","x-sk-description":"Po vytvorení aktivity.","x-sk-summary":"Aktivita vytvorená"}},"booking.cancelled":{"post":{"description":"A booking is cancelled. The `data` member is the Booking resource.","operationId":"webhook_booking_cancelled","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Booking"},"type":{"const":"booking.cancelled"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Booking cancelled","tags":["Webhooks"],"x-dakoty-scope":"bookings:read","x-sk-description":"Po zrušení rezervácie.","x-sk-summary":"Rezervácia zrušená"}},"booking.completed":{"post":{"description":"A booking is completed. The `data` member is the Booking resource.","operationId":"webhook_booking_completed","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Booking"},"type":{"const":"booking.completed"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Booking completed","tags":["Webhooks"],"x-dakoty-scope":"bookings:read","x-sk-description":"Po dokončení rezervácie.","x-sk-summary":"Rezervácia dokončená"}},"booking.confirmed":{"post":{"description":"A booking is confirmed. The `data` member is the Booking resource.","operationId":"webhook_booking_confirmed","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Booking"},"type":{"const":"booking.confirmed"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Booking confirmed","tags":["Webhooks"],"x-dakoty-scope":"bookings:read","x-sk-description":"Po potvrdení rezervácie.","x-sk-summary":"Rezervácia potvrdená"}},"booking.created":{"post":{"description":"A booking is created. The `data` member is the Booking resource.","operationId":"webhook_booking_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Booking"},"type":{"const":"booking.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Booking created","tags":["Webhooks"],"x-dakoty-scope":"bookings:read","x-sk-description":"Po vytvorení rezervácie.","x-sk-summary":"Nová rezervácia"}},"booking.no_show":{"post":{"description":"A booking is marked as no-show. The `data` member is the Booking resource.","operationId":"webhook_booking_no_show","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Booking"},"type":{"const":"booking.no_show"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Booking no-show","tags":["Webhooks"],"x-dakoty-scope":"bookings:read","x-sk-description":"Keď je rezervácia označená ako neúčasť.","x-sk-summary":"Zákazník neprišiel"}},"client.created":{"post":{"description":"A new client is created. The `data` member is the Client resource.","operationId":"webhook_client_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Client"},"type":{"const":"client.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Client created","tags":["Webhooks"],"x-dakoty-scope":"clients:read","x-sk-description":"Po vytvorení nového klienta.","x-sk-summary":"Klient vytvorený"}},"client.updated":{"post":{"description":"A client is edited. The `data` member is the Client resource.","operationId":"webhook_client_updated","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Client"},"type":{"const":"client.updated"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Client updated","tags":["Webhooks"],"x-dakoty-scope":"clients:read","x-sk-description":"Po úprave klienta.","x-sk-summary":"Klient upravený"}},"company.created":{"post":{"description":"A new company is created. The `data` member is the Company resource.","operationId":"webhook_company_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Company"},"type":{"const":"company.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Company created","tags":["Webhooks"],"x-dakoty-scope":"companies:read","x-sk-description":"Po vytvorení novej firmy.","x-sk-summary":"Firma vytvorená"}},"company.updated":{"post":{"description":"A company is edited. The `data` member is the Company resource.","operationId":"webhook_company_updated","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Company"},"type":{"const":"company.updated"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Company updated","tags":["Webhooks"],"x-dakoty-scope":"companies:read","x-sk-description":"Po úprave firmy.","x-sk-summary":"Firma upravená"}},"contact.created":{"post":{"description":"A contact person is added on the company detail (not for inline contacts at company creation or imports). The `data` member is the Contact resource.","operationId":"webhook_contact_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Contact"},"type":{"const":"contact.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Contact created","tags":["Webhooks"],"x-dakoty-scope":"companies:read","x-sk-description":"Po pridaní kontaktnej osoby na detaile firmy (nie pri inline zadaní pri vytvorení firmy ani importe).","x-sk-summary":"Kontaktná osoba vytvorená"}},"contact.updated":{"post":{"description":"A contact person is edited. The `data` member is the Contact resource.","operationId":"webhook_contact_updated","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Contact"},"type":{"const":"contact.updated"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Contact updated","tags":["Webhooks"],"x-dakoty-scope":"companies:read","x-sk-description":"Po úprave kontaktnej osoby.","x-sk-summary":"Kontaktná osoba upravená"}},"invoice.created":{"post":{"description":"An invoice is issued in the CRM (manually, API/MCP, quote/proforma conversion, recurring invoice, invoice from an order). Imports and received invoices are not included. The `data` member is the Invoice resource.","operationId":"webhook_invoice_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Invoice"},"type":{"const":"invoice.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Invoice issued","tags":["Webhooks"],"x-dakoty-scope":"invoices:read","x-sk-description":"Po vystavení faktúry v CRM (ručne, API/MCP, konverzia ponuky/zálohy, opakovaná faktúra, faktúra k objednávke). Importy a prijaté faktúry nie.","x-sk-summary":"Faktúra vystavená"}},"invoice.overdue":{"post":{"description":"An invoice passes its due date. The `data` member is the Invoice resource.","operationId":"webhook_invoice_overdue","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Invoice"},"type":{"const":"invoice.overdue"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Invoice overdue","tags":["Webhooks"],"x-dakoty-scope":"invoices:read","x-sk-description":"Keď faktúra prekročí splatnosť.","x-sk-summary":"Faktúra po splatnosti"}},"invoice.paid":{"post":{"description":"An invoice is paid. The `data` member is the Invoice resource.","operationId":"webhook_invoice_paid","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Invoice"},"type":{"const":"invoice.paid"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Invoice paid","tags":["Webhooks"],"x-dakoty-scope":"invoices:read","x-sk-description":"Po uhradení faktúry.","x-sk-summary":"Faktúra zaplatená"}},"lead.archived":{"post":{"description":"A lead is archived. The `data` member is the Lead resource.","operationId":"webhook_lead_archived","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Lead"},"type":{"const":"lead.archived"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Lead archived","tags":["Webhooks"],"x-dakoty-scope":"leads:read","x-sk-description":"Po archivácii leadu.","x-sk-summary":"Lead archivovaný"}},"lead.created":{"post":{"description":"A new lead is created. The `data` member is the Lead resource.","operationId":"webhook_lead_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Lead"},"type":{"const":"lead.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Lead created","tags":["Webhooks"],"x-dakoty-scope":"leads:read","x-sk-description":"Po vytvorení nového leadu.","x-sk-summary":"Lead vytvorený"}},"lead.lost":{"post":{"description":"A lead is moved to the Lost stage. The `data` member is the Lead resource.","operationId":"webhook_lead_lost","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Lead"},"type":{"const":"lead.lost"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Deal lost","tags":["Webhooks"],"x-dakoty-scope":"leads:read","x-sk-description":"Po presune leadu do fázy Prehraný.","x-sk-summary":"Obchod prehraný"}},"lead.stage_changed":{"post":{"description":"A lead moves to another stage. The `data` member is the Lead resource.","operationId":"webhook_lead_stage_changed","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Lead"},"type":{"const":"lead.stage_changed"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Lead stage changed","tags":["Webhooks"],"x-dakoty-scope":"leads:read","x-sk-description":"Po presune leadu do inej fázy.","x-sk-summary":"Lead zmenil fázu"}},"lead.updated":{"post":{"description":"A lead is edited. The `data` member is the Lead resource.","operationId":"webhook_lead_updated","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Lead"},"type":{"const":"lead.updated"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Lead updated","tags":["Webhooks"],"x-dakoty-scope":"leads:read","x-sk-description":"Po úprave leadu.","x-sk-summary":"Lead upravený"}},"lead.won":{"post":{"description":"A lead is moved to the Won stage. The `data` member is the Lead resource.","operationId":"webhook_lead_won","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Lead"},"type":{"const":"lead.won"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Deal won","tags":["Webhooks"],"x-dakoty-scope":"leads:read","x-sk-description":"Po presune leadu do fázy Vyhraný.","x-sk-summary":"Obchod vyhraný"}},"order.cancelled":{"post":{"description":"An order is cancelled. The `data` member is the Order resource.","operationId":"webhook_order_cancelled","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.cancelled"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order cancelled","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Po zrušení objednávky.","x-sk-summary":"Objednávka zrušená"}},"order.confirmed":{"post":{"description":"An order is confirmed. The `data` member is the Order resource.","operationId":"webhook_order_confirmed","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.confirmed"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order confirmed","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Po potvrdení objednávky.","x-sk-summary":"Objednávka potvrdená"}},"order.created":{"post":{"description":"An order is created. The `data` member is the Order resource.","operationId":"webhook_order_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order created","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Po vytvorení objednávky.","x-sk-summary":"Objednávka vytvorená"}},"order.delivered":{"post":{"description":"An order is delivered. The `data` member is the Order resource.","operationId":"webhook_order_delivered","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.delivered"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order delivered","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Po doručení objednávky.","x-sk-summary":"Objednávka doručená"}},"order.packed":{"post":{"description":"An order is packed. The `data` member is the Order resource.","operationId":"webhook_order_packed","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.packed"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order packed","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Po zabalení objednávky.","x-sk-summary":"Objednávka zabalená"}},"order.paid":{"post":{"description":"An order moves to the paid status. The `data` member is the Order resource.","operationId":"webhook_order_paid","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.paid"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order status: paid","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Keď objednávka prejde do stavu Zaplatená.","x-sk-summary":"Objednávka v stave „Zaplatená“"}},"order.payment_failed":{"post":{"description":"An order payment fails. The `data` member is the Order resource.","operationId":"webhook_order_payment_failed","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.payment_failed"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Payment failed","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Keď platba objednávky zlyhá.","x-sk-summary":"Platba zlyhala"}},"order.payment_paid":{"post":{"description":"An order payment is received. The `data` member is the Order resource.","operationId":"webhook_order_payment_paid","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.payment_paid"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Payment received","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Po uhradení platby objednávky.","x-sk-summary":"Platba uhradená"}},"order.payment_pending":{"post":{"description":"An order payment is awaiting payment. The `data` member is the Order resource.","operationId":"webhook_order_payment_pending","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.payment_pending"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Payment pending","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Keď platba objednávky čaká na úhradu.","x-sk-summary":"Platba čaká na úhradu"}},"order.payment_refunded":{"post":{"description":"An order payment is refunded. The `data` member is the Order resource.","operationId":"webhook_order_payment_refunded","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.payment_refunded"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Payment refunded","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Po vrátení platby objednávky.","x-sk-summary":"Platba vrátená"}},"order.picking":{"post":{"description":"An order starts being picked. The `data` member is the Order resource.","operationId":"webhook_order_picking","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.picking"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order being picked","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Keď sa objednávka začne kompletizovať.","x-sk-summary":"Objednávka sa kompletizuje"}},"order.ready_for_pickup":{"post":{"description":"An order is ready for pickup. The `data` member is the Order resource.","operationId":"webhook_order_ready_for_pickup","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.ready_for_pickup"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order ready for pickup","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Keď je objednávka pripravená na vyzdvihnutie.","x-sk-summary":"Objednávka pripravená na vyzdvihnutie"}},"order.returned":{"post":{"description":"An order is returned. The `data` member is the Order resource.","operationId":"webhook_order_returned","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.returned"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order returned","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Keď je objednávka vrátená.","x-sk-summary":"Objednávka vrátená"}},"order.shipped":{"post":{"description":"An order is shipped. The `data` member is the Order resource.","operationId":"webhook_order_shipped","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Order"},"type":{"const":"order.shipped"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Order shipped","tags":["Webhooks"],"x-dakoty-scope":"orders:read","x-sk-description":"Po odoslaní objednávky.","x-sk-summary":"Objednávka odoslaná"}},"product.created":{"post":{"description":"A product is created. The `data` member is the Product resource.","operationId":"webhook_product_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Product"},"type":{"const":"product.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Product created","tags":["Webhooks"],"x-dakoty-scope":"products:read","x-sk-description":"Po vytvorení produktu.","x-sk-summary":"Produkt vytvorený"}},"product.updated":{"post":{"description":"A product is edited. The `data` member is the Product resource.","operationId":"webhook_product_updated","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Product"},"type":{"const":"product.updated"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Product updated","tags":["Webhooks"],"x-dakoty-scope":"products:read","x-sk-description":"Po úprave produktu.","x-sk-summary":"Produkt upravený"}},"quote.accepted":{"post":{"description":"A client accepts a quote through the public link, or staff marks it as accepted in the CRM. The `data` member is the quote resource.","operationId":"webhook_quote_accepted","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"description":"Quote document.","type":"object"},"type":{"const":"quote.accepted"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Quote accepted","tags":["Webhooks"],"x-dakoty-scope":"invoices:read","x-sk-description":"Keď klient prijme cenovú ponuku cez odkaz, alebo ju v CRM označí ako prijatú zamestnanec.","x-sk-summary":"Ponuka prijatá"}},"quote.rejected":{"post":{"description":"A client rejects a quote through the public link, or staff marks it as rejected in the CRM. The `data` member is the quote resource.","operationId":"webhook_quote_rejected","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"description":"Quote document.","type":"object"},"type":{"const":"quote.rejected"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Quote rejected","tags":["Webhooks"],"x-dakoty-scope":"invoices:read","x-sk-description":"Keď klient odmietne cenovú ponuku cez odkaz, alebo ju v CRM označí ako odmietnutú zamestnanec.","x-sk-summary":"Ponuka odmietnutá"}},"task.completed":{"post":{"description":"A task is completed. The `data` member is the Task resource.","operationId":"webhook_task_completed","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Task"},"type":{"const":"task.completed"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Task completed","tags":["Webhooks"],"x-dakoty-scope":"tasks:read","x-sk-description":"Po dokončení úlohy.","x-sk-summary":"Úloha dokončená"}},"task.created":{"post":{"description":"A project task is created. The `data` member is the Task resource.","operationId":"webhook_task_created","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Task"},"type":{"const":"task.created"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Task created","tags":["Webhooks"],"x-dakoty-scope":"tasks:read","x-sk-description":"Po vytvorení projektovej úlohy.","x-sk-summary":"Úloha vytvorená"}},"task.moved":{"post":{"description":"A task is moved to another stage. The `data` member is the Task resource.","operationId":"webhook_task_moved","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Task"},"type":{"const":"task.moved"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Task moved","tags":["Webhooks"],"x-dakoty-scope":"tasks:read","x-sk-description":"Po presune úlohy do inej fázy.","x-sk-summary":"Úloha presunutá"}},"task.overdue":{"post":{"description":"A task passes its due date. The `data` member is the Task resource.","operationId":"webhook_task_overdue","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEnvelope"},{"properties":{"data":{"$ref":"#/components/schemas/Task"},"type":{"const":"task.overdue"}},"type":"object"}]}}},"required":true},"responses":{"2XX":{"description":"Acknowledge with any 2xx within 10 seconds; anything else is retried."},"410":{"description":"Return 410 Gone to unsubscribe permanently."}},"summary":"Task overdue","tags":["Webhooks"],"x-dakoty-scope":"tasks:read","x-sk-description":"Keď úloha prekročí termín.","x-sk-summary":"Úloha po termíne"}}}}