---
agentTools:
  projectIndex: https://atendare.readme.io/llms.txt
---

# Listar atividades

```json
GET - 200

{
  "total": 1,
  "page_index": 0,
  "page_size": 15,
  "results": [
    {
      "activitytype": {
        "id": 1,
        "name": "Email",
        "icon": "uil-envelope",
        "color": "#acce24",
        "status": 1,
        "type": 2,
        "author_id": 1,
        "creation_date": "2020-11-12T19:25:08Z",
        "update_date": "2021-02-17T17:29:37Z"
      },
      "author_id": 1,
      "author": {
        "id": 1,
        "detail": "Nome do autor",
        "type": 1,
        "user_id": 1
      },
      "author_done_id": 1,
      "author_done": {
        "id": 1,
        "detail": "Nome do autor",
        "type": 1,
        "user_id": 1
      },
      "id": 1,
      "event_id": 1,
      "activitytype_id": 1,
      "calendar_id": 1,
      "stage_id": 1,
      "name": "Email",
      "description": "Descrição da atividade",
      "status_desc": "Concluída sem sucesso",
      "location": "Av. Uruguai, 513 - Centro, Três de Maio - RS, 98910-000, Brasil",
      "meeting_link": "https://meet.google.com/",
      "start_date": "2022-08-10T21:00:00Z",
      "end_date": "2022-08-11T22:00:00Z",
      "conclusion_date": "2022-07-05T14:57:41Z",
      "duration": "1.01:00:00",
      "status": 5,
      "creation_date": "2022-06-21T19:40:06Z",
      "update_date": "2022-07-05T14:57:43Z"
    }
  ]
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Atendare API - v2",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.atendare.com/v2"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/activities": {
      "get": {
        "summary": "Listar atividades",
        "description": "",
        "operationId": "list-activities",
        "parameters": [
          {
            "name": "Access-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_index",
            "in": "query",
            "description": "Para paginação, representa o primeiro elemento da lista de produtos",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Para paginação, define o total de produtos que ira ser retornado em uma lista. O limite é 15",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 15
            }
          },
          {
            "name": "search_text",
            "in": "query",
            "description": "Termo usado para pesquisar",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort_order",
            "in": "query",
            "description": "Tipo de ordenação crescente (ASC) ou decrescente (DESC), o padrão é crescente",
            "schema": {
              "type": "string",
              "default": "asc"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "properties": {
                "condition": {
                  "type": "string",
                  "description": "Or - And"
                },
                "conditions": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "field": {
                        "type": "string",
                        "description": "Campo que você deseja filtrar"
                      },
                      "operation": {
                        "type": "string",
                        "enum": [
                          "equal",
                          "not_equal",
                          "less",
                          "less_or_equal",
                          "greater",
                          "greater_or_equal",
                          "begins_with",
                          "does_not_begin_with",
                          "is_in",
                          "is_not_in",
                          "ends_with",
                          "does_not_end_with",
                          "contains",
                          "does_not_contains",
                          "is_empty",
                          "is_not_empty",
                          "between",
                          "does_not_between"
                        ]
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                }
              },
              "type": "object"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"total\": 1,\n  \"page_index\": 0,\n  \"page_size\": 15,\n  \"results\": [\n    {\n      \"activitytype\": {\n        \"id\": 1,\n        \"name\": \"Email\",\n        \"icon\": \"uil-envelope\",\n        \"color\": \"#acce24\",\n        \"status\": 1,\n        \"type\": 2,\n        \"author_id\": 1,\n        \"creation_date\": \"2020-11-12T19:25:08Z\",\n        \"update_date\": \"2021-02-17T17:29:37Z\"\n      },\n      \"author_id\": 1,\n      \"author\": {\n        \"id\": 1,\n        \"detail\": \"Nome do autor\",\n        \"type\": 1,\n        \"user_id\": 1\n      },\n      \"author_done_id\": 1,\n      \"author_done\": {\n        \"id\": 1,\n        \"detail\": \"Nome do autor\",\n        \"type\": 1,\n        \"user_id\": 1\n      },\n      \"id\": 1,\n      \"event_id\": 1,\n      \"activitytype_id\": 1,\n      \"calendar_id\": 1,\n      \"stage_id\": 1,\n      \"name\": \"Email\",\n      \"description\": \"Descrição da atividade\",\n      \"status_desc\": \"Concluída sem sucesso\",\n      \"location\": \"Av. Uruguai, 513 - Centro, Três de Maio - RS, 98910-000, Brasil\",\n      \"meeting_link\": \"https://meet.google.com/\",\n      \"start_date\": \"2022-08-10T21:00:00Z\",\n      \"end_date\": \"2022-08-11T22:00:00Z\",\n      \"conclusion_date\": \"2022-07-05T14:57:41Z\",\n      \"duration\": \"1.01:00:00\",\n      \"status\": 5,\n      \"datetime_status\": 0,\n      \"datetime_status_today\": 0,\n      \"creation_date\": \"2022-06-21T19:40:06Z\",\n      \"update_date\": \"2022-07-05T14:57:43Z\"\n    }\n  ]\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "page_index": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "page_size": {
                      "type": "integer",
                      "example": 15,
                      "default": 0
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "activitytype": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Email"
                              },
                              "icon": {
                                "type": "string",
                                "example": "uil-envelope"
                              },
                              "color": {
                                "type": "string",
                                "example": "#acce24"
                              },
                              "status": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "type": {
                                "type": "integer",
                                "example": 2,
                                "default": 0
                              },
                              "author_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "creation_date": {
                                "type": "string",
                                "example": "2020-11-12T19:25:08Z"
                              },
                              "update_date": {
                                "type": "string",
                                "example": "2021-02-17T17:29:37Z"
                              }
                            }
                          },
                          "author_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "author": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "detail": {
                                "type": "string",
                                "example": "Nome do autor"
                              },
                              "type": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "user_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              }
                            }
                          },
                          "author_done_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "author_done": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "detail": {
                                "type": "string",
                                "example": "Nome do autor"
                              },
                              "type": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "user_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              }
                            }
                          },
                          "id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "event_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "activitytype_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "calendar_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "stage_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "name": {
                            "type": "string",
                            "example": "Email"
                          },
                          "description": {
                            "type": "string",
                            "example": "Descrição da atividade"
                          },
                          "status_desc": {
                            "type": "string",
                            "example": "Concluída sem sucesso"
                          },
                          "location": {
                            "type": "string",
                            "example": "Av. Uruguai, 513 - Centro, Três de Maio - RS, 98910-000, Brasil"
                          },
                          "meeting_link": {
                            "type": "string",
                            "example": "https://meet.google.com/"
                          },
                          "start_date": {
                            "type": "string",
                            "example": "2022-08-10T21:00:00Z"
                          },
                          "end_date": {
                            "type": "string",
                            "example": "2022-08-11T22:00:00Z"
                          },
                          "conclusion_date": {
                            "type": "string",
                            "example": "2022-07-05T14:57:41Z"
                          },
                          "duration": {
                            "type": "string",
                            "example": "1.01:00:00"
                          },
                          "status": {
                            "type": "integer",
                            "example": 5,
                            "default": 0
                          },
                          "datetime_status": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "datetime_status_today": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "creation_date": {
                            "type": "string",
                            "example": "2022-06-21T19:40:06Z"
                          },
                          "update_date": {
                            "type": "string",
                            "example": "2022-07-05T14:57:43Z"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61f3f7309a3abf0010b92516:62c6de9558b7cd00b4d16636"
}
```