{
  "components": {
    "parameters": {
      "IdempotencyKey": {
        "description": "UUID4 identifying one intended write. Reuse it only when retrying that same write.",
        "in": "header",
        "name": "Idempotency-Key",
        "required": true,
        "schema": {
          "format": "uuid",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$",
          "type": "string"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicApiErrorEnvelope"
            }
          }
        },
        "description": "The request is invalid."
      },
      "Conflict": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicApiErrorEnvelope"
            }
          }
        },
        "description": "The write conflicts with current state or an identical request is still running."
      },
      "Forbidden": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicApiErrorEnvelope"
            }
          }
        },
        "description": "The authenticated identity lacks the required scope or capability."
      },
      "NotFound": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicApiErrorEnvelope"
            }
          }
        },
        "description": "The resource is unavailable or not visible to this organization."
      },
      "TooManyRequests": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicApiErrorEnvelope"
            }
          }
        },
        "description": "The request-rate budget is exhausted."
      },
      "Unauthorized": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicApiErrorEnvelope"
            }
          }
        },
        "description": "Authentication is missing, invalid, or revoked."
      },
      "UnprocessableEntity": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicApiErrorEnvelope"
            }
          }
        },
        "description": "The write contains fields outside its closed input schema."
      }
    },
    "schemas": {
      "AutomationDefinition": {
        "additionalProperties": false,
        "description": "Canonical automation graph. Read the workspace capabilities endpoint for the enabled node types, fields and limits.",
        "properties": {
          "channel": {
            "nullable": true,
            "type": "string"
          },
          "entry": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "nullable": true,
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "layout": {
            "type": "object"
          },
          "name": {
            "type": "string"
          },
          "nodes": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "public_replies": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "schema_version": {
            "type": "integer"
          },
          "settings": {
            "type": "object"
          },
          "triggers": {
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "triggers",
          "nodes"
        ],
        "type": "object"
      },
      "Input_ablefy_connection_create": {
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "maxLength": 512,
            "type": "string"
          },
          "api_secret": {
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "api_key",
          "api_secret"
        ],
        "type": "object"
      },
      "Input_automation_graph_create": {
        "additionalProperties": false,
        "properties": {
          "document": {
            "$ref": "#/components/schemas/AutomationDefinition"
          }
        },
        "required": [
          "document"
        ],
        "type": "object"
      },
      "Input_automation_graph_edit": {
        "additionalProperties": false,
        "properties": {
          "document": {
            "$ref": "#/components/schemas/AutomationDefinition"
          },
          "etag": {
            "maxLength": 64,
            "type": "string"
          },
          "revision": {
            "type": "integer"
          }
        },
        "required": [
          "document",
          "revision",
          "etag"
        ],
        "type": "object"
      },
      "Input_automation_graph_validate": {
        "additionalProperties": false,
        "properties": {
          "automation_id": {
            "type": "integer"
          },
          "document": {
            "$ref": "#/components/schemas/AutomationDefinition"
          }
        },
        "required": [
          "document"
        ],
        "type": "object"
      },
      "Input_connection_create": {
        "additionalProperties": false,
        "properties": {
          "provider": {
            "enum": [
              "calendly"
            ],
            "type": "string"
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "Input_content_create": {
        "additionalProperties": false,
        "properties": {
          "file_id": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "item_type": {
            "enum": [
              "TEMPLATE",
              "MEDIA",
              "LINK",
              "PROMPT"
            ],
            "type": "string"
          },
          "prompt_body": {
            "maxLength": 4000,
            "type": "string"
          },
          "steps": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "file_id": {
                  "format": "uuid",
                  "nullable": true,
                  "type": "string"
                },
                "referenced_content_item_id": {
                  "format": "uuid",
                  "nullable": true,
                  "type": "string"
                },
                "step_type": {
                  "enum": [
                    "TEXT",
                    "IMAGE",
                    "VIDEO",
                    "VOICE",
                    "FILE"
                  ],
                  "type": "string"
                },
                "text": {
                  "maxLength": 50000,
                  "type": "string"
                },
                "text_variants": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "required": [
                "step_type"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "nullable": true,
            "type": "array"
          },
          "title": {
            "maxLength": 255,
            "type": "string"
          },
          "url": {
            "format": "uri",
            "maxLength": 2048,
            "nullable": true,
            "pattern": "^(?:[a-z0-9.+-]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)(?:\\.(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)){3}|\\[[0-9a-f:.]+\\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::[0-9]{1,5})?(?:[/?#][^\\s]*)?\\z",
            "type": "string"
          }
        },
        "required": [
          "title",
          "item_type"
        ],
        "type": "object"
      },
      "Input_content_update": {
        "additionalProperties": false,
        "properties": {
          "prompt_body": {
            "maxLength": 4000,
            "type": "string"
          },
          "sort_order": {
            "type": "integer"
          },
          "steps": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "file_id": {
                  "format": "uuid",
                  "nullable": true,
                  "type": "string"
                },
                "referenced_content_item_id": {
                  "format": "uuid",
                  "nullable": true,
                  "type": "string"
                },
                "step_type": {
                  "enum": [
                    "TEXT",
                    "IMAGE",
                    "VIDEO",
                    "VOICE",
                    "FILE"
                  ],
                  "type": "string"
                },
                "text": {
                  "maxLength": 50000,
                  "type": "string"
                },
                "text_variants": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "required": [
                "step_type"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "nullable": true,
            "type": "array"
          },
          "title": {
            "maxLength": 255,
            "type": "string"
          },
          "url": {
            "format": "uri",
            "maxLength": 2048,
            "nullable": true,
            "pattern": "^(?:[a-z0-9.+-]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)(?:\\.(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)){3}|\\[[0-9a-f:.]+\\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::[0-9]{1,5})?(?:[/?#][^\\s]*)?\\z",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Input_elevenlabs_connection_create": {
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "api_key"
        ],
        "type": "object"
      },
      "Input_fanbasis_connection_create": {
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "api_key"
        ],
        "type": "object"
      },
      "Input_flow_create": {
        "additionalProperties": false,
        "properties": {
          "channel": {
            "enum": [
              "INSTAGRAM",
              "WHATSAPP",
              "MESSENGER"
            ],
            "type": "string"
          },
          "is_active": {
            "type": "boolean"
          },
          "name": {
            "maxLength": 255,
            "type": "string"
          },
          "steps": {
            "description": "A bounded DAG: maximum depth 3 and at most 10 send steps. Step ids and targets form the graph.",
            "items": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "oneOf": [
                    {
                      "not": {
                        "required": [
                          "file_id"
                        ]
                      },
                      "required": [
                        "text"
                      ]
                    },
                    {
                      "not": {
                        "required": [
                          "text"
                        ]
                      },
                      "required": [
                        "file_id"
                      ]
                    }
                  ],
                  "properties": {
                    "file_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "id": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "next": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "text": {
                      "maxLength": 1000,
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "enum": [
                        "send"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "next"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "oneOf": [
                    {
                      "properties": {
                        "wait_for": {
                          "enum": [
                            "duration"
                          ]
                        }
                      },
                      "required": [
                        "seconds"
                      ]
                    },
                    {
                      "not": {
                        "required": [
                          "seconds"
                        ]
                      },
                      "properties": {
                        "wait_for": {
                          "enum": [
                            "lead_reply"
                          ]
                        }
                      }
                    },
                    {
                      "not": {
                        "required": [
                          "seconds"
                        ]
                      },
                      "properties": {
                        "wait_for": {
                          "enum": [
                            "window_reopen"
                          ]
                        }
                      }
                    }
                  ],
                  "properties": {
                    "id": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "next": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "seconds": {
                      "maximum": 604800,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "type": {
                      "enum": [
                        "wait"
                      ],
                      "type": "string"
                    },
                    "wait_for": {
                      "enum": [
                        "duration",
                        "lead_reply",
                        "window_reopen"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "wait_for",
                    "next"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "else_next": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "id": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "if_next": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "predicate": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "field": {
                              "enum": [
                                "stage"
                              ],
                              "type": "string"
                            },
                            "operator": {
                              "enum": [
                                "equals"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "enum": [
                                "BOOKED_CALL",
                                "DEPOSIT",
                                "IN_CONTACT",
                                "LOST",
                                "NEW",
                                "NO_SHOW",
                                "QUALIFIED",
                                "UNQUALIFIED",
                                "WON"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "field": {
                              "enum": [
                                "tag"
                              ],
                              "type": "string"
                            },
                            "operator": {
                              "enum": [
                                "has",
                                "missing"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "maxLength": 255,
                              "pattern": "^[1-9][0-9]*$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "condition"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "predicate",
                    "if_next",
                    "else_next"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "next": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "tag_id": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "type": {
                      "enum": [
                        "add_tag"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "tag_id",
                    "next"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "next": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "tag_id": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "type": {
                      "enum": [
                        "remove_tag"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "tag_id",
                    "next"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "next": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "stage": {
                      "enum": [
                        "BOOKED_CALL",
                        "DEPOSIT",
                        "IN_CONTACT",
                        "LOST",
                        "NEW",
                        "NO_SHOW",
                        "QUALIFIED",
                        "UNQUALIFIED",
                        "WON"
                      ],
                      "type": "string"
                    },
                    "type": {
                      "enum": [
                        "set_stage"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "stage",
                    "next"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "member_id": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "next": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "enum": [
                        "assign"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "member_id",
                    "next"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "outcome": {
                      "default": "COMPLETED",
                      "enum": [
                        "COMPLETED",
                        "EXITED"
                      ],
                      "type": "string"
                    },
                    "type": {
                      "enum": [
                        "exit"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type"
                  ],
                  "type": "object"
                }
              ]
            },
            "maxItems": 20,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "name",
          "is_active",
          "steps"
        ],
        "type": "object"
      },
      "Input_flow_run_start": {
        "additionalProperties": false,
        "properties": {
          "lead_id": {
            "type": "integer"
          }
        },
        "required": [
          "lead_id"
        ],
        "type": "object"
      },
      "Input_follow_up_create": {
        "additionalProperties": false,
        "properties": {
          "cancel_on_reply": {
            "type": "boolean"
          },
          "file_id": {
            "format": "uuid",
            "type": "string"
          },
          "send_at": {
            "format": "date-time",
            "type": "string"
          },
          "text": {
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "send_at"
        ],
        "type": "object"
      },
      "Input_iclosed_connection_create": {
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "api_key"
        ],
        "type": "object"
      },
      "Input_keyword_automation_create": {
        "additionalProperties": false,
        "properties": {
          "active_hours": {
            "additionalProperties": false,
            "nullable": true,
            "properties": {
              "windows": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "day": {
                      "enum": [
                        "MONDAY",
                        "TUESDAY",
                        "WEDNESDAY",
                        "THURSDAY",
                        "FRIDAY",
                        "SATURDAY",
                        "SUNDAY"
                      ],
                      "type": "string"
                    },
                    "end": {
                      "maxLength": 5,
                      "type": "string"
                    },
                    "start": {
                      "maxLength": 5,
                      "type": "string"
                    }
                  },
                  "required": [
                    "day",
                    "start",
                    "end"
                  ],
                  "type": "object"
                },
                "maxItems": 14,
                "type": "array"
              }
            },
            "required": [
              "windows"
            ],
            "type": "object"
          },
          "assigned_member_id": {
            "nullable": true,
            "type": "integer"
          },
          "comment_type": {
            "enum": [
              "ANY_POST",
              "SPECIFIC_POST"
            ],
            "type": "string"
          },
          "future_post_slots": {
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "keywords": {
            "items": {
              "type": "string"
            },
            "maxItems": 20,
            "type": "array"
          },
          "match_mode": {
            "enum": [
              "contains",
              "is_exactly"
            ],
            "type": "string"
          },
          "media_ids": {
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "name": {
            "maxLength": 255,
            "type": "string"
          },
          "once_per_lead": {
            "type": "boolean"
          },
          "override_existing_assignment": {
            "type": "boolean"
          },
          "replies": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "ai_prompt": {
                  "maxLength": 2000,
                  "type": "string"
                },
                "ask_email_timeout_seconds": {
                  "type": "integer"
                },
                "delay": {
                  "type": "integer"
                },
                "file_id": {
                  "format": "uuid",
                  "nullable": true,
                  "type": "string"
                },
                "media_kind": {
                  "enum": [
                    "IMAGE",
                    "VIDEO",
                    "AUDIO"
                  ],
                  "type": "string"
                },
                "reply_type": {
                  "enum": [
                    "DM",
                    "COMMENT",
                    "ASK_EMAIL",
                    "MEDIA"
                  ],
                  "type": "string"
                },
                "text": {
                  "maxLength": 1000,
                  "type": "string"
                },
                "variant_pairing": {
                  "enum": [
                    "INDEPENDENT",
                    "FOLLOW_PREVIOUS"
                  ],
                  "type": "string"
                },
                "variants": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "buttons": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "button_type": {
                              "enum": [
                                "URL",
                                "POSTBACK"
                              ],
                              "type": "string"
                            },
                            "name": {
                              "maxLength": 20,
                              "type": "string"
                            },
                            "payload": {
                              "maxLength": 1000,
                              "nullable": true,
                              "type": "string"
                            },
                            "url": {
                              "maxLength": 2000,
                              "nullable": true,
                              "type": "string"
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "type": "object"
                        },
                        "maxItems": 3,
                        "type": "array"
                      },
                      "file_id": {
                        "format": "uuid",
                        "nullable": true,
                        "type": "string"
                      },
                      "media_kind": {
                        "enum": [
                          "IMAGE",
                          "VIDEO",
                          "AUDIO"
                        ],
                        "type": "string"
                      },
                      "text": {
                        "maxLength": 1000,
                        "type": "string"
                      },
                      "traffic_percentage": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                }
              },
              "type": "object"
            },
            "maxItems": 20,
            "type": "array"
          },
          "set_stage": {
            "enum": [
              "NEW",
              "IN_CONTACT",
              "QUALIFIED",
              "UNQUALIFIED",
              "BOOKED_CALL",
              "DEPOSIT",
              "WON",
              "LOST",
              "NO_SHOW"
            ],
            "nullable": true,
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "tags_to_remove": {
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "triggers": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "comment_type": {
                  "enum": [
                    "ANY_POST",
                    "SPECIFIC_POST"
                  ],
                  "nullable": true,
                  "type": "string"
                },
                "future_post_slots": {
                  "type": "integer"
                },
                "keywords": {
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 20,
                  "type": "array"
                },
                "lead_filter": {
                  "additionalProperties": false,
                  "nullable": true,
                  "type": "object"
                },
                "match_mode": {
                  "enum": [
                    "contains",
                    "is_exactly"
                  ],
                  "type": "string"
                },
                "media_ids": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "trigger_type": {
                  "enum": [
                    "DM",
                    "COMMENT",
                    "STORY"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "trigger_type",
                "keywords"
              ],
              "type": "object"
            },
            "maxItems": 10,
            "type": "array"
          }
        },
        "required": [
          "name",
          "is_active",
          "replies"
        ],
        "type": "object"
      },
      "Input_lead_assignment": {
        "additionalProperties": false,
        "properties": {
          "closer_id": {
            "nullable": true,
            "type": "integer"
          },
          "setter_id": {
            "nullable": true,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "Input_lead_bulk_tags": {
        "additionalProperties": false,
        "properties": {
          "lead_ids": {
            "items": {
              "type": "integer"
            },
            "maxItems": 100,
            "type": "array"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "maxItems": 20,
            "type": "array"
          }
        },
        "required": [
          "lead_ids",
          "tag_ids"
        ],
        "type": "object"
      },
      "Input_lead_contact": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "format": "email",
            "maxLength": 254,
            "type": "string"
          },
          "overwrite": {
            "type": "boolean"
          },
          "phone_number": {
            "maxLength": 255,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Input_lead_tag_add": {
        "additionalProperties": false,
        "properties": {
          "tag_id": {
            "type": "integer"
          }
        },
        "required": [
          "tag_id"
        ],
        "type": "object"
      },
      "Input_lead_tag_remove": {
        "additionalProperties": false,
        "properties": {
          "suppress": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Input_lead_update": {
        "additionalProperties": false,
        "properties": {
          "archived": {
            "type": "boolean"
          },
          "stage": {
            "enum": [
              "NEW",
              "IN_CONTACT",
              "QUALIFIED",
              "UNQUALIFIED",
              "BOOKED_CALL",
              "DEPOSIT",
              "WON",
              "LOST",
              "NO_SHOW"
            ],
            "type": "string"
          },
          "stage_key": {
            "maxLength": 32,
            "type": "string"
          },
          "unqualification_reason": {
            "enum": [
              "underaged",
              "time_waster",
              "no_money",
              "language_barrier",
              "ghosted",
              "unclear",
              "no_reason"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "Input_link_create": {
        "additionalProperties": false,
        "properties": {
          "destination_url": {
            "format": "uri",
            "maxLength": 2048,
            "pattern": "^(?:[a-z0-9.+-]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)(?:\\.(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)){3}|\\[[0-9a-f:.]+\\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::[0-9]{1,5})?(?:[/?#][^\\s]*)?\\z",
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "type": "string"
          },
          "og_description": {
            "maxLength": 5000,
            "type": "string"
          },
          "og_image_url": {
            "format": "uri",
            "maxLength": 2048,
            "pattern": "^(?:[a-z0-9.+-]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)(?:\\.(?:0|25[0-5]|2[0-4][0-9]|1[0-9]?[0-9]?|[1-9][0-9]?)){3}|\\[[0-9a-f:.]+\\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::[0-9]{1,5})?(?:[/?#][^\\s]*)?\\z",
            "type": "string"
          },
          "og_title": {
            "maxLength": 255,
            "type": "string"
          },
          "slug": {
            "maxLength": 255,
            "type": "string"
          }
        },
        "required": [
          "name",
          "destination_url"
        ],
        "type": "object"
      },
      "Input_media_upload": {
        "additionalProperties": false,
        "properties": {
          "file": {
            "format": "binary",
            "type": "string"
          }
        },
        "required": [
          "file"
        ],
        "type": "object"
      },
      "Input_prompt_update": {
        "additionalProperties": false,
        "properties": {
          "prompt": {
            "maxLength": 10000,
            "type": "string"
          }
        },
        "required": [
          "prompt"
        ],
        "type": "object"
      },
      "Input_stripe_connection_create": {
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "api_key"
        ],
        "type": "object"
      },
      "Input_team_invite_create": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "format": "email",
            "maxLength": 254,
            "type": "string"
          },
          "member_type": {
            "enum": [
              "SETTER",
              "CLOSER",
              "MANAGER",
              "FINANCE",
              "ASSISTANT"
            ],
            "type": "string"
          }
        },
        "required": [
          "email",
          "member_type"
        ],
        "type": "object"
      },
      "Input_whop_connection_create": {
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "maxLength": 512,
            "type": "string"
          },
          "company_id": {
            "maxLength": 255,
            "type": "string"
          }
        },
        "required": [
          "api_key",
          "company_id"
        ],
        "type": "object"
      },
      "Output_analytics_benchmarks": {
        "properties": {
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "metrics": {
            "properties": {
              "benchmarks": {
                "items": {
                  "properties": {
                    "metric": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "p25": {
                      "readOnly": true,
                      "type": "number"
                    },
                    "p50": {
                      "readOnly": true,
                      "type": "number"
                    },
                    "p75": {
                      "readOnly": true,
                      "type": "number"
                    },
                    "p90": {
                      "readOnly": true,
                      "type": "number"
                    },
                    "period": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "sample_size": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "value": {
                      "readOnly": true,
                      "type": "number"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "period": {
            "properties": {
              "end": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              },
              "start": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_analytics_funnel": {
        "properties": {
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "metrics": {
            "properties": {
              "cohort_conversion": {
                "properties": {
                  "cohort": {
                    "readOnly": true,
                    "type": "string"
                  },
                  "cohort_size": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "note": {
                    "readOnly": true,
                    "type": "string"
                  },
                  "rates": {
                    "properties": {
                      "booked_to_won": {
                        "properties": {
                          "denominator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "numerator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "value": {
                            "readOnly": true,
                            "type": "number"
                          }
                        },
                        "readOnly": true,
                        "type": "object"
                      },
                      "new_to_booked": {
                        "properties": {
                          "denominator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "numerator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "value": {
                            "readOnly": true,
                            "type": "number"
                          }
                        },
                        "readOnly": true,
                        "type": "object"
                      },
                      "new_to_qualified": {
                        "properties": {
                          "denominator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "numerator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "value": {
                            "readOnly": true,
                            "type": "number"
                          }
                        },
                        "readOnly": true,
                        "type": "object"
                      },
                      "new_to_won": {
                        "properties": {
                          "denominator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "numerator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "value": {
                            "readOnly": true,
                            "type": "number"
                          }
                        },
                        "readOnly": true,
                        "type": "object"
                      },
                      "qualified_to_booked": {
                        "properties": {
                          "denominator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "numerator": {
                            "readOnly": true,
                            "type": "integer"
                          },
                          "value": {
                            "readOnly": true,
                            "type": "number"
                          }
                        },
                        "readOnly": true,
                        "type": "object"
                      }
                    },
                    "readOnly": true,
                    "type": "object"
                  },
                  "reached_booked": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "reached_qualified": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "reached_won": {
                    "readOnly": true,
                    "type": "integer"
                  }
                },
                "readOnly": true,
                "type": "object"
              },
              "stage_counts": {
                "properties": {
                  "BOOKED_CALL": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "DEPOSIT_LEAD": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "IN_CONTACT": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "NEW_LEAD": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "NO_SHOW": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "QUALIFIED": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "UNQUALIFIED": {
                    "readOnly": true,
                    "type": "integer"
                  },
                  "WON": {
                    "readOnly": true,
                    "type": "integer"
                  }
                },
                "readOnly": true,
                "type": "object"
              },
              "stages": {
                "items": {
                  "properties": {
                    "current_lead_count": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "key": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "lead_count": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "name": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "retired": {
                      "readOnly": true,
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "period": {
            "properties": {
              "end": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              },
              "start": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_analytics_links": {
        "properties": {
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "metrics": {
            "properties": {
              "links": {
                "items": {
                  "properties": {
                    "avg_latency_seconds": {
                      "readOnly": true,
                      "type": "number"
                    },
                    "clicks": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "conversions": {
                      "properties": {
                        "bookings": {
                          "readOnly": true,
                          "type": "integer"
                        },
                        "won": {
                          "readOnly": true,
                          "type": "integer"
                        }
                      },
                      "readOnly": true,
                      "type": "object"
                    },
                    "link_id": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "name": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "reputation": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "sends": {
                      "readOnly": true,
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "period": {
            "properties": {
              "end": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              },
              "start": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_analytics_messages": {
        "properties": {
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "metrics": {
            "properties": {
              "inbound": {
                "readOnly": true,
                "type": "integer"
              },
              "outbound": {
                "readOnly": true,
                "type": "integer"
              },
              "sent_via_mochi": {
                "readOnly": true,
                "type": "integer"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "period": {
            "properties": {
              "end": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              },
              "start": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_analytics_reply_rate": {
        "properties": {
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "definition": {
            "readOnly": true,
            "type": "string"
          },
          "members": {
            "items": {
              "properties": {
                "member_id": {
                  "readOnly": true,
                  "type": "string"
                },
                "name": {
                  "readOnly": true,
                  "type": "string"
                },
                "replies_received": {
                  "readOnly": true,
                  "type": "integer"
                },
                "reply_rate": {
                  "readOnly": true,
                  "type": "number"
                },
                "total_messages": {
                  "readOnly": true,
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "metrics": {
            "properties": {
              "messages_with_reply": {
                "readOnly": true,
                "type": "integer"
              },
              "reply_rate": {
                "readOnly": true,
                "type": "number"
              },
              "total_outbound_messages": {
                "readOnly": true,
                "type": "integer"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "period": {
            "properties": {
              "end": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              },
              "start": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_analytics_response_times": {
        "properties": {
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "metrics": {
            "properties": {
              "median_seconds": {
                "readOnly": true,
                "type": "number"
              },
              "p25_seconds": {
                "readOnly": true,
                "type": "number"
              },
              "p75_seconds": {
                "readOnly": true,
                "type": "number"
              },
              "p90_seconds": {
                "readOnly": true,
                "type": "number"
              },
              "sample_size": {
                "readOnly": true,
                "type": "integer"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "period": {
            "properties": {
              "end": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              },
              "start": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_analytics_team": {
        "properties": {
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "metrics": {
            "properties": {
              "members": {
                "items": {
                  "properties": {
                    "bookings": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "leads_assigned": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "member_id": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "name": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "reply_rate": {
                      "readOnly": true,
                      "type": "number"
                    },
                    "response_time_median": {
                      "readOnly": true,
                      "type": "number"
                    },
                    "stage_transitions": {
                      "properties": {
                        "booked_call": {
                          "readOnly": true,
                          "type": "integer"
                        },
                        "in_contact": {
                          "readOnly": true,
                          "type": "integer"
                        },
                        "new_leads": {
                          "readOnly": true,
                          "type": "integer"
                        },
                        "qualified": {
                          "readOnly": true,
                          "type": "integer"
                        },
                        "won": {
                          "readOnly": true,
                          "type": "integer"
                        }
                      },
                      "readOnly": true,
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "period": {
            "properties": {
              "end": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              },
              "start": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_automation_capabilities": {
        "properties": {
          "ask": {
            "readOnly": true,
            "type": "boolean"
          },
          "audio": {
            "readOnly": true,
            "type": "boolean"
          },
          "branching": {
            "readOnly": true,
            "type": "boolean"
          },
          "drafts": {
            "readOnly": true,
            "type": "boolean"
          },
          "follow_ups": {
            "readOnly": true,
            "type": "boolean"
          },
          "format": {
            "readOnly": true,
            "type": "string"
          },
          "messenger": {
            "readOnly": true,
            "type": "boolean"
          },
          "new_triggers": {
            "readOnly": true,
            "type": "boolean"
          },
          "whatsapp": {
            "readOnly": true,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Output_automation_graph": {
        "properties": {
          "automation_id": {
            "readOnly": true,
            "type": "integer"
          },
          "document": {
            "$ref": "#/components/schemas/AutomationDefinition"
          },
          "editor_url": {
            "readOnly": true,
            "type": "string"
          },
          "etag": {
            "readOnly": true,
            "type": "string"
          },
          "flow_preview": {
            "items": {
              "properties": {
                "description": {
                  "readOnly": true,
                  "type": "string"
                },
                "title": {
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "revision": {
            "readOnly": true,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "Output_automation_graph_assets": {
        "properties": {
          "links": {
            "items": {
              "properties": {
                "name": {
                  "readOnly": true,
                  "type": "string"
                },
                "url": {
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "media": {
            "items": {
              "properties": {
                "file_id": {
                  "readOnly": true,
                  "type": "string"
                },
                "media_kind": {
                  "readOnly": true,
                  "type": "string"
                },
                "name": {
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "Output_automation_graph_list": {
        "properties": {
          "automations": {
            "items": {
              "properties": {
                "id": {
                  "readOnly": true,
                  "type": "integer"
                },
                "is_active": {
                  "readOnly": true,
                  "type": "boolean"
                },
                "name": {
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "next_after_id": {
            "nullable": true,
            "readOnly": true,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "Output_automation_valid": {
        "properties": {
          "valid": {
            "readOnly": true,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Output_bookings": {
        "properties": {
          "canceler_type": {
            "readOnly": true,
            "type": "string"
          },
          "cancelled_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "end": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "lead_id": {
            "readOnly": true,
            "type": "string"
          },
          "setter": {
            "properties": {
              "member_id": {
                "readOnly": true,
                "type": "string"
              },
              "name": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "source": {
            "readOnly": true,
            "type": "string"
          },
          "start": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "status": {
            "readOnly": true,
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_config_funnels": {
        "properties": {
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "readOnly": true,
            "type": "string"
          },
          "stages": {
            "items": {
              "properties": {
                "id": {
                  "readOnly": true,
                  "type": "string"
                },
                "name": {
                  "readOnly": true,
                  "type": "string"
                },
                "order": {
                  "readOnly": true,
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "Output_config_tags": {
        "properties": {
          "ai_prompt": {
            "readOnly": true,
            "type": "string"
          },
          "category": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "is_ai": {
            "readOnly": true,
            "type": "boolean"
          },
          "name": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_connection_action": {
        "properties": {
          "category": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "provider": {
            "readOnly": true,
            "type": "string"
          },
          "status": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_connection_oauth_start": {
        "properties": {
          "connect_url": {
            "readOnly": true,
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "provider": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_connections": {
        "properties": {
          "account_label": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "category": {
            "readOnly": true,
            "type": "string"
          },
          "connected_at": {
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "provider": {
            "readOnly": true,
            "type": "string"
          },
          "status": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_content_items": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "file_id": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "item_type": {
            "readOnly": true,
            "type": "string"
          },
          "prompt_body": {
            "readOnly": true,
            "type": "string"
          },
          "sort_order": {
            "readOnly": true,
            "type": "integer"
          },
          "title": {
            "readOnly": true,
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "url": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_flow_runs": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "current_step": {
            "readOnly": true,
            "type": "string"
          },
          "event_counts": {
            "properties": {
              "claimed": {
                "readOnly": true,
                "type": "integer"
              },
              "failed": {
                "readOnly": true,
                "type": "integer"
              },
              "paused": {
                "readOnly": true,
                "type": "integer"
              },
              "succeeded": {
                "readOnly": true,
                "type": "integer"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "finished_at": {
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "flow_id": {
            "readOnly": true,
            "type": "string"
          },
          "lead_id": {
            "readOnly": true,
            "type": "string"
          },
          "next_wake_at": {
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "run_id": {
            "readOnly": true,
            "type": "string"
          },
          "state": {
            "readOnly": true,
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_flows": {
        "properties": {
          "channel": {
            "readOnly": true,
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "is_active": {
            "readOnly": true,
            "type": "boolean"
          },
          "name": {
            "readOnly": true,
            "type": "string"
          },
          "step_count": {
            "readOnly": true,
            "type": "integer"
          },
          "updated_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_follow_ups": {
        "properties": {
          "file_id": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "is_human_initiated": {
            "readOnly": true,
            "type": "boolean"
          },
          "lead_id": {
            "readOnly": true,
            "type": "string"
          },
          "media_type": {
            "readOnly": true,
            "type": "string"
          },
          "send_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "send_origin": {
            "readOnly": true,
            "type": "string"
          },
          "skip_if_replied": {
            "readOnly": true,
            "type": "boolean"
          },
          "status": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_keyword_automations": {
        "properties": {
          "active_hours": {
            "properties": {
              "windows": {
                "items": {
                  "properties": {
                    "day": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "end": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "start": {
                      "readOnly": true,
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "comment_type": {
            "readOnly": true,
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "is_active": {
            "readOnly": true,
            "type": "boolean"
          },
          "name": {
            "readOnly": true,
            "type": "string"
          },
          "once_per_lead": {
            "readOnly": true,
            "type": "boolean"
          },
          "reply_count": {
            "readOnly": true,
            "type": "integer"
          },
          "set_stage": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "trigger_count": {
            "readOnly": true,
            "type": "integer"
          },
          "trigger_type": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_lead_intelligence": {
        "properties": {
          "ai_mode": {
            "properties": {
              "enabled": {
                "readOnly": true,
                "type": "boolean"
              },
              "status": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "conversation_stage": {
            "properties": {
              "entered_at": {
                "format": "date-time",
                "readOnly": true,
                "type": "string"
              },
              "value": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "engagement": {
            "properties": {
              "avg_score": {
                "readOnly": true,
                "type": "number"
              },
              "computed_at": {
                "format": "date-time",
                "readOnly": true,
                "type": "string"
              },
              "max_score": {
                "readOnly": true,
                "type": "number"
              },
              "question_count": {
                "readOnly": true,
                "type": "integer"
              },
              "trend": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "last_lead_message_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "last_org_message_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "objection": {
            "properties": {
              "present": {
                "readOnly": true,
                "type": "boolean"
              },
              "type": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "outcome": {
            "properties": {
              "computed_at": {
                "format": "date-time",
                "readOnly": true,
                "type": "string"
              },
              "confidence": {
                "readOnly": true,
                "type": "number"
              },
              "value": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "sentiment": {
            "properties": {
              "computed_at": {
                "format": "date-time",
                "readOnly": true,
                "type": "string"
              },
              "confidence": {
                "readOnly": true,
                "type": "number"
              },
              "value": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "window": {
            "properties": {
              "expires_at": {
                "format": "date-time",
                "readOnly": true,
                "type": "string"
              },
              "status": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_leads": {
        "properties": {
          "ad_title": {
            "readOnly": true,
            "type": "string"
          },
          "archived": {
            "readOnly": true,
            "type": "boolean"
          },
          "channels": {
            "items": {
              "type": "string"
            },
            "readOnly": true,
            "type": "array"
          },
          "closer": {
            "properties": {
              "member_id": {
                "readOnly": true,
                "type": "string"
              },
              "name": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "conversation_id": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "conversations": {
            "items": {
              "properties": {
                "channel": {
                  "readOnly": true,
                  "type": "string"
                },
                "id": {
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "display_name": {
            "readOnly": true,
            "type": "string"
          },
          "has_email": {
            "readOnly": true,
            "type": "boolean"
          },
          "has_phone": {
            "readOnly": true,
            "type": "boolean"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "inbox_url": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "instagram_name": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "instagram_username": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "is_ad_lead": {
            "readOnly": true,
            "type": "boolean"
          },
          "is_excluded": {
            "readOnly": true,
            "type": "boolean"
          },
          "is_reachable": {
            "readOnly": true,
            "type": "boolean"
          },
          "is_spam": {
            "readOnly": true,
            "type": "boolean"
          },
          "location": {
            "nullable": true,
            "properties": {
              "city": {
                "nullable": true,
                "readOnly": true,
                "type": "string"
              },
              "country": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "setter": {
            "properties": {
              "member_id": {
                "readOnly": true,
                "type": "string"
              },
              "name": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "source": {
            "readOnly": true,
            "type": "string"
          },
          "source_media_type": {
            "readOnly": true,
            "type": "string"
          },
          "stage": {
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "stage_key": {
            "readOnly": true,
            "type": "string"
          },
          "stage_name": {
            "readOnly": true,
            "type": "string"
          },
          "tags": {
            "items": {
              "properties": {
                "applied_by": {
                  "readOnly": true,
                  "type": "string"
                },
                "id": {
                  "readOnly": true,
                  "type": "string"
                },
                "name": {
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "unlocked_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "unqualification_reason": {
            "readOnly": true,
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_links": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "destination_url": {
            "readOnly": true,
            "type": "string"
          },
          "domain": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "readOnly": true,
            "type": "string"
          },
          "og_description": {
            "readOnly": true,
            "type": "string"
          },
          "og_image_url": {
            "readOnly": true,
            "type": "string"
          },
          "og_title": {
            "readOnly": true,
            "type": "string"
          },
          "short_url": {
            "readOnly": true,
            "type": "string"
          },
          "slug": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_media": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "file_type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "original_file_name": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_prompt_update": {
        "properties": {
          "kind": {
            "readOnly": true,
            "type": "string"
          },
          "prompt": {
            "readOnly": true,
            "type": "string"
          },
          "prompt_hash": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_revenue_manual": {
        "properties": {
          "amount": {
            "readOnly": true,
            "type": "integer"
          },
          "due_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "installment_counter": {
            "readOnly": true,
            "type": "string"
          },
          "lead_id": {
            "readOnly": true,
            "type": "string"
          },
          "paid_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "payment_type": {
            "readOnly": true,
            "type": "string"
          },
          "status": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_revenue_summary": {
        "properties": {
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "metrics": {
            "properties": {
              "amount": {
                "readOnly": true,
                "type": "integer"
              },
              "by_payment_type": {
                "items": {
                  "properties": {
                    "amount": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "count": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "payment_type": {
                      "readOnly": true,
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              },
              "by_product": {
                "items": {
                  "properties": {
                    "amount": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "count": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "fee": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "net": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "product_name": {
                      "readOnly": true,
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              },
              "by_provider": {
                "items": {
                  "properties": {
                    "amount": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "count": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "fee": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "net": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "provider": {
                      "readOnly": true,
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              },
              "by_status": {
                "items": {
                  "properties": {
                    "amount": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "count": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "status": {
                      "readOnly": true,
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "readOnly": true,
                "type": "array"
              },
              "conversion": {
                "properties": {
                  "pending": {
                    "readOnly": true,
                    "type": "boolean"
                  },
                  "unconverted_count": {
                    "readOnly": true,
                    "type": "integer"
                  }
                },
                "readOnly": true,
                "type": "object"
              },
              "currency": {
                "readOnly": true,
                "type": "string"
              },
              "fee": {
                "nullable": true,
                "readOnly": true,
                "type": "integer"
              },
              "net": {
                "nullable": true,
                "readOnly": true,
                "type": "integer"
              },
              "source": {
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "period": {
            "properties": {
              "end": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              },
              "start": {
                "format": "date",
                "readOnly": true,
                "type": "string"
              }
            },
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "Output_revenue_transactions": {
        "properties": {
          "amount": {
            "readOnly": true,
            "type": "integer"
          },
          "currency": {
            "readOnly": true,
            "type": "string"
          },
          "fee": {
            "readOnly": true,
            "type": "integer"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "kind": {
            "readOnly": true,
            "type": "string"
          },
          "lead_id": {
            "readOnly": true,
            "type": "string"
          },
          "net": {
            "readOnly": true,
            "type": "integer"
          },
          "occurred_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "product_name": {
            "readOnly": true,
            "type": "string"
          },
          "provider": {
            "readOnly": true,
            "type": "string"
          },
          "status": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_send_policy": {
        "properties": {
          "channels": {
            "items": {
              "properties": {
                "account_decision": {
                  "properties": {
                    "reason": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "status": {
                      "readOnly": true,
                      "type": "string"
                    }
                  },
                  "readOnly": true,
                  "type": "object"
                },
                "burst": {
                  "properties": {
                    "limit": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "remaining": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "reset_at": {
                      "format": "date-time",
                      "readOnly": true,
                      "type": "string"
                    },
                    "used": {
                      "readOnly": true,
                      "type": "integer"
                    }
                  },
                  "readOnly": true,
                  "type": "object"
                },
                "channel": {
                  "readOnly": true,
                  "type": "string"
                },
                "hourly": {
                  "properties": {
                    "limit": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "remaining": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "reset_at": {
                      "format": "date-time",
                      "readOnly": true,
                      "type": "string"
                    },
                    "used": {
                      "readOnly": true,
                      "type": "integer"
                    }
                  },
                  "readOnly": true,
                  "type": "object"
                },
                "recipient": {
                  "properties": {
                    "availability": {
                      "readOnly": true,
                      "type": "string"
                    },
                    "daily_limit": {
                      "readOnly": true,
                      "type": "integer"
                    },
                    "hourly_limit": {
                      "readOnly": true,
                      "type": "integer"
                    }
                  },
                  "readOnly": true,
                  "type": "object"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "computed_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "decisions": {
            "properties": {
              "would_accept": {
                "readOnly": true,
                "type": "integer"
              },
              "would_reject": {
                "readOnly": true,
                "type": "integer"
              }
            },
            "readOnly": true,
            "type": "object"
          },
          "mode": {
            "readOnly": true,
            "type": "string"
          },
          "sources": {
            "items": {
              "properties": {
                "count": {
                  "readOnly": true,
                  "type": "integer"
                },
                "source": {
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "Output_signals": {
        "properties": {
          "confidence": {
            "readOnly": true,
            "type": "number"
          },
          "detected_at": {
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "lead_id": {
            "readOnly": true,
            "type": "string"
          },
          "signal_type": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_team_member_action": {
        "properties": {
          "member_id": {
            "readOnly": true,
            "type": "string"
          },
          "status": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "Output_team_members": {
        "properties": {
          "accepted_at": {
            "format": "date-time",
            "nullable": true,
            "readOnly": true,
            "type": "string"
          },
          "email": {
            "readOnly": true,
            "type": "string"
          },
          "first_name": {
            "readOnly": true,
            "type": "string"
          },
          "is_active": {
            "readOnly": true,
            "type": "boolean"
          },
          "language": {
            "readOnly": true,
            "type": "string"
          },
          "last_name": {
            "readOnly": true,
            "type": "string"
          },
          "member_id": {
            "readOnly": true,
            "type": "string"
          },
          "member_type": {
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "PublicApiErrorEnvelope": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "fields": {
                "additionalProperties": true,
                "type": "object"
              },
              "message": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "retry_after": {
                "minimum": 0,
                "type": "integer"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "message",
              "request_id"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      },
      "PublicApiOAuth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.themochi.app/api/zapier/oauth/authorize/",
            "scopes": {
              "analytics:read": "Access analytics:read",
              "automations:write": "Access automations:write",
              "bookings:read": "Access bookings:read",
              "config:read": "Access config:read",
              "config:write": "Access config:write",
              "content:write": "Access content:write",
              "leads:read": "Access leads:read",
              "leads:write": "Access leads:write",
              "links:write": "Access links:write",
              "messages:send": "Access messages:send",
              "revenue:read": "Access revenue:read",
              "signals:read": "Access signals:read",
              "team:read": "Access team:read"
            },
            "tokenUrl": "https://api.themochi.app/api/zapier/oauth/token/"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "title": "Mochi Public API",
    "version": "1.0.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/v1/analytics/benchmarks/": {
      "get": {
        "operationId": "get_public_analytics_benchmarks",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_analytics_benchmarks"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "analytics:read"
            ]
          }
        ],
        "tags": [
          "analytics"
        ],
        "x-mochi-output-resource": "analytics_benchmarks",
        "x-mochi-required-scope": [
          "analytics:read"
        ]
      }
    },
    "/v1/analytics/funnel/": {
      "get": {
        "operationId": "get_public_analytics_funnel",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "member_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_analytics_funnel"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "analytics:read"
            ]
          }
        ],
        "tags": [
          "analytics"
        ],
        "x-mochi-output-resource": "analytics_funnel",
        "x-mochi-required-scope": [
          "analytics:read"
        ]
      }
    },
    "/v1/analytics/links/": {
      "get": {
        "operationId": "get_public_analytics_links",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "member_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_analytics_links"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "analytics:read"
            ]
          }
        ],
        "tags": [
          "analytics"
        ],
        "x-mochi-output-resource": "analytics_links",
        "x-mochi-required-scope": [
          "analytics:read"
        ]
      }
    },
    "/v1/analytics/messages/": {
      "get": {
        "operationId": "get_public_analytics_messages",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "member_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_analytics_messages"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "analytics:read"
            ]
          }
        ],
        "tags": [
          "analytics"
        ],
        "x-mochi-output-resource": "analytics_messages",
        "x-mochi-required-scope": [
          "analytics:read"
        ]
      }
    },
    "/v1/analytics/reply-rate/": {
      "get": {
        "operationId": "get_public_analytics_reply_rate",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "member_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_analytics_reply_rate"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "analytics:read"
            ]
          }
        ],
        "tags": [
          "analytics"
        ],
        "x-mochi-output-resource": "analytics_reply_rate",
        "x-mochi-required-scope": [
          "analytics:read"
        ]
      }
    },
    "/v1/analytics/response-times/": {
      "get": {
        "operationId": "get_public_analytics_response_times",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "member_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_analytics_response_times"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "analytics:read"
            ]
          }
        ],
        "tags": [
          "analytics"
        ],
        "x-mochi-output-resource": "analytics_response_times",
        "x-mochi-required-scope": [
          "analytics:read"
        ]
      }
    },
    "/v1/analytics/team/": {
      "get": {
        "operationId": "get_public_analytics_team",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "member_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_analytics_team"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "analytics:read"
            ]
          }
        ],
        "tags": [
          "analytics"
        ],
        "x-mochi-output-resource": "analytics_team",
        "x-mochi-required-scope": [
          "analytics:read"
        ]
      }
    },
    "/v1/automations/definitions/": {
      "get": {
        "operationId": "get_public_automation_definitions",
        "parameters": [
          {
            "in": "query",
            "name": "after_id",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_automation_graph_list"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "automation"
        ],
        "x-mochi-output-resource": "automation_graph_list",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      },
      "post": {
        "operationId": "post_public_automation_definitions",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_automation_graph_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_automation_graph"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "automation"
        ],
        "x-mochi-input-resource": "automation_graph_create",
        "x-mochi-output-resource": "automation_graph",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/automations/definitions/assets/": {
      "get": {
        "operationId": "get_public_automation_assets",
        "parameters": [
          {
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_automation_graph_assets"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "automation"
        ],
        "x-mochi-output-resource": "automation_graph_assets",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/automations/definitions/capabilities/": {
      "get": {
        "operationId": "get_public_automation_capabilities",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_automation_capabilities"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "automation"
        ],
        "x-mochi-output-resource": "automation_capabilities",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/automations/definitions/validate/": {
      "post": {
        "operationId": "post_public_automation_validate",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_automation_graph_validate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_automation_valid"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "automation"
        ],
        "x-mochi-input-resource": "automation_graph_validate",
        "x-mochi-output-resource": "automation_valid",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/automations/definitions/{automation_id}/": {
      "get": {
        "operationId": "get_public_automation_definition",
        "parameters": [
          {
            "in": "path",
            "name": "automation_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_automation_graph"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "automation"
        ],
        "x-mochi-output-resource": "automation_graph",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      },
      "put": {
        "operationId": "put_public_automation_definition",
        "parameters": [
          {
            "in": "path",
            "name": "automation_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_automation_graph_edit"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_automation_graph"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "automation"
        ],
        "x-mochi-input-resource": "automation_graph_edit",
        "x-mochi-output-resource": "automation_graph",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/automations/keyword/": {
      "post": {
        "operationId": "post_public_keyword_automation_create",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_keyword_automation_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_keyword_automations"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "keyword"
        ],
        "x-mochi-input-resource": "keyword_automation_create",
        "x-mochi-output-resource": "keyword_automations",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/bookings/": {
      "get": {
        "operationId": "get_public_bookings_list",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "SCHEDULED",
                "COMPLETED",
                "CANCELLED"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "enum": [
                "CALENDLY",
                "ICLOSED",
                "GOHIGHLEVEL",
                "ONCEHUB",
                "MANUAL"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lead_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "start_from",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_to",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "updated_since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_bookings"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "bookings:read"
            ]
          }
        ],
        "tags": [
          "bookings"
        ],
        "x-mochi-output-resource": "bookings",
        "x-mochi-required-scope": [
          "bookings:read"
        ]
      }
    },
    "/v1/config/funnels/": {
      "get": {
        "operationId": "get_public_config_funnels",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_config_funnels"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "config:read"
            ]
          }
        ],
        "tags": [
          "config"
        ],
        "x-mochi-output-resource": "config_funnels",
        "x-mochi-required-scope": [
          "config:read"
        ]
      }
    },
    "/v1/config/prompts/tags/{tag_id}/": {
      "put": {
        "operationId": "put_public_tag_prompt_update",
        "parameters": [
          {
            "in": "path",
            "name": "tag_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_prompt_update"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_prompt_update"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "config:write"
            ]
          }
        ],
        "tags": [
          "tag"
        ],
        "x-mochi-input-resource": "prompt_update",
        "x-mochi-output-resource": "prompt_update",
        "x-mochi-required-scope": [
          "config:write"
        ]
      }
    },
    "/v1/config/prompts/{prompt_kind}/": {
      "put": {
        "operationId": "put_public_prompt_update",
        "parameters": [
          {
            "in": "path",
            "name": "prompt_kind",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_prompt_update"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_prompt_update"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "config:write"
            ]
          }
        ],
        "tags": [
          "prompt"
        ],
        "x-mochi-input-resource": "prompt_update",
        "x-mochi-output-resource": "prompt_update",
        "x-mochi-required-scope": [
          "config:write"
        ]
      }
    },
    "/v1/config/tags/": {
      "get": {
        "operationId": "get_public_config_tags",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_config_tags"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "config:read"
            ]
          }
        ],
        "tags": [
          "config"
        ],
        "x-mochi-output-resource": "config_tags",
        "x-mochi-required-scope": [
          "config:read"
        ]
      }
    },
    "/v1/connections/": {
      "get": {
        "operationId": "get_public_connections_list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_connections"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "config:read"
            ]
          }
        ],
        "tags": [
          "connections"
        ],
        "x-mochi-output-resource": "connections",
        "x-mochi-required-scope": [
          "config:read"
        ]
      },
      "post": {
        "operationId": "post_public_connections_list",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_connection_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_connection_oauth_start"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "connections"
        ],
        "x-mochi-input-resource": "connection_create",
        "x-mochi-output-resource": "connection_oauth_start",
        "x-mochi-required-scope": [
          "connections:write"
        ]
      }
    },
    "/v1/connections/ablefy/": {
      "delete": {
        "operationId": "delete_public_ablefy_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "ablefy"
        ],
        "x-mochi-required-scope": [
          "connections:write"
        ]
      },
      "post": {
        "operationId": "post_public_ablefy_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_ablefy_connection_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_connection_action"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "ablefy"
        ],
        "x-mochi-input-resource": "ablefy_connection_create",
        "x-mochi-output-resource": "connection_action",
        "x-mochi-required-scope": [
          "connections:write"
        ]
      }
    },
    "/v1/connections/elevenlabs/": {
      "post": {
        "operationId": "post_public_elevenlabs_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_elevenlabs_connection_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_connection_action"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "elevenlabs"
        ],
        "x-mochi-input-resource": "elevenlabs_connection_create",
        "x-mochi-output-resource": "connection_action",
        "x-mochi-required-scope": [
          "connections:write"
        ]
      }
    },
    "/v1/connections/fanbasis/": {
      "delete": {
        "operationId": "delete_public_fanbasis_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "fanbasis"
        ],
        "x-mochi-required-scope": [
          "connections:write"
        ]
      },
      "post": {
        "operationId": "post_public_fanbasis_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_fanbasis_connection_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_connection_action"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "fanbasis"
        ],
        "x-mochi-input-resource": "fanbasis_connection_create",
        "x-mochi-output-resource": "connection_action",
        "x-mochi-required-scope": [
          "connections:write"
        ]
      }
    },
    "/v1/connections/iclosed/": {
      "delete": {
        "operationId": "delete_public_iclosed_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "iclosed"
        ],
        "x-mochi-required-scope": [
          "connections:write"
        ]
      },
      "post": {
        "operationId": "post_public_iclosed_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_iclosed_connection_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_connection_action"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "iclosed"
        ],
        "x-mochi-input-resource": "iclosed_connection_create",
        "x-mochi-output-resource": "connection_action",
        "x-mochi-required-scope": [
          "connections:write"
        ]
      }
    },
    "/v1/connections/stripe/": {
      "delete": {
        "operationId": "delete_public_stripe_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "stripe"
        ],
        "x-mochi-required-scope": [
          "connections:write"
        ]
      },
      "post": {
        "operationId": "post_public_stripe_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_stripe_connection_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_connection_action"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "stripe"
        ],
        "x-mochi-input-resource": "stripe_connection_create",
        "x-mochi-output-resource": "connection_action",
        "x-mochi-required-scope": [
          "connections:write"
        ]
      }
    },
    "/v1/connections/whop/": {
      "delete": {
        "operationId": "delete_public_whop_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "whop"
        ],
        "x-mochi-required-scope": [
          "connections:write"
        ]
      },
      "post": {
        "operationId": "post_public_whop_connection",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_whop_connection_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_connection_action"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "whop"
        ],
        "x-mochi-input-resource": "whop_connection_create",
        "x-mochi-output-resource": "connection_action",
        "x-mochi-required-scope": [
          "connections:write"
        ]
      }
    },
    "/v1/content/": {
      "post": {
        "operationId": "post_public_content_create",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_content_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_content_items"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "content:write"
            ]
          }
        ],
        "tags": [
          "content"
        ],
        "x-mochi-input-resource": "content_create",
        "x-mochi-output-resource": "content_items",
        "x-mochi-required-scope": [
          "content:write"
        ]
      }
    },
    "/v1/content/{content_item_id}/": {
      "delete": {
        "operationId": "delete_public_content_detail",
        "parameters": [
          {
            "in": "path",
            "name": "content_item_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "content:write"
            ]
          }
        ],
        "tags": [
          "content"
        ],
        "x-mochi-required-scope": [
          "content:write"
        ]
      },
      "patch": {
        "operationId": "patch_public_content_detail",
        "parameters": [
          {
            "in": "path",
            "name": "content_item_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_content_update"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_content_items"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "content:write"
            ]
          }
        ],
        "tags": [
          "content"
        ],
        "x-mochi-input-resource": "content_update",
        "x-mochi-output-resource": "content_items",
        "x-mochi-required-scope": [
          "content:write"
        ]
      }
    },
    "/v1/flows/": {
      "get": {
        "operationId": "get_public_flow_list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_flows"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "flow"
        ],
        "x-mochi-output-resource": "flows",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      },
      "post": {
        "operationId": "post_public_flow_list",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_flow_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_flows"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "flow"
        ],
        "x-mochi-input-resource": "flow_create",
        "x-mochi-output-resource": "flows",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/flows/runs/{run_id}/": {
      "get": {
        "operationId": "get_public_flow_run_detail",
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_flow_runs"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "flow"
        ],
        "x-mochi-output-resource": "flow_runs",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/flows/{flow_id}/": {
      "get": {
        "operationId": "get_public_flow_detail",
        "parameters": [
          {
            "in": "path",
            "name": "flow_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_flows"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "flow"
        ],
        "x-mochi-output-resource": "flows",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/flows/{flow_id}/runs/": {
      "post": {
        "operationId": "post_public_flow_run_create",
        "parameters": [
          {
            "in": "path",
            "name": "flow_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_flow_run_start"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_flow_runs"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "automations:write"
            ]
          }
        ],
        "tags": [
          "flow"
        ],
        "x-mochi-input-resource": "flow_run_start",
        "x-mochi-output-resource": "flow_runs",
        "x-mochi-required-scope": [
          "automations:write"
        ]
      }
    },
    "/v1/leads/": {
      "get": {
        "operationId": "get_public_leads_list",
        "parameters": [
          {
            "in": "query",
            "name": "stage_key",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stage",
            "required": false,
            "schema": {
              "enum": [
                "NEW",
                "IN_CONTACT",
                "QUALIFIED",
                "UNQUALIFIED",
                "BOOKED_CALL",
                "DEPOSIT",
                "WON",
                "LOST",
                "NO_SHOW"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "enum": [
                "DM",
                "COMMENT",
                "STORY",
                "OUTBOUND"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "setter_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "closer_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "is_ad_lead",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "archived",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "updated_since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "explode": true,
            "in": "query",
            "name": "location",
            "required": false,
            "schema": {
              "items": {
                "maxLength": 123,
                "pattern": "^[A-Za-z]{2}(:[^:]{1,120})?$",
                "type": "string"
              },
              "maxItems": 50,
              "type": "array"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_leads"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:read"
            ]
          }
        ],
        "tags": [
          "leads"
        ],
        "x-mochi-output-resource": "leads",
        "x-mochi-required-scope": [
          "leads:read"
        ]
      }
    },
    "/v1/leads/bulk/tags/": {
      "post": {
        "operationId": "post_public_leads_bulk_tags",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_lead_bulk_tags"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:write"
            ]
          }
        ],
        "tags": [
          "leads"
        ],
        "x-mochi-input-resource": "lead_bulk_tags",
        "x-mochi-required-scope": [
          "leads:write"
        ]
      }
    },
    "/v1/leads/{lead_id}/": {
      "get": {
        "operationId": "get_public_lead_detail",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_leads"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:read"
            ]
          }
        ],
        "tags": [
          "lead"
        ],
        "x-mochi-output-resource": "leads",
        "x-mochi-required-scope": [
          "leads:read"
        ]
      },
      "patch": {
        "operationId": "patch_public_lead_detail",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_lead_update"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_leads"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:write"
            ]
          }
        ],
        "tags": [
          "lead"
        ],
        "x-mochi-input-resource": "lead_update",
        "x-mochi-output-resource": "leads",
        "x-mochi-required-scope": [
          "leads:write"
        ]
      }
    },
    "/v1/leads/{lead_id}/assignment/": {
      "put": {
        "operationId": "put_public_lead_assignment",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_lead_assignment"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_leads"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:write"
            ]
          }
        ],
        "tags": [
          "lead"
        ],
        "x-mochi-input-resource": "lead_assignment",
        "x-mochi-output-resource": "leads",
        "x-mochi-required-scope": [
          "leads:write"
        ]
      }
    },
    "/v1/leads/{lead_id}/contact/": {
      "patch": {
        "operationId": "patch_public_lead_contact",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_lead_contact"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_leads"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:write"
            ]
          }
        ],
        "tags": [
          "lead"
        ],
        "x-mochi-input-resource": "lead_contact",
        "x-mochi-output-resource": "leads",
        "x-mochi-required-scope": [
          "leads:write"
        ]
      }
    },
    "/v1/leads/{lead_id}/follow-ups/": {
      "post": {
        "operationId": "post_public_follow_up_create",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_follow_up_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_follow_ups"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "messages:send"
            ]
          }
        ],
        "tags": [
          "follow"
        ],
        "x-mochi-input-resource": "follow_up_create",
        "x-mochi-output-resource": "follow_ups",
        "x-mochi-required-scope": [
          "messages:send"
        ]
      }
    },
    "/v1/leads/{lead_id}/intelligence/": {
      "get": {
        "operationId": "get_public_lead_intelligence",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_lead_intelligence"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:read",
              "signals:read"
            ]
          }
        ],
        "tags": [
          "lead"
        ],
        "x-mochi-output-resource": "lead_intelligence",
        "x-mochi-required-scope": [
          "leads:read",
          "signals:read"
        ]
      }
    },
    "/v1/leads/{lead_id}/signals/": {
      "get": {
        "operationId": "get_public_lead_signals",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "signal_type",
            "required": false,
            "schema": {
              "enum": [
                "BOOKING_LINK",
                "PAYMENT_LINK",
                "QUALIFIER_LINK",
                "NURTURE_LINK",
                "CALL_CONFIRMED",
                "PRICE_DISCUSSED",
                "OBJECTION_RAISED",
                "OBJECTION_OVERCOME",
                "HIGH_ENGAGEMENT",
                "WENT_COLD",
                "GHOSTED",
                "SCHEDULING_PROPOSED",
                "SCHEDULING_CONFIRMED",
                "CONTACT_EXCHANGED"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lead_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "detected_since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "updated_since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "min_confidence",
            "required": false,
            "schema": {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_signals"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "signals:read"
            ]
          }
        ],
        "tags": [
          "lead"
        ],
        "x-mochi-output-resource": "signals",
        "x-mochi-required-scope": [
          "signals:read"
        ]
      }
    },
    "/v1/leads/{lead_id}/tags/": {
      "post": {
        "operationId": "post_public_lead_tags",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_lead_tag_add"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_leads"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:write"
            ]
          }
        ],
        "tags": [
          "lead"
        ],
        "x-mochi-input-resource": "lead_tag_add",
        "x-mochi-output-resource": "leads",
        "x-mochi-required-scope": [
          "leads:write"
        ]
      }
    },
    "/v1/leads/{lead_id}/tags/{tag_id}/": {
      "delete": {
        "operationId": "delete_public_lead_tag_detail",
        "parameters": [
          {
            "in": "path",
            "name": "lead_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "path",
            "name": "tag_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_lead_tag_remove"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_leads"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "leads:write"
            ]
          }
        ],
        "tags": [
          "lead"
        ],
        "x-mochi-input-resource": "lead_tag_remove",
        "x-mochi-output-resource": "leads",
        "x-mochi-required-scope": [
          "leads:write"
        ]
      }
    },
    "/v1/links/": {
      "post": {
        "operationId": "post_public_links_create",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_link_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_links"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "links:write"
            ]
          }
        ],
        "tags": [
          "links"
        ],
        "x-mochi-input-resource": "link_create",
        "x-mochi-output-resource": "links",
        "x-mochi-required-scope": [
          "links:write"
        ]
      }
    },
    "/v1/media/": {
      "post": {
        "operationId": "post_public_media_upload",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_media_upload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_media"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "content:write"
            ]
          }
        ],
        "tags": [
          "media"
        ],
        "x-mochi-input-resource": "media_upload",
        "x-mochi-output-resource": "media",
        "x-mochi-required-scope": [
          "content:write"
        ]
      }
    },
    "/v1/revenue/manual/": {
      "get": {
        "operationId": "get_public_revenue_manual",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "updated_since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "PENDING",
                "PROCESSING",
                "COMPLETE",
                "CANCELLED"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "payment_type",
            "required": false,
            "schema": {
              "enum": [
                "FULL",
                "DEPOSIT",
                "INSTALLMENT"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_revenue_manual"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "revenue:read"
            ]
          }
        ],
        "tags": [
          "revenue"
        ],
        "x-mochi-output-resource": "revenue_manual",
        "x-mochi-required-scope": [
          "revenue:read"
        ]
      }
    },
    "/v1/revenue/summary/": {
      "get": {
        "operationId": "get_public_revenue_summary",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "enum": [
                "transactions",
                "manual"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_revenue_summary"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "revenue:read"
            ]
          }
        ],
        "tags": [
          "revenue"
        ],
        "x-mochi-output-resource": "revenue_summary",
        "x-mochi-required-scope": [
          "revenue:read"
        ]
      }
    },
    "/v1/revenue/transactions/": {
      "get": {
        "operationId": "get_public_revenue_transactions",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "date_to",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "updated_since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_revenue_transactions"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "revenue:read"
            ]
          }
        ],
        "tags": [
          "revenue"
        ],
        "x-mochi-output-resource": "revenue_transactions",
        "x-mochi-required-scope": [
          "revenue:read"
        ]
      }
    },
    "/v1/send-policy/": {
      "get": {
        "operationId": "get_public_send_policy",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Output_send_policy"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "config:read"
            ]
          }
        ],
        "tags": [
          "send"
        ],
        "x-mochi-output-resource": "send_policy",
        "x-mochi-required-scope": [
          "config:read"
        ]
      }
    },
    "/v1/signals/": {
      "get": {
        "operationId": "get_public_signals_list",
        "parameters": [
          {
            "in": "query",
            "name": "signal_type",
            "required": false,
            "schema": {
              "enum": [
                "BOOKING_LINK",
                "PAYMENT_LINK",
                "QUALIFIER_LINK",
                "NURTURE_LINK",
                "CALL_CONFIRMED",
                "PRICE_DISCUSSED",
                "OBJECTION_RAISED",
                "OBJECTION_OVERCOME",
                "HIGH_ENGAGEMENT",
                "WENT_COLD",
                "GHOSTED",
                "SCHEDULING_PROPOSED",
                "SCHEDULING_CONFIRMED",
                "CONTACT_EXCHANGED"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "lead_id",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "detected_since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "updated_since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "min_confidence",
            "required": false,
            "schema": {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_signals"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "signals:read"
            ]
          }
        ],
        "tags": [
          "signals"
        ],
        "x-mochi-output-resource": "signals",
        "x-mochi-required-scope": [
          "signals:read"
        ]
      }
    },
    "/v1/team/invites/": {
      "post": {
        "operationId": "post_public_team_invite",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Input_team_invite_create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_team_member_action"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "team"
        ],
        "x-mochi-input-resource": "team_invite_create",
        "x-mochi-output-resource": "team_member_action",
        "x-mochi-required-scope": [
          "team:write"
        ]
      }
    },
    "/v1/team/members/": {
      "get": {
        "operationId": "get_public_team_members_list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Output_team_members"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "nullable": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          },
          {
            "PublicApiOAuth": [
              "team:read"
            ]
          }
        ],
        "tags": [
          "team"
        ],
        "x-mochi-output-resource": "team_members",
        "x-mochi-required-scope": [
          "team:read"
        ]
      }
    },
    "/v1/team/members/{member_id}/deactivate/": {
      "post": {
        "operationId": "post_public_team_member_deactivate",
        "parameters": [
          {
            "in": "path",
            "name": "member_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Output_team_member_action"
                }
              }
            },
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "team"
        ],
        "x-mochi-output-resource": "team_member_action",
        "x-mochi-required-scope": [
          "team:write"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Production",
      "url": "https://api.themochi.app"
    }
  ]
}
