---
updatedAt: 2026-10-23T12:38:20.000Z
agentTools:
  projectIndex: https://piperun-atendimentos.readme.io/llms.txt
---

# Listar carteiras

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "versão-10",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdominio}.cxm.pipe.run",
      "variables": {
        "subdominio": {
          "default": "subdominio"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/cards": {
      "get": {
        "summary": "Listar carteiras",
        "description": "",
        "operationId": "listar-carteiras",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Campo para pesquisa simples ou dinâmica. <br><br><b>Pesquisa simples:</b> Valor para procurar.<br><br><b>Pesquisa dinâmica:</b> Formato [campo:valor]<br><br><b>Campos permitidos:</b><ul><li>id (ID da carteira)</li><li>product_id (ID do produto)</li></ul><b>Ex:</b> id:1",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchFields",
            "in": "query",
            "description": "Nome do campo para pesquisar.<br>Utilizado apenas na pesquisa simples, na pesquisa dinâmica este parâmetro é ignorado.",
            "schema": {
              "type": "string",
              "enum": [
                "id",
                "product_id"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Listar todas as carteiras": {
                    "value": "[\n  {\n    \"id\": 7,\n    \"description\": \"Administrativo\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Administrativo\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  },\n  {\n    \"id\": 5,\n    \"description\": \"Comercial\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Comercial\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  },\n  {\n    \"id\": 4,\n    \"description\": \"Desenvolvimento\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Desenvolvimento\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  },\n  {\n    \"id\": 6,\n    \"description\": \"Suporte\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Suporte\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  },\n  {\n    \"id\": 15,\n    \"description\": \"Atendimento\",\n    \"product_id\": 7,\n    \"full_description\": \"Internet Residencial -> Atendimento\",\n    \"product\": {\n      \"id\": 7,\n      \"description\": \"Internet Residencial\",\n      \"email\": null\n    }\n  },\n  {\n    \"id\": 12,\n    \"description\": \"Administrativo\",\n    \"product_id\": 3,\n    \"full_description\": \"MSVox -> Administrativo\",\n    \"product\": {\n      \"id\": 3,\n      \"description\": \"MSVox\",\n      \"email\": \"suporte@msvox.com.br\"\n    }\n  },\n  {\n    \"id\": 1,\n    \"description\": \"Comercial\",\n    \"product_id\": 3,\n    \"full_description\": \"MSVox -> Comercial\",\n    \"product\": {\n      \"id\": 3,\n      \"description\": \"MSVox\",\n      \"email\": \"suporte@msvox.com.br\"\n    }\n  },\n  {\n    \"id\": 3,\n    \"description\": \"Financeiro\",\n    \"product_id\": 3,\n    \"full_description\": \"MSVox -> Financeiro\",\n    \"product\": {\n      \"id\": 3,\n      \"description\": \"MSVox\",\n      \"email\": \"suporte@msvox.com.br\"\n    }\n  },\n  {\n    \"id\": 2,\n    \"description\": \"Suporte\",\n    \"product_id\": 3,\n    \"full_description\": \"MSVox -> Suporte\",\n    \"product\": {\n      \"id\": 3,\n      \"description\": \"MSVox\",\n      \"email\": \"suporte@msvox.com.br\"\n    }\n  },\n  {\n    \"id\": 9,\n    \"description\": \"Administrativo\",\n    \"product_id\": 4,\n    \"full_description\": \"Native -> Administrativo\",\n    \"product\": {\n      \"id\": 4,\n      \"description\": \"Native\",\n      \"email\": null\n    }\n  },\n  {\n    \"id\": 8,\n    \"description\": \"Comercial\",\n    \"product_id\": 4,\n    \"full_description\": \"Native -> Comercial\",\n    \"product\": {\n      \"id\": 4,\n      \"description\": \"Native\",\n      \"email\": null\n    }\n  },\n  {\n    \"id\": 10,\n    \"description\": \"Suporte\",\n    \"product_id\": 4,\n    \"full_description\": \"Native -> Suporte\",\n    \"product\": {\n      \"id\": 4,\n      \"description\": \"Native\",\n      \"email\": null\n    }\n  },\n  {\n    \"id\": 11,\n    \"description\": \"Suporte\",\n    \"product_id\": 1,\n    \"full_description\": \"XCode IT -> Suporte\",\n    \"product\": {\n      \"id\": 1,\n      \"description\": \"XCode IT\",\n      \"email\": null\n    }\n  },\n  {\n    \"id\": 14,\n    \"description\": \"Carteira-teste\",\n    \"product_id\": 6,\n    \"full_description\": \"produto teste -> Carteira-teste\",\n    \"product\": {\n      \"id\": 6,\n      \"description\": \"produto teste\",\n      \"email\": null\n    }\n  }\n]"
                  },
                  "Filtrar carteiras usando pesquisa simples": {
                    "value": "[\n  {\n    \"id\": 5,\n    \"description\": \"Comercial\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Comercial\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  }\n]"
                  },
                  "Filtrar carteiras usando pesquisa dinâmica": {
                    "value": "[\n  {\n    \"id\": 7,\n    \"description\": \"Administrativo\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Administrativo\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  },\n  {\n    \"id\": 5,\n    \"description\": \"Comercial\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Comercial\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  },\n  {\n    \"id\": 4,\n    \"description\": \"Desenvolvimento\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Desenvolvimento\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  },\n  {\n    \"id\": 6,\n    \"description\": \"Suporte\",\n    \"product_id\": 2,\n    \"full_description\": \"5Hub -> Suporte\",\n    \"product\": {\n      \"id\": 2,\n      \"description\": \"5Hub\",\n      \"email\": \"suporte@5hub.com.br\"\n    }\n  }\n]"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Listar todas as carteiras",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 7,
                            "default": 0
                          },
                          "description": {
                            "type": "string",
                            "example": "Administrativo"
                          },
                          "product_id": {
                            "type": "integer",
                            "example": 2,
                            "default": 0
                          },
                          "full_description": {
                            "type": "string",
                            "example": "5Hub -> Administrativo"
                          },
                          "product": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 2,
                                "default": 0
                              },
                              "description": {
                                "type": "string",
                                "example": "5Hub"
                              },
                              "email": {
                                "type": "string",
                                "example": "suporte@5hub.com.br"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Filtrar carteiras usando pesquisa simples",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 5,
                            "default": 0
                          },
                          "description": {
                            "type": "string",
                            "example": "Comercial"
                          },
                          "product_id": {
                            "type": "integer",
                            "example": 2,
                            "default": 0
                          },
                          "full_description": {
                            "type": "string",
                            "example": "5Hub -> Comercial"
                          },
                          "product": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 2,
                                "default": 0
                              },
                              "description": {
                                "type": "string",
                                "example": "5Hub"
                              },
                              "email": {
                                "type": "string",
                                "example": "suporte@5hub.com.br"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Filtrar carteiras usando pesquisa dinâmica",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 7,
                            "default": 0
                          },
                          "description": {
                            "type": "string",
                            "example": "Administrativo"
                          },
                          "product_id": {
                            "type": "integer",
                            "example": 2,
                            "default": 0
                          },
                          "full_description": {
                            "type": "string",
                            "example": "5Hub -> Administrativo"
                          },
                          "product": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 2,
                                "default": 0
                              },
                              "description": {
                                "type": "string",
                                "example": "5Hub"
                              },
                              "email": {
                                "type": "string",
                                "example": "suporte@5hub.com.br"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"Invalid token.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid token."
                    }
                  }
                }
              }
            }
          }
        },
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --request GET \\\n     --url https://{subdominio}.cxm.pipe.run/api/cards \\\n     --header 'Accept: application/json' \\\n     --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNCIsImp0aSI6ImFiNDIyNzkzNDA2MjhmM2MyMWQwMmVjM2ZlNmQxNzI4ZGYwZmNlYjllYzYzMmZhODIzNmEwMTI2ZTYzOThiYzkyMGViYjA1ZDQwZDdjYzU3IiwiaWF0IjoxNjczMjc0MDEzLjM2MDIyOCwibmJmIjoxNjczMjc0MDEzLjM2MDIzMywiZXhwIjoxNjczMzYwNDEzLjMwMjgwMSwic3ViIjoiMjAiLCJzY29wZXMiOltdfQ.Ukiiyhj9qVK0CYR7VOSBlSA6EGjAIkiWnt0C3z6r1acRF1nsbDKmpaZivoIn_YvXe1kCRAfqBL9CJaJSplfIqEWU15LbDW2tYIf4-YQSOUyKP7wz4CQIhMSESFa6GfRBpoSbNRzo0WLxVCJb3AMWDF0jVVJ0MLV-xOcGJN4CvypNRbKAn6V2DZqOZAXllfbw85Pbn2omN3ob7XM4v4oxT8pcnwp2PZPPJzwUMWahKMwQ3JW7EkdFzMoCiQBAP-y7KSERKcfj4b9-2YLVyoS5rUV4qWMSdGuIuO8fjOjkpj9pQabkA3e5uouw9jU7b9k7pwQXbXIuNKU2wIqoknFr3aPPGPHKYw1dfKANGZyadguPH3rZSfmkzdeWt9a3weBV1VANP0suPx8SzlJ_jz81JJhEu7gSVDeHhFP7QrWfQE1RLj5IMRS2ubWwFSCp1xXlgeOFPhtS1wzjF3C5s9RUdeGu43wmK26igxl_Gy6_3X5xqvLTS0am1kQ5uNgxdlujgjAwahn3SEwJgTw0pq-gNEbLvalkNJKPDUUBS6-XqavLx8kkLG4SBcu1_2ZoT7g-HFMJkKs-JM0rpxlshorgKXhbRUwQcRt5CgP93UooCsa1s6eCNfrk8nyIfddPpZsuDACsP8rBwujlUfAKDimidzkjXPeTnbRZb68ziiQOulw' \\\n     --header 'Content-Type: application/json'",
              "name": "Listar todas as carteiras"
            },
            {
              "language": "curl",
              "code": "curl --request GET \\\n     --url 'https://{subdominio}.cxm.pipe.run/api/cards?search=5&searchFields=id' \\\n     --header 'Accept: application/json' \\\n     --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNCIsImp0aSI6ImFiNDIyNzkzNDA2MjhmM2MyMWQwMmVjM2ZlNmQxNzI4ZGYwZmNlYjllYzYzMmZhODIzNmEwMTI2ZTYzOThiYzkyMGViYjA1ZDQwZDdjYzU3IiwiaWF0IjoxNjczMjc0MDEzLjM2MDIyOCwibmJmIjoxNjczMjc0MDEzLjM2MDIzMywiZXhwIjoxNjczMzYwNDEzLjMwMjgwMSwic3ViIjoiMjAiLCJzY29wZXMiOltdfQ.Ukiiyhj9qVK0CYR7VOSBlSA6EGjAIkiWnt0C3z6r1acRF1nsbDKmpaZivoIn_YvXe1kCRAfqBL9CJaJSplfIqEWU15LbDW2tYIf4-YQSOUyKP7wz4CQIhMSESFa6GfRBpoSbNRzo0WLxVCJb3AMWDF0jVVJ0MLV-xOcGJN4CvypNRbKAn6V2DZqOZAXllfbw85Pbn2omN3ob7XM4v4oxT8pcnwp2PZPPJzwUMWahKMwQ3JW7EkdFzMoCiQBAP-y7KSERKcfj4b9-2YLVyoS5rUV4qWMSdGuIuO8fjOjkpj9pQabkA3e5uouw9jU7b9k7pwQXbXIuNKU2wIqoknFr3aPPGPHKYw1dfKANGZyadguPH3rZSfmkzdeWt9a3weBV1VANP0suPx8SzlJ_jz81JJhEu7gSVDeHhFP7QrWfQE1RLj5IMRS2ubWwFSCp1xXlgeOFPhtS1wzjF3C5s9RUdeGu43wmK26igxl_Gy6_3X5xqvLTS0am1kQ5uNgxdlujgjAwahn3SEwJgTw0pq-gNEbLvalkNJKPDUUBS6-XqavLx8kkLG4SBcu1_2ZoT7g-HFMJkKs-JM0rpxlshorgKXhbRUwQcRt5CgP93UooCsa1s6eCNfrk8nyIfddPpZsuDACsP8rBwujlUfAKDimidzkjXPeTnbRZb68ziiQOulw' \\\n     --header 'Content-Type: application/json'",
              "name": "Filtrar carteiras usando pesquisa simples"
            },
            {
              "language": "curl",
              "code": "curl --request GET \\\n     --url 'https://{subdominio}.cxm.pipe.run/api/cards?search=product_id%3A2' \\\n     --header 'Accept: application/json' \\\n     --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNCIsImp0aSI6ImFiNDIyNzkzNDA2MjhmM2MyMWQwMmVjM2ZlNmQxNzI4ZGYwZmNlYjllYzYzMmZhODIzNmEwMTI2ZTYzOThiYzkyMGViYjA1ZDQwZDdjYzU3IiwiaWF0IjoxNjczMjc0MDEzLjM2MDIyOCwibmJmIjoxNjczMjc0MDEzLjM2MDIzMywiZXhwIjoxNjczMzYwNDEzLjMwMjgwMSwic3ViIjoiMjAiLCJzY29wZXMiOltdfQ.Ukiiyhj9qVK0CYR7VOSBlSA6EGjAIkiWnt0C3z6r1acRF1nsbDKmpaZivoIn_YvXe1kCRAfqBL9CJaJSplfIqEWU15LbDW2tYIf4-YQSOUyKP7wz4CQIhMSESFa6GfRBpoSbNRzo0WLxVCJb3AMWDF0jVVJ0MLV-xOcGJN4CvypNRbKAn6V2DZqOZAXllfbw85Pbn2omN3ob7XM4v4oxT8pcnwp2PZPPJzwUMWahKMwQ3JW7EkdFzMoCiQBAP-y7KSERKcfj4b9-2YLVyoS5rUV4qWMSdGuIuO8fjOjkpj9pQabkA3e5uouw9jU7b9k7pwQXbXIuNKU2wIqoknFr3aPPGPHKYw1dfKANGZyadguPH3rZSfmkzdeWt9a3weBV1VANP0suPx8SzlJ_jz81JJhEu7gSVDeHhFP7QrWfQE1RLj5IMRS2ubWwFSCp1xXlgeOFPhtS1wzjF3C5s9RUdeGu43wmK26igxl_Gy6_3X5xqvLTS0am1kQ5uNgxdlujgjAwahn3SEwJgTw0pq-gNEbLvalkNJKPDUUBS6-XqavLx8kkLG4SBcu1_2ZoT7g-HFMJkKs-JM0rpxlshorgKXhbRUwQcRt5CgP93UooCsa1s6eCNfrk8nyIfddPpZsuDACsP8rBwujlUfAKDimidzkjXPeTnbRZb68ziiQOulw' \\\n     --header 'Content-Type: application/json'",
              "name": "Filtrar carteiras usando pesquisa dinâmica"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Accept",
        "value": "application/json"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```