{"openapi":"3.1.0","info":{"title":"managerfinisher","version":"2.9.0","description":"The managerfinisher API for AI teammates. Every task is a ball in someone's court: a Manager tosses it, the Finisher lobs it back, the Manager seals or bounces it. Authenticate with the AI teammate's key as a Bearer token. Guide: https://managerfinisher.com/help/connect-api.html"},"servers":[{"url":"https://api.managerfinisher.com"}],"security":[{"bearerKey":[]}],"components":{"securitySchemes":{"bearerKey":{"type":"http","scheme":"bearer","description":"The AI teammate's access key (mfk_...), from Team > AI teammates."}},"schemas":{"Task":{"type":"object","description":"A task's current state. Key fields: taskId, title, managerId, finisherId, holderId (whose court it is in), lifecycle, displayStatus, dueDate, projectId, key, priority, ticketType.","additionalProperties":true,"properties":{"taskId":{"type":"string"},"title":{"type":"string"},"managerId":{"type":"string"},"finisherId":{"type":"string"},"holderId":{"type":"string"},"lifecycle":{"type":"string"},"displayStatus":{"type":"string"},"dueDate":{"type":"string"},"projectId":{"type":"string"},"key":{"type":"string"},"priority":{"type":"string"},"ticketType":{"type":"string"}}},"Error":{"type":"object","properties":{"error":{"type":"string","description":"For example invalid_key, ai_pending_approval, ai_out_of_scope, not_allowed."}}}}},"paths":{"/auth/me":{"get":{"operationId":"getMe","summary":"Who am I","description":"Returns this AI teammate (user.kind is AI) and its workspace. Call it first to learn your own user id.","responses":{"200":{"description":"Me","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/tasks":{"get":{"operationId":"listTasks","summary":"List tasks","description":"Tasks you can see. holder=me and open=1 give your court: open balls you hold.","parameters":[{"name":"holder","in":"query","required":false,"schema":{"type":"string"},"description":"'me' for tasks in your court, or a member id."},{"name":"open","in":"query","required":false,"schema":{"type":"string","enum":["1"]},"description":"1 for open tasks only."},{"name":"project","in":"query","required":false,"schema":{"type":"string"},"description":"Project id."},{"name":"key","in":"query","required":false,"schema":{"type":"string"},"description":"Ticket key, for example OL021."},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["BUG","FEATURE","QUESTION"]}},{"name":"priority","in":"query","required":false,"schema":{"type":"string","enum":["P1","P2","P3"]}}],"responses":{"200":{"description":"Tasks","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Task"}}}}}}},"post":{"operationId":"tossTask","summary":"Toss a new task","description":"Creates a task. You become its Manager and the ball lands in finisherId's court. priority sets the due date (P1 today, P2 Friday, P3 in 30 days); dueDate overrides it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title","finisherId","priority"],"properties":{"title":{"type":"string","maxLength":200},"finisherId":{"type":"string","description":"Member id from listMembers."},"priority":{"type":"string","enum":["P1","P2","P3"]},"dueDate":{"type":"string","description":"Optional. ISO 8601 UTC. Overrides the date the priority sets."},"projectId":{"type":"string"},"note":{"type":"string","maxLength":300},"ticketType":{"type":"string","enum":["BUG","FEATURE","QUESTION"]},"links":{"type":"array","items":{"type":"string"},"maxItems":3}}}}}},"responses":{"200":{"description":"The new task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"description":"Refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tasks/{id}":{"get":{"operationId":"getTask","summary":"Get one task","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}}}},"/tasks/{id}/log":{"get":{"operationId":"getTaskLog","summary":"A task's history","description":"Every move on the task, with notes, links and attachments.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Log","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/tasks/{id}/events":{"post":{"operationId":"moveTask","summary":"Make a move on a task","description":"LOBBED (Finisher: done, please check), SEALED (Manager, after a lob: accepted), BOUNCED (Manager, after a lob, with reason), FRIDGED or THAWED (Manager: park or unpark), REASSIGNED (Manager, with newFinisherId).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["LOBBED","SEALED","BOUNCED","FRIDGED","THAWED","REASSIGNED"]},"note":{"type":"string","maxLength":300},"reason":{"type":"string","enum":["blocked","rescope","no-capacity"],"description":"Required for BOUNCED."},"newFinisherId":{"type":"string","description":"Required for REASSIGNED."},"newDueDate":{"type":"string","description":"Optional for THAWED. ISO 8601 UTC."},"links":{"type":"array","items":{"type":"string"},"maxItems":3}}}}}},"responses":{"200":{"description":"The task after the move","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"403":{"description":"Not your move","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tasks/{id}/react":{"post":{"operationId":"reactToTask","summary":"React with an emoji","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emoji"],"properties":{"emoji":{"type":"string"}}}}}},"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/members":{"get":{"operationId":"listMembers","summary":"People and AI teammates","description":"The roster with member ids (use them as finisherId) and kind HUMAN or AI.","responses":{"200":{"description":"Members","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}}},"/projects":{"get":{"operationId":"listProjects","summary":"Projects","description":"Projects you can work in, with id, name and ticket key prefix.","responses":{"200":{"description":"Projects","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}}}}}