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

# Adicionar tag

*Endpoint* utilizado para **adicionar uma tag** 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": {
    "/tags": {
      "post": {
        "summary": "Adicionar tag",
        "description": "",
        "operationId": "criar-tag",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "belongs"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Nome da tag."
                  },
                  "belongs": {
                    "type": "integer",
                    "description": "Pertence à:  1: oportunidade, 2: pessoa, 3: empresa.",
                    "format": "int32"
                  },
                  "color": {
                    "type": "string",
                    "description": "Cor da tag: vermelho: \"danger\", verde: \"primary\", azul: \"success\", amarelo: \"warning\" , cinza: \"default\"."
                  },
                  "active": {
                    "type": "boolean",
                    "description": "Status ativo/inativo da tag:  false: tag inativa, true: tag ativa."
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "name": "Negociando",
                    "color": "danger",
                    "belongs": "1",
                    "active": true
                  }
                }
              }
            }
          }
        },
        "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    \"user_id\": 2,\n    \"name\": \"Aluguel\",\n    \"color\": \"danger\",\n    \"belongs\": 1\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
                        },
                        "user_id": {
                          "type": "integer",
                          "example": 2,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Aluguel"
                        },
                        "color": {
                          "type": "string",
                          "example": "danger"
                        },
                        "belongs": {
                          "type": "integer",
                          "example": 1,
                          "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    \"name\": \"O campo name é obrigatório.\",\n    \"belongs\": \"O campo belongs é 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": {
                        "name": {
                          "type": "string",
                          "example": "O campo name é obrigatório."
                        },
                        "belongs": {
                          "type": "string",
                          "example": "O campo belongs é obrigatório."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```