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

# Adicionar atividade

*Endpoint* utilizado para **criar uma nova atividade** na conta do CRM de vendas 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": {
    "/activities": {
      "post": {
        "summary": "Adicionar atividade",
        "description": "",
        "operationId": "adicionar-atividade",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "activity_type_id",
                  "status",
                  "owner_id"
                ],
                "properties": {
                  "activity_type_id": {
                    "type": "integer",
                    "description": "ID do tipo de atividade",
                    "format": "int32"
                  },
                  "status": {
                    "type": "integer",
                    "description": "Status da atividade (0= aberta / 2= concluída / 4= no-show)",
                    "default": 0,
                    "format": "int32"
                  },
                  "owner_id": {
                    "type": "integer",
                    "description": "ID do usuário responsável pela atividade",
                    "format": "int32"
                  },
                  "deal_id": {
                    "type": "integer",
                    "description": "ID da oportunidade vinculada a atividade",
                    "format": "int32"
                  },
                  "requester_id": {
                    "type": "integer",
                    "description": "ID do usuário que criou a atividade",
                    "format": "int32"
                  },
                  "title": {
                    "type": "string",
                    "description": "Título da atividade"
                  },
                  "description": {
                    "type": "string",
                    "description": "Descrição da atividade"
                  },
                  "comment": {
                    "type": "string",
                    "description": "Comentário de conclusão da atividade"
                  },
                  "appearin_link": {
                    "type": "string",
                    "description": "Link da sala de videoconferência vinculado a atividade"
                  },
                  "duration": {
                    "type": "integer",
                    "description": "Duração em minutos da atividade",
                    "format": "int32"
                  },
                  "start_at": {
                    "type": "string",
                    "description": "Adiciona a data e hora de início da atividade. É possível informar data (nos formatos DD-MM-AAAA ou AAAA-MM-DD) ou data e hora (DD-MM-AAAA HH:MM:SS ou AAAA-MM-DD HH:MM:SS)",
                    "format": "date"
                  },
                  "delivery_date": {
                    "type": "string",
                    "description": "Adiciona a data e hora de conclusão da atividade. É possível informar data (nos formatos DD-MM-AAAA ou AAAA-MM-DD) ou data e hora (DD-MM-AAAA HH:MM:SS ou AAAA-MM-DD HH:MM:SS)",
                    "format": "date"
                  },
                  "end_at": {
                    "type": "string",
                    "description": "Adiciona a data e hora de término da atividade. É possível informar data (nos formatos DD-MM-AAAA ou AAAA-MM-DD) ou data e hora (DD-MM-AAAA HH:MM:SS ou AAAA-MM-DD HH:MM:SS)",
                    "format": "date"
                  },
                  "reminders": {
                    "type": "array",
                    "description": "Array contendo um valor inteiro referente ao prazo (em minutos) para o disparo das notificações do início da atividade. O valor deve estar entre 5 e 10080 minutos.",
                    "items": {
                      "type": "integer",
                      "format": "int32"
                    }
                  },
                  "persons": {
                    "type": "array",
                    "description": "Array contendo um objeto referente a chave e valor do ID das pessoas envolvidas na atividade.",
                    "items": {
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "ID do usuário.",
                          "format": "int32"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "companies": {
                    "type": "array",
                    "description": "Array contendo um objeto referente a chave e valor do ID das empresas envolvidas na atividade.",
                    "items": {
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "ID do usuário.",
                          "format": "int32"
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "activity_type_id": 121380,
                    "status": 0,
                    "account_id": 14772,
                    "owner_id": 64911,
                    "title": "Lembrete",
                    "start_at": "2023-02-13 14:58:00",
                    "duration": 30,
                    "reminders": [
                      "5"
                    ],
                    "persons": [
                      {
                        "id": 15551450
                      },
                      {
                        "id": 15552369
                      }
                    ],
                    "companies": [
                      {
                        "id": 8994657
                      },
                      {
                        "id": 8994655
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"sucess\": true,\n  \"message\": \"Created\",\n  \"data\": {\n    \"id\": 11458059,\n    \"status\": 0,\n    \"google_calendar_id\": 1,\n    \"outlook_calendar_id\": 1,\n    \"project_id\": 1,\n    \"appointment_id\": 1,\n    \"activity_type_id\": 73064,\n    \"activity_type\": 73064,\n    \"owner_id\": 42001,\n    \"account_id\": 11028,\n    \"deal_id\": 10836111,\n    \"working\": true,\n    \"time_utilized\": 1,\n    \"time_estimated\": 1,\n    \"duration\": 60,\n    \"priority\": 3,\n    \"type\": 5,\n    \"requester_id\": 42001,\n    \"title\": \"Reunião com cliente x\",\n    \"description\": \"Encontrar cliente x para discutir sobre a proposta\",\n    \"hash\": \"\",\n    \"comment\": \"\",\n    \"appearin_link\": \"\",\n    \"order\": 1,\n    \"lat\": 0,\n    \"lng\": 0,\n    \"delivery_date\": \"2021-11-11 09:48:00\",\n    \"start_at\": \"2021-08-10 16:00:00\",\n    \"end_at\": \"2021-08-10 17:00:00\",\n    \"internal_date\": \"2021-11-11 09:48:00\",\n    \"created_at\": \"2021-08-09 11:27:07\",\n    \"updated_at\": \"2021-08-09 11:27:07\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "sucess": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Created"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 11458059,
                          "default": 0
                        },
                        "status": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "google_calendar_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "outlook_calendar_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "project_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "appointment_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "activity_type_id": {
                          "type": "integer",
                          "example": 73064,
                          "default": 0
                        },
                        "activity_type": {
                          "type": "integer",
                          "example": 73064,
                          "default": 0
                        },
                        "owner_id": {
                          "type": "integer",
                          "example": 42001,
                          "default": 0
                        },
                        "account_id": {
                          "type": "integer",
                          "example": 11028,
                          "default": 0
                        },
                        "deal_id": {
                          "type": "integer",
                          "example": 10836111,
                          "default": 0
                        },
                        "working": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "time_utilized": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "time_estimated": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "duration": {
                          "type": "integer",
                          "example": 60,
                          "default": 0
                        },
                        "priority": {
                          "type": "integer",
                          "example": 3,
                          "default": 0
                        },
                        "type": {
                          "type": "integer",
                          "example": 5,
                          "default": 0
                        },
                        "requester_id": {
                          "type": "integer",
                          "example": 42001,
                          "default": 0
                        },
                        "title": {
                          "type": "string",
                          "example": "Reunião com cliente x"
                        },
                        "description": {
                          "type": "string",
                          "example": "Encontrar cliente x para discutir sobre a proposta"
                        },
                        "hash": {
                          "type": "string",
                          "example": ""
                        },
                        "comment": {
                          "type": "string",
                          "example": ""
                        },
                        "appearin_link": {
                          "type": "string",
                          "example": ""
                        },
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "lat": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "lng": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "delivery_date": {
                          "type": "string",
                          "example": "2021-11-11 09:48:00"
                        },
                        "start_at": {
                          "type": "string",
                          "example": "2021-08-10 16:00:00"
                        },
                        "end_at": {
                          "type": "string",
                          "example": "2021-08-10 17:00:00"
                        },
                        "internal_date": {
                          "type": "string",
                          "example": "2021-11-11 09:48:00"
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2021-08-09 11:27:07"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2021-08-09 11:27:07"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "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    \"activity_type_id\": \"O campo activity_type_id é 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": {
                        "activity_type_id": {
                          "type": "string",
                          "example": "O campo activity_type_id é obrigatório."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```