{"openapi":"3.1.0","info":{"title":"TaskersPro AI API","version":"1","description":"The same operations as the TaskersPro MCP server. Anything that reaches your customers is proposed and waits for the owner to approve it in their CoachTasker Telegram or the app (202)."},"servers":[{"url":"https://api.taskerpro.ai"}],"paths":{"/v1/leads":{"get":{"operationId":"leads_search","summary":"Search contacts","description":"Search the business's customer contacts (leads), most recently updated first. Filter by pipeline stage, minimum score, creation date or name. Phone numbers and emails are masked; use the contact id with other tools.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"stage","in":"query","required":false,"schema":{"description":"Only contacts in this pipeline stage.","type":"string","enum":["new","contacted","qualified","scheduled","confirmed","proposal","negotiation","won","lost"]}},{"name":"minScore","in":"query","required":false,"schema":{"description":"Minimum lead score (0-100).","type":"integer","minimum":0,"maximum":100}},{"name":"createdFrom","in":"query","required":false,"schema":{"description":"Created on or after this date (YYYY-MM-DD or ISO 8601).","anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},{"name":"createdTo","in":"query","required":false,"schema":{"description":"Created on or before this date.","anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},{"name":"query","in":"query","required":false,"schema":{"description":"Case-insensitive match on the contact name.","type":"string","minLength":1,"maxLength":100}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"leads_create","summary":"Create a contact","description":"Create a customer contact (lead) with a name and, optionally, phone, email, tags and a note. It never messages the contact: automations for new contacts do not run for contacts created here. If a contact with that phone or email already exists, it is returned unchanged (created=false). Retrying the same call is safe.","security":[{"apiKey":[]},{"oauth":["taskerspro:write"]}],"x-required-scope":"taskerspro:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"Full name of the customer.","type":"string","maxLength":240},"phone":{"description":"Phone in international format, e.g. +5215512345678.","type":"string","minLength":6,"maxLength":32},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"tags":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":80}},"note":{"description":"Internal note.","type":"string","minLength":1,"maxLength":2000}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leads/{leadId}":{"get":{"operationId":"leads_get","summary":"Get a contact","description":"One customer contact's profile by id: stage, score, source, tags, dates and which contact details exist (masked). Returns found=false if the id does not exist or is not a customer.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"leadId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"leads_update","summary":"Update a contact","description":"Rename a customer contact and/or add or remove tags. Phone, email and pipeline stage can't be changed here.","security":[{"apiKey":[]},{"oauth":["taskerspro:write"]}],"x-required-scope":"taskerspro:write","parameters":[{"name":"leadId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":240},"addTags":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":80}},"removeTags":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":80}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leads/{leadId}/activity":{"get":{"operationId":"leads_activity","summary":"Contact timeline","description":"One customer contact's timeline, newest first: what happened, when and who did it (stage changes, bookings, follow-ups, escalations, automations, notes from the team or from connected assistants). Use it for questions like \"what did we agree with Beto?\". Different from leads_events (signals detected in conversations). Note texts and text that comes from a conversation are included only with the conversations permission and never for WhatsApp.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"leadId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leads/{leadId}/notes":{"post":{"operationId":"leads_add_note","summary":"Add a note to a contact","description":"Add an internal note to a customer contact's timeline (visible to the business, never to the customer). Retrying the same note within 10 minutes does not duplicate it.","security":[{"apiKey":[]},{"oauth":["taskerspro:write"]}],"x-required-scope":"taskerspro:write","parameters":[{"name":"leadId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2000}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leads/{leadId}/reveal":{"post":{"operationId":"contacts_reveal","summary":"Reveal a phone or email","description":"Get the full phone number or email of ONE customer contact. Each reveal is logged for the business. Use only when needed for the task.","security":[{"apiKey":[]},{"oauth":["taskerspro:contact-details"]}],"x-required-scope":"taskerspro:contact-details","parameters":[{"name":"leadId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"field":{"type":"string","enum":["phone","email"]}},"required":["field"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/leads/{leadId}/stage":{"post":{"operationId":"leads_set_stage","summary":"Change a contact’s stage","description":"Move a customer contact to another pipeline stage. Stage automations may then message the customer, so it runs right away only if the contact has written to the business themselves; otherwise the owner must approve it. Scheduled/confirmed come from bookings.","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","parameters":[{"name":"leadId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"type":"string","enum":["new","contacted","qualified","proposal","negotiation","won","lost"]}},"required":["stage"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events":{"get":{"operationId":"leads_events","summary":"Contact events","description":"Discrete events detected in customer conversations (price inquiry, booking request, complaint…), newest first. Filter by event type and/or contact, and by date. The context derived from the customer's words is included only with the conversations permission, and never for events that came from WhatsApp. Useful for questions like \"how many quote requests did I get this week?\".","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"type","in":"query","required":false,"schema":{"description":"Event type, e.g. price_inquiry or booking_request.","type":"string","minLength":1,"maxLength":64}},{"name":"leadId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/conversations":{"get":{"operationId":"conversations_search","summary":"Search conversations","description":"Recent conversations between the business's AI agents (or team) and its CUSTOMERS, newest first: channel, status, dates and message count (plus the last message preview only with the conversations permission; never for WhatsApp, whose text is not shared). Filter by contact, channel or date. Use conversations_get with a sessionId to read the messages.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"leadId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","enum":["whatsapp","web","widget","telegram","voice","email","messenger","instagram"]}},{"name":"from","in":"query","required":false,"schema":{"description":"Last activity on or after this date.","anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},{"name":"to","in":"query","required":false,"schema":{"description":"Last activity on or before this date.","anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/conversations/{sessionId}":{"get":{"operationId":"conversations_get","summary":"Read a conversation","description":"The most recent messages of one customer conversation, in chronological order. Role 'user' is the customer; 'assistant' is the business's AI agent; 'agent' is a human from the team. Internal team notes are never included. WhatsApp conversations return no messages: their text is not shared with connected assistants.","security":[{"apiKey":[]},{"oauth":["taskerspro:conversations"]}],"x-required-scope":"taskerspro:conversations","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"description":"Conversation id from conversations_search.","x-taskerspro-id":"session"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/messages":{"post":{"operationId":"messages_send","summary":"Send a message to a contact","description":"Propose a text message to ONE customer contact, on the channel they use with the business (WhatsApp, Telegram, Messenger or Instagram). The business owner must approve it before it is sent (where they are: in this assistant if it asks for confirmations, or in their CoachTasker Telegram or the TaskersPro app); returns status pending_approval. On WhatsApp, free text only works within 24 hours of the customer’s last message; otherwise use messages_send_template.","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"},"text":{"type":"string","minLength":1,"maxLength":1000}},"required":["leadId","text"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/messages/template":{"post":{"operationId":"messages_send_template","summary":"Send a WhatsApp template to a contact","description":"Propose an approved WhatsApp template (from whatsapp_templates_list) to ONE contact, with all its variables in order. It is the only way to reach a WhatsApp contact who has not written in 24 hours. The business owner must approve it (in this assistant if it asks for confirmations, or in their CoachTasker Telegram or the TaskersPro app).","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"},"templateKey":{"type":"string","minLength":1,"maxLength":512,"description":"templateKey from whatsapp_templates_list.","x-taskerspro-id":"template"},"variables":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["leadId","templateKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/whatsapp-templates":{"get":{"operationId":"whatsapp_templates_list","summary":"List WhatsApp templates for a contact","description":"The approved WhatsApp templates that can be sent to this contact (from the number they talk to). `body` uses {{1}}, {{2}}… for the variables, described in `variables`.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"leadId","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bookings":{"get":{"operationId":"bookings_search","summary":"Search bookings","description":"Bookings (appointments) of the business in a date range (default: today and the next 30 days; at most 62 days), optionally of one contact or status.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},{"name":"leadId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","confirmed","completed","cancelled","no_show"]}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"bookings_create","summary":"Book an appointment","description":"Book an appointment for a contact at a free slot (from bookings_availability). TaskersPro sends the confirmation to the customer. It runs right away only if the contact has written to the business themselves; otherwise the owner must approve it (status pending_approval).","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"type":"string","minLength":1,"maxLength":256,"description":"Contact id from leads_search.","x-taskerspro-id":"lead"},"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Start time, ISO 8601 with offset (as returned by bookings_availability)."},"service":{"type":"string","minLength":1,"maxLength":100},"professionalId":{"type":"string","minLength":1,"maxLength":100}},"required":["leadId","start"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bookings/availability":{"get":{"operationId":"bookings_availability","summary":"Find free booking slots","description":"Free slots for a service on a day (YYYY-MM-DD; default: the next days with room). Use a returned `start` as-is with bookings_create or bookings_reschedule.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"service","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"professionalId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bookings/{bookingId}/reschedule":{"post":{"operationId":"bookings_reschedule","summary":"Move a booking","description":"Propose moving an active booking to another free slot (from bookings_availability). The owner must approve it; TaskersPro then sends the new time to the customer.","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_.:-]+$","description":"Booking id from bookings_search."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Start time, ISO 8601 with offset (as returned by bookings_availability)."}},"required":["start"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bookings/{bookingId}/cancel":{"post":{"operationId":"bookings_cancel","summary":"Cancel a booking","description":"Propose cancelling an active booking. The owner must approve it. TaskersPro does NOT tell the customer: propose a message separately if they should know.","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_.:-]+$","description":"Booking id from bookings_search."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":300}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/content":{"get":{"operationId":"content_search","summary":"List content pieces","description":"The most recent ContentTasker pieces (drafts, scheduled, published…).","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","pending_approval","approved","scheduled","published","failed"]}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/content/drafts":{"post":{"operationId":"content_create_draft","summary":"Create a content draft","description":"Save a content piece as a DRAFT in ContentTasker for the business to review. It is never published or scheduled from here.","security":[{"apiKey":[]},{"oauth":["taskerspro:write"]}],"x-required-scope":"taskerspro:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["instagram","facebook","linkedin","twitter","tiktok","email","blog"]},"type":{"default":"social_post","type":"string","enum":["social_post","email_nurturing","email_campaign","product_description","blog_post","ad_copy","landing_copy"]},"text":{"type":"string","minLength":1,"maxLength":5000},"hashtags":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":60}},"cta":{"type":"string","maxLength":200}},"required":["channel","text"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/content/{contentId}/publish":{"post":{"operationId":"content_publish","summary":"Publish a content piece","description":"Propose publishing one ContentTasker piece now on its channel. The owner must approve it; it counts toward the monthly publishing quota. If the piece is edited after it was proposed, it is not published.","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","parameters":[{"name":"contentId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_.:-]+$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/business":{"get":{"operationId":"business_context_get","summary":"Business memory","description":"The business's memory as the owner maintains it: what it sells (services, prices, durations), opening hours, location, FAQ, brand voice, policies and goals. This is what the business's own AI agents use to talk to customers. Read it before answering questions about the business. Phone numbers and emails inside it are hidden unless the owner granted the contact-details permission.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"business_context_update","summary":"Update the business memory","description":"Propose changes to the business memory that TaskersPro agents use with customers: replace some text fields, add FAQ entries, add or change services (with price, duration and in person/video) and add or change pricing plans. Nothing is deleted. The owner must approve it.","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"set":{"type":"object","properties":{"businessName":{"type":"string","minLength":1,"maxLength":2000},"businessIdea":{"type":"string","minLength":1,"maxLength":2000},"problemStatement":{"type":"string","minLength":1,"maxLength":2000},"industryName":{"type":"string","minLength":1,"maxLength":2000},"valueProposition":{"type":"string","minLength":1,"maxLength":2000},"visionStatement":{"type":"string","minLength":1,"maxLength":2000}},"additionalProperties":false},"faqAdd":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":300},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"],"additionalProperties":false}},"servicesUpsert":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"serviceId":{"description":"Id of an existing service (memory.services[].id) to change it; omit to add one.","type":"string","minLength":1,"maxLength":100},"currentName":{"description":"To change an existing service that has NO id: its current name. Omit serviceId and currentName to add a new service.","type":"string","minLength":1,"maxLength":120},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":1000},"pricingType":{"type":"string","enum":["fixed","quote","hourly"]},"price":{"type":"number","minimum":0,"maximum":1000000000},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"durationMinutes":{"type":"integer","minimum":5,"maximum":480},"modality":{"description":"Required for a new service: in person or by video call.","type":"string","enum":["in_person","video"]},"bookable":{"description":"Whether customers can book it online.","type":"boolean"}},"required":["name"],"additionalProperties":false}},"pricingTiersUpsert":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"price":{"anyOf":[{"type":"number","minimum":0,"maximum":1000000000},{"type":"null"}]},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"billingCycle":{"type":"string","enum":["monthly","annual","one_time"]},"features":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["name"],"additionalProperties":false}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"202":{"description":"Proposed: waiting for the owner to approve it (CoachTasker Telegram or the app)"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/usage":{"get":{"operationId":"connection_usage_get","summary":"Assistant usage","description":"How many tool calls this business's connected assistants have made this month and the plan's monthly limit (-1 = unlimited). Use it if a call was rejected for quota.","security":[{"apiKey":[]},{"oauth":["taskerspro:read"]}],"x-required-scope":"taskerspro:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/actions/{actionId}":{"get":{"operationId":"actions_get","summary":"Check a proposed action","description":"The current status of an action this assistant proposed (pending_approval, executed, failed, denied, expired, cancelled) and its result.","security":[{"apiKey":[]},{"oauth":["taskerspro:act"]}],"x-required-scope":"taskerspro:act","parameters":[{"name":"actionId","in":"path","required":true,"schema":{"type":"string","pattern":"^xa_[0-9a-f]{40}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing permission, plan or availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit or monthly quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key (tpk_…) created in Settings → Connected assistants."},"oauth":{"type":"oauth2","description":"Authorization code + PKCE (S256), resource https://api.taskerpro.ai/v1.","flows":{"authorizationCode":{"authorizationUrl":"https://api.taskerpro.ai/oauth/authorize","tokenUrl":"https://api.taskerpro.ai/oauth/token","scopes":{"taskerspro:read":"taskerspro:read","taskerspro:conversations":"taskerspro:conversations","taskerspro:write":"taskerspro:write","taskerspro:act":"taskerspro:act","taskerspro:contact-details":"taskerspro:contact-details"}}}}}}}