{"openapi":"3.1.0","info":{"title":"Tindica Assistant API","version":"1.0.0"},"servers":[{"url":"https://tindica.com"}],"paths":{"/api/assistant/find":{"post":{"operationId":"find_assistant_action","summary":"Find a Tindica action","description":"Match a task to a first-party photo post, subtitle editor, spreadsheet summary, bill split, or delivery payout check. Returns a link, required input and available output. Send a short task label without private details.","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"goal":{"type":"string","minLength":1,"maxLength":180,"description":"A short task such as “photo post for Instagram” or “summarize a CSV”."},"lang":{"type":"string","enum":["ko","en","zh","hi","es","fr"],"description":"Language of the result and editor. Defaults to English."}},"required":["goal"]}}}},"responses":{"200":{"description":"Successful result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/assistant/photo-copy":{"post":{"operationId":"make_photo_post_copy","summary":"Draft photo text and a post caption","description":"Create three short lines for text on a photo, a separate caption for the post, and a link to the editor. Only a subject and purpose are needed. Returns an unpublished draft. Add the photo and apply text in the browser editor.","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"subject":{"type":"string","minLength":1,"maxLength":48,"description":"An explicit, non-sensitive subject supplied by the user, for example “new lunch menu”."},"intent":{"type":"string","enum":["daily","show","invite"],"description":"Everyday record, introduce work, or invite comments. Defaults to show."},"lang":{"type":"string","enum":["ko","en","zh","hi","es","fr"],"description":"Language of the result and editor. Defaults to English."}},"required":["subject"]}}}},"responses":{"200":{"description":"Successful result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/assistant/split-bill":{"post":{"operationId":"split_bill","summary":"Split a KRW bill exactly","description":"Divide a total in whole Korean won as evenly as possible. Returns up to two groups that sum to the original bill. No transfers or payment collection.","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["total_krw","people"],"properties":{"total_krw":{"type":"string","pattern":"^[0-9]{1,16}$","description":"Whole won as decimal digits, from 0 to 9007199254740991."},"people":{"type":"integer","minimum":1,"maximum":999,"description":"Number of people, all sharing equally."},"version":{"type":"string","enum":["1.0.0"],"description":"Version of the exact integer-split formula."},"lang":{"type":"string","enum":["ko","en","zh","hi","es","fr"],"description":"Language of the result and editor. Defaults to English."}}}}}},"responses":{"200":{"description":"Successful result","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["status","version","currency","total_krw","people","shares","source_url","verification_url","review_url"],"properties":{"status":{"type":"string","enum":["calculated"]},"version":{"type":"string","enum":["1.0.0"]},"currency":{"type":"string","enum":["KRW"]},"total_krw":{"type":"string"},"people":{"type":"integer"},"source_url":{"type":"string","format":"uri"},"verification_url":{"type":"string","format":"uri"},"review_url":{"type":"string","format":"uri","description":"Opens the bill result in the browser. The fragment contains the amount and people. Share only with the intended recipients."},"shares":{"type":"array","minItems":1,"maxItems":2,"items":{"type":"object","additionalProperties":false,"required":["people","amount_krw"],"properties":{"people":{"type":"integer","minimum":1},"amount_krw":{"type":"string","pattern":"^[0-9]+$"}}}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}},"get":{"operationId":"describe_split_bill","summary":"Read bill-split formula, version and test vectors","parameters":[{"in":"query","name":"version","required":false,"schema":{"type":"string","enum":["1.0.0"]}}],"responses":{"200":{"description":"Capability contract","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Unknown formula version","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/assistant/delivery-payout":{"post":{"operationId":"check_delivery_payout","summary":"Reconcile one KRW delivery payout","description":"Use amounts from one delivery order statement, in whole Korean won as decimal strings. Use explicit zeroes for items confirmed absent. Never guess a fee or apply rates. Omit paid_krw if the actual payout for this order is unknown. Do not send account, order, or customer identifiers.","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["order_krw","discount_krw","platform_fee_krw","payment_fee_krw","delivery_fee_krw","adjustment_krw"],"properties":{"order_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Order amount before these deductions."},"discount_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Merchant-funded discount only."},"platform_fee_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Platform fee charged for this order."},"payment_fee_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Separate payment fee. Enter 0 if already included in the platform fee."},"delivery_fee_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Delivery fee charged to the merchant."},"adjustment_krw":{"type":"string","pattern":"^-?[0-9]{1,14}$","description":"Other statement items combined. Credits are positive and charges are negative. Use 0 if there are none."},"paid_krw":{"type":"string","pattern":"^-?[0-9]{1,14}$","description":"Optional actual payout attributed to this single order."},"version":{"type":"string","enum":["1.0.0"]},"lang":{"type":"string","enum":["ko","en","zh","hi","es","fr"],"description":"Language of the result and editor. Defaults to English."}}}}}},"responses":{"200":{"description":"Successful result","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["status","version","currency","inputs","expected_krw","difference_krw","verification_url","review_url"],"properties":{"status":{"type":"string","enum":["expected_only","matches","mismatch"]},"version":{"const":"1.0.0"},"currency":{"const":"KRW"},"inputs":{"type":"object","additionalProperties":false,"required":["order_krw","discount_krw","platform_fee_krw","payment_fee_krw","delivery_fee_krw","adjustment_krw"],"properties":{"order_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Order amount before these deductions."},"discount_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Merchant-funded discount only."},"platform_fee_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Platform fee charged for this order."},"payment_fee_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Separate payment fee. Enter 0 if already included in the platform fee."},"delivery_fee_krw":{"type":"string","pattern":"^[0-9]{1,14}$","description":"Delivery fee charged to the merchant."},"adjustment_krw":{"type":"string","pattern":"^-?[0-9]{1,14}$","description":"Other statement items combined. Credits are positive and charges are negative. Use 0 if there are none."},"paid_krw":{"type":"string","pattern":"^-?[0-9]{1,14}$","description":"Optional actual payout attributed to this single order."}}},"expected_krw":{"type":"string","pattern":"^-?[0-9]+$"},"difference_krw":{"type":["string","null"],"description":"Actual payout minus expected payout. Null if no actual payout was provided."},"verification_url":{"type":"string","format":"uri"},"review_url":{"type":"string","format":"uri","description":"Opens an editable review. Only public labels and the amounts are used. The fragment contains the amounts, so share only with intended recipients."}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}},"get":{"operationId":"describe_delivery_payout","summary":"Read delivery payout formula, version, assumptions and example","parameters":[{"in":"query","name":"version","required":false,"schema":{"type":"string","enum":["1.0.0"]}}],"responses":{"200":{"description":"Capability contract","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Unknown formula version","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/assistant/search":{"post":{"operationId":"search_public_tools","summary":"Search the public Tindica catalogue","description":"Find browser tools or reference documents in Tindica’s published catalogue. Send up to eight short keywords and no private details. Results provide canonical work links and listing descriptions, not executed or verified results.","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["query"],"properties":{"query":{"type":"string","minLength":1,"maxLength":100},"lang":{"type":"string","enum":["ko","en","zh","hi","es","fr"],"description":"Language of the result and editor. Defaults to English."},"kind":{"type":"string","enum":["browser_tool","reference"]},"limit":{"type":"integer","minimum":1,"maximum":8}}}}}},"responses":{"200":{"description":"Successful result","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["status","results","more_results"],"properties":{"status":{"type":"string","enum":["matched","no_match"]},"more_results":{"type":"boolean"},"results":{"type":"array","maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["id","kind","title","description","url","match","title_language"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["browser_tool","reference"]},"title":{"type":"string"},"description":{"type":"string"},"url":{"type":"string","format":"uri"},"match":{"type":"string","enum":["title","description","listed_scope"]},"title_language":{"type":"string","enum":["ko","en","zh","hi","es","fr","und"]}}}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}}}}