---
updatedAt: 2026-10-23T12:38:54.000Z
agentTools:
  projectIndex: https://developers.pipe.run/llms.txt
---

# Adicionar funil

*Endpoint* utilizado para **adicionar um funil** na conta do CRM PipeRun.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "applicationjson",
    "version": "1.1-CRM"
  },
  "servers": [
    {
      "url": "https://api.pipe.run/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "token",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/pipelines": {
      "post": {
        "summary": "Adicionar funil",
        "description": "",
        "operationId": "adicionar-funil",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "funnel_type",
                  "user_id"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Nome do funil."
                  },
                  "funnel_type": {
                    "type": "integer",
                    "description": "Tipo de funil: 0: vendas, 1: pré vendas, 2: pós vendas, 3: customer sucess, 4: marketing, 5: contratos, 6: projetos, 7: administrativo.",
                    "format": "int32"
                  },
                  "user_id": {
                    "type": "string",
                    "description": "ID do usuário responsável pelo funil."
                  },
                  "is_main": {
                    "type": "boolean",
                    "description": "Define se o funil em questão é o principal da conta: false: funil não é o principal, true: funil é o principal."
                  },
                  "limit_time": {
                    "type": "integer",
                    "description": "Alerta de estagnação: quantidade de dias até exibir o alerta nos cards do funil.",
                    "format": "int32"
                  },
                  "order": {
                    "type": "integer",
                    "description": "Ordem (posição) do funil na listagem.",
                    "format": "int32"
                  },
                  "description": {
                    "type": "string",
                    "description": "Descrição do funil."
                  },
                  "visibility": {
                    "type": "integer",
                    "description": "Visibilidade: 0: público (padrão), 1: privado, 2: usuário (relacionar ID do usuário).",
                    "format": "int32"
                  },
                  "allowedUsers": {
                    "type": "object",
                    "description": "Array contendo o ID dos usuários que terão visibilidade ao funil, caso tenha optado por um funil com visibilidade restrita.",
                    "properties": {
                      "0": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "ID do usuário.",
                            "format": "int32"
                          }
                        }
                      },
                      "1": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "ID do usuário.",
                            "format": "int32"
                          }
                        }
                      },
                      "2": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "ID do usuário.",
                            "format": "int32"
                          }
                        }
                      },
                      "3": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "ID do usuário.",
                            "format": "int32"
                          }
                        }
                      },
                      "4": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "ID do usuário.",
                            "format": "int32"
                          }
                        }
                      },
                      "5": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "ID do usuário.",
                            "format": "int32"
                          }
                        }
                      },
                      "6": {
                        "type": "object",
                        "properties": {}
                      },
                      "7": {
                        "type": "object",
                        "properties": {}
                      },
                      "8": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "funnel_type": 0,
                    "user_id": 42001,
                    "name": "Entradas 9",
                    "description": "Entradas de vendas",
                    "order": 0,
                    "is_main": true,
                    "limit_time": 95,
                    "visibility": 0
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": true,\n  \"message\": \"Created\",\n  \"data\": {\n    \"id\": 748,\n    \"account_id\": 748,\n    \"funnel_type\": 0,\n    \"user_id\": 2,\n    \"name\": \"Entradas 4\",\n    \"description\": \"Entradas de vendas\",\n    \"funnel_type_name\": \"Vendas\",\n    \"order\": 0,\n    \"is_main\": false,\n    \"limit_time\": 0,\n    \"visibility\": 0\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Created"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 748,
                          "default": 0
                        },
                        "account_id": {
                          "type": "integer",
                          "example": 748,
                          "default": 0
                        },
                        "funnel_type": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "user_id": {
                          "type": "integer",
                          "example": 2,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Entradas 4"
                        },
                        "description": {
                          "type": "string",
                          "example": "Entradas de vendas"
                        },
                        "funnel_type_name": {
                          "type": "string",
                          "example": "Vendas"
                        },
                        "order": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "is_main": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "limit_time": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "visibility": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": false,\n  \"message\": \"Not Found\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": false,\n  \"message\": \"Unprocessable Entity\",\n  \"data\": {\n    \"is_main\": \"O campo is_main é obrigatório.\",\n    \"limit_time\": \"O campo limit_time é obrigatório.\",\n    \"name\": \"O campo name é obrigatório.\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Unprocessable Entity"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "is_main": {
                          "type": "string",
                          "example": "O campo is_main é obrigatório."
                        },
                        "limit_time": {
                          "type": "string",
                          "example": "O campo limit_time é obrigatório."
                        },
                        "name": {
                          "type": "string",
                          "example": "O campo name é obrigatório."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```