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

# Adicionar etapa de funil

*Endpoint* utilizado para **adicionar uma etapa de 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": {
    "/stages": {
      "post": {
        "summary": "Adicionar etapa de funil",
        "description": "",
        "operationId": "adicionar-etapa-de-funil",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "pipeline_id",
                  "name"
                ],
                "properties": {
                  "pipeline_id": {
                    "type": "integer",
                    "description": "ID do funil de vendas.",
                    "format": "int32"
                  },
                  "name": {
                    "type": "string",
                    "description": "Nome da etapa."
                  },
                  "origin_id": {
                    "type": "integer",
                    "description": "ID da origem.",
                    "format": "int32"
                  },
                  "description": {
                    "type": "string",
                    "description": "Descrição da etapa."
                  },
                  "color": {
                    "type": "string",
                    "description": "Cor da etapa."
                  },
                  "order": {
                    "type": "integer",
                    "description": "Ordem da etapa dentro do funil.",
                    "format": "int32"
                  },
                  "allow_win_deal": {
                    "type": "boolean",
                    "description": "Habilita ou desabilita a opção de ganhar oportunidade dentro da etapa: false: desabilita a opção, true: habilita a opção."
                  },
                  "allow_create_deal": {
                    "type": "boolean",
                    "description": "Habilita ou desabilita a opção de gerar oportunidade na etapa: false: desabilita a opção, true: habilita a opção."
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "name": "Pós-Venda",
                    "pipeline_id": 14478,
                    "description": "Etapa referente à Pós-Venda",
                    "color": "#ffffff",
                    "order": "1",
                    "origin_id": 174897,
                    "allow_win_deal": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"success\": true,\n    \"message\": \"Created\",\n    \"data\": {\n        \"id\": 123,\n        \"account_id\": 123,\n        \"pipeline_id\": 123,\n        \"origin_id\": null,\n        \"name\": \"Teste Documentação\",\n        \"description\": \"Etapa referente à recuperação de clientes\",\n        \"order\": 1,\n        \"color\": \"#ffffff\",\n        \"completion_percentage\": 0,\n        \"block_emails\": 0,\n        \"days_limit\": 0,\n        \"update_limit\": 0,\n        \"hash\": \"c027a9d1-c2dc-5c6d-96ca-7dff65428715\",\n        \"allow_win_deal\": true,\n        \"allow_create_deal\": true\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": 123,
                          "default": 0
                        },
                        "account_id": {
                          "type": "integer",
                          "example": 123,
                          "default": 0
                        },
                        "pipeline_id": {
                          "type": "integer",
                          "example": 123,
                          "default": 0
                        },
                        "origin_id": {},
                        "name": {
                          "type": "string",
                          "example": "Teste Documentação"
                        },
                        "description": {
                          "type": "string",
                          "example": "Etapa referente à recuperação de clientes"
                        },
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "color": {
                          "type": "string",
                          "example": "#ffffff"
                        },
                        "completion_percentage": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "block_emails": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "days_limit": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "update_limit": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "hash": {
                          "type": "string",
                          "example": "c027a9d1-c2dc-5c6d-96ca-7dff65428715"
                        },
                        "allow_win_deal": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "allow_create_deal": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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 Content\",\n    \"data\": {\n        \"pipeline_id\": [\n            \"Você não tem acesso a esse pipeline.\"\n        ],\n        \"origin_id\": [\n            \"O valor selecionado para o campo origin id é inválido.\"\n        ]\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Unprocessable Content"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "pipeline_id": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "Você não tem acesso a esse pipeline."
                          }
                        },
                        "origin_id": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "O valor selecionado para o campo origin id é inválido."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```