{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/api/orgs/{org_id}/kit/oauth/link":{"get":{"summary":"Get Kit Oauth Link","operationId":"get_kit_oauth_link_api_orgs__org_id__kit_oauth_link_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/orgs/{org_id}/linear/oauth/link":{"get":{"summary":"Get Linear Oauth Link","operationId":"get_linear_oauth_link_api_orgs__org_id__linear_oauth_link_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/orgs/{org_id}/slack/oauth/link":{"get":{"summary":"Get Slack Oauth Link","operationId":"get_slack_oauth_link_api_orgs__org_id__slack_oauth_link_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-agents/{slug}/handoff-policies":{"get":{"summary":"Get Support Agent","operationId":"get_support_agent_api_support_agents__slug__handoff_policies_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Handoff Policy","operationId":"create_handoff_policy_api_support_agents__slug__handoff_policies_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoffPolicyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-agents/{slug}/connection/teams":{"get":{"summary":"Get Support Agent Connection Teams","operationId":"get_support_agent_connection_teams_api_support_agents__slug__connection_teams_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-agents/{slug}/handoff-policies/{id}":{"put":{"summary":"Update Handoff Policy","operationId":"update_handoff_policy_api_support_agents__slug__handoff_policies__id__put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoffPolicyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Handoff Policy","operationId":"delete_handoff_policy_api_support_agents__slug__handoff_policies__id__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Read Root","operationId":"read_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/support-agent-porter/custom-tool-requests/resume":{"post":{"summary":"Resume Custom Tool Request","operationId":"resume_custom_tool_request_support_agent_porter_custom_tool_requests_resume_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportAgentPorterResumeCustomToolRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportAgentPorterResumeCustomToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support-agent-porter/custom-tool-requests/check-assigned":{"post":{"summary":"Check Custom Tool Request Assignment","operationId":"check_custom_tool_request_assignment_support_agent_porter_custom_tool_requests_check_assigned_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportAgentPorterCheckTicketAssignmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportAgentPorterCheckTicketAssignmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support-agent-porter/internal-notes":{"post":{"summary":"Post Support Agent Internal Note","operationId":"post_support_agent_internal_note_support_agent_porter_internal_notes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportAgentPorterPostInternalNoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportAgentPorterPostInternalNoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support-agent-porter/personalized-follow-up":{"post":{"summary":"Support Agent Personalized Follow Up","operationId":"support_agent_personalized_follow_up_support_agent_porter_personalized_follow_up_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportAgentPorterPersonalizedFollowUpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportAgentPorterPersonalizedFollowUpResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ngrok/intercom/events":{"post":{"summary":"Handle Intercom Event","operationId":"handle_intercom_event_ngrok_intercom_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/intercom/events":{"post":{"summary":"Handle Intercom Event","operationId":"handle_intercom_event_intercom_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/intercom/event":{"post":{"summary":"Handle Intercom Event","operationId":"handle_intercom_event_intercom_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/intercom/events":{"post":{"summary":"Handle Intercom Event V3","operationId":"handle_intercom_event_v3_v3_intercom_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/intercom/event":{"post":{"summary":"Handle Intercom Event V3","operationId":"handle_intercom_event_v3_v3_intercom_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/zendesk/events":{"post":{"summary":"Handle Zendesk Event","operationId":"handle_zendesk_event_zendesk_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/zendesk/event":{"post":{"summary":"Handle Zendesk Event","operationId":"handle_zendesk_event_zendesk_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/zendesk/events":{"post":{"summary":"Handle Zendesk Event V3","operationId":"handle_zendesk_event_v3_v3_zendesk_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/zendesk/event":{"post":{"summary":"Handle Zendesk Event V3","operationId":"handle_zendesk_event_v3_v3_zendesk_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/zendesk/conversations/events":{"post":{"summary":"Handle Zendesk Conversations Events","description":"DEPRECATED: Zendesk Sunshine Conversations webhook handler.\n\nThe Zendesk Sunshine support agent and its hatchet tasks have been removed.\nThis endpoint now returns a deprecation notice.","operationId":"handle_zendesk_conversations_events_zendesk_conversations_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/front/events":{"post":{"summary":"Handle Front Event","operationId":"handle_front_event_front_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/front/event":{"post":{"summary":"Handle Front Event","operationId":"handle_front_event_front_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/front/events":{"post":{"summary":"Handle Front Event V3","operationId":"handle_front_event_v3_v3_front_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/front/event":{"post":{"summary":"Handle Front Event V3","operationId":"handle_front_event_v3_v3_front_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plain/events":{"post":{"summary":"Handle Plain Event","operationId":"handle_plain_event_plain_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plain/event":{"post":{"summary":"Handle Plain Event","operationId":"handle_plain_event_plain_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/plain/events":{"post":{"summary":"Handle Plain Event V3","operationId":"handle_plain_event_v3_v3_plain_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/plain/event":{"post":{"summary":"Handle Plain Event V3","operationId":"handle_plain_event_v3_v3_plain_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/pylon/events":{"post":{"summary":"Handle Pylon Event V3","operationId":"handle_pylon_event_v3_v3_pylon_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/pylon/event":{"post":{"summary":"Handle Pylon Event V3","operationId":"handle_pylon_event_v3_v3_pylon_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/slack/oauth/callback":{"get":{"summary":"Handle Slack Oauth Callback","operationId":"handle_slack_oauth_callback_slack_oauth_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/interactions":{"post":{"summary":"Handle Slack Interactions","operationId":"handle_slack_interactions_slack_interactions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manager-follow-up":{"post":{"summary":"Manager Follow Up","description":"Endpoint to trigger follow-up actions on a list of tickets.\nCalled from the frontend after user approves a follow-up action.","operationId":"manager_follow_up_manager_follow_up_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerFollowUpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manager-follow-up-v3":{"post":{"summary":"Manager Follow Up V3","description":"Endpoint to trigger follow-up actions on a list of tickets. For the new manager agent sessions.\nCalled from the frontend after user approves a follow-up action.","operationId":"manager_follow_up_v3_manager_follow_up_v3_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerFollowUpRequestV3"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linear/oauth/callback":{"get":{"summary":"Handle Linear Oauth Callback","operationId":"handle_linear_oauth_callback_linear_oauth_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kit/oauth/callback":{"get":{"summary":"Handle Kit Oauth Callback","operationId":"handle_kit_oauth_callback_kit_oauth_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/linear/events":{"post":{"summary":"Handle Linear Event","description":"DEPRECATED: Linear webhook handler.\n\nThe Linear event hatchet task has been removed.\nThis endpoint now returns a deprecation notice.","operationId":"handle_linear_event_linear_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/linear/event":{"post":{"summary":"Handle Linear Event","description":"DEPRECATED: Linear webhook handler.\n\nThe Linear event hatchet task has been removed.\nThis endpoint now returns a deprecation notice.","operationId":"handle_linear_event_linear_event_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/new-comment":{"post":{"summary":"New Comment","operationId":"new_comment_new_comment_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/shop-like-a-pro-slack":{"post":{"summary":"Shop Like A Pro Slack","operationId":"shop_like_a_pro_slack_shop_like_a_pro_slack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/new-slack-mention":{"post":{"summary":"New Slack Mention","operationId":"new_slack_mention_new_slack_mention_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/connect-slack":{"post":{"summary":"Connect Slack","operationId":"connect_slack_connect_slack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/metrics":{"get":{"summary":"Metrics","operationId":"metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandoffPolicyCreate":{"properties":{"team_id":{"type":"string","title":"Team Id"},"policy":{"type":"string","title":"Policy"}},"type":"object","required":["team_id","policy"],"title":"HandoffPolicyCreate"},"ManagerFollowUpRequest":{"properties":{"file_name":{"type":"string","title":"File Name"},"manager_session_id":{"type":"string","title":"Manager Session Id"},"notes_to_support_agent":{"type":"string","title":"Notes To Support Agent"}},"type":"object","required":["file_name","manager_session_id","notes_to_support_agent"],"title":"ManagerFollowUpRequest"},"ManagerFollowUpRequestV3":{"properties":{"file_name":{"type":"string","title":"File Name"},"manager_agent_session_id":{"type":"string","title":"Manager Agent Session Id"},"notes_to_support_agent":{"type":"string","title":"Notes To Support Agent"}},"type":"object","required":["file_name","manager_agent_session_id","notes_to_support_agent"],"title":"ManagerFollowUpRequestV3"},"SupportAgentPorterCheckTicketAssignmentRequest":{"properties":{"support_agent_id":{"type":"integer","title":"Support Agent Id"},"ticket_id":{"type":"string","title":"Ticket Id"}},"additionalProperties":false,"type":"object","required":["support_agent_id","ticket_id"],"title":"SupportAgentPorterCheckTicketAssignmentRequest"},"SupportAgentPorterCheckTicketAssignmentResponse":{"properties":{"is_assigned_to_current_agent":{"type":"boolean","title":"Is Assigned To Current Agent"}},"additionalProperties":false,"type":"object","required":["is_assigned_to_current_agent"],"title":"SupportAgentPorterCheckTicketAssignmentResponse"},"SupportAgentPorterPersonalizedFollowUpRequest":{"properties":{"support_agent_id":{"type":"integer","title":"Support Agent Id"},"ticket_id":{"type":"string","title":"Ticket Id"},"manager_agent_session_id":{"type":"string","title":"Manager Agent Session Id"},"follow_up_instructions":{"type":"string","title":"Follow Up Instructions"}},"additionalProperties":false,"type":"object","required":["support_agent_id","ticket_id","manager_agent_session_id","follow_up_instructions"],"title":"SupportAgentPorterPersonalizedFollowUpRequest"},"SupportAgentPorterPersonalizedFollowUpResponse":{"properties":{"status":{"$ref":"#/components/schemas/SupportAgentPorterPersonalizedFollowUpResponseStatus"}},"additionalProperties":false,"type":"object","required":["status"],"title":"SupportAgentPorterPersonalizedFollowUpResponse"},"SupportAgentPorterPersonalizedFollowUpResponseStatus":{"type":"string","enum":["started"],"const":"started","title":"SupportAgentPorterPersonalizedFollowUpResponseStatus"},"SupportAgentPorterPostInternalNoteRequest":{"properties":{"support_agent_id":{"type":"integer","title":"Support Agent Id"},"ticket_id":{"type":"string","title":"Ticket Id"},"internal_note":{"type":"string","title":"Internal Note"}},"additionalProperties":false,"type":"object","required":["support_agent_id","ticket_id","internal_note"],"title":"SupportAgentPorterPostInternalNoteRequest"},"SupportAgentPorterPostInternalNoteResponse":{"properties":{"status":{"$ref":"#/components/schemas/SupportAgentPorterPostInternalNoteResponseStatus"}},"additionalProperties":false,"type":"object","required":["status"],"title":"SupportAgentPorterPostInternalNoteResponse"},"SupportAgentPorterPostInternalNoteResponseStatus":{"type":"string","enum":["posted"],"const":"posted","title":"SupportAgentPorterPostInternalNoteResponseStatus"},"SupportAgentPorterResumeCustomToolRequest":{"properties":{"support_agent_id":{"type":"integer","title":"Support Agent Id"},"ticket_id":{"type":"string","title":"Ticket Id"},"internal_note":{"type":"string","title":"Internal Note"}},"additionalProperties":false,"type":"object","required":["support_agent_id","ticket_id","internal_note"],"title":"SupportAgentPorterResumeCustomToolRequest"},"SupportAgentPorterResumeCustomToolResponse":{"properties":{"status":{"$ref":"#/components/schemas/SupportAgentPorterResumeCustomToolResponseStatus"}},"additionalProperties":false,"type":"object","required":["status"],"title":"SupportAgentPorterResumeCustomToolResponse"},"SupportAgentPorterResumeCustomToolResponseStatus":{"type":"string","enum":["started","not_started_no_longer_assigned"],"title":"SupportAgentPorterResumeCustomToolResponseStatus"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}