---
agentTools:
  projectIndex: https://piperun-atendimentos.readme.io/llms.txt
---

# Listar canais do Messenger

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Versão 1.0",
    "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/messenger_channels": {
      "get": {
        "summary": "Listar canais do Messenger",
        "description": "",
        "operationId": "listar-canais-do-messenger",
        "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"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[\n  {\n    \"id\": 1,\n    \"description\": \"Messenger 5Hub\",\n    \"facebook_page_id\": \"1234567890987654321\",\n    \"token\": \"******************************\",\n    \"url_profile\": \"FiveHub\",\n    \"is_active\": false,\n    \"bot_id\": 13,\n    \"business_id\": null\n  },\n  {\n    \"id\": 2,\n    \"description\": \"Messenger Teste\",\n    \"facebook_page_id\": \"9876543210123456789\",\n    \"token\": \"******************************\",\n    \"url_profile\": \"FiveHub.Teste\",\n    \"is_active\": false,\n    \"bot_id\": null,\n    \"business_id\": null\n  }\n]"
                  }
                },
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "example": 1,
                        "default": 0
                      },
                      "description": {
                        "type": "string",
                        "example": "Messenger 5Hub"
                      },
                      "facebook_page_id": {
                        "type": "string",
                        "example": "1234567890987654321"
                      },
                      "token": {
                        "type": "string",
                        "example": "******************************"
                      },
                      "url_profile": {
                        "type": "string",
                        "example": "FiveHub"
                      },
                      "is_active": {
                        "type": "boolean",
                        "example": false,
                        "default": true
                      },
                      "bot_id": {
                        "type": "integer",
                        "example": 13,
                        "default": 0
                      },
                      "business_id": {}
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"Invalid token.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid token."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --request GET \\\n     --url https://{subdominio}.cxm.pipe.run/api/messenger_channels \\\n     --header 'Accept: application/json' \\\n     --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNCIsImp0aSI6IjYxZTUyYzQxYmNlY2IyNDMzYTI0NDk5NzM3YWJhMjgyZjUzYmUyMmM0NjVlMTc0MjhlMmVmMmQzMTE0MjA2NWM3NWM0YWI1NGE4YjhmOGE3IiwiaWF0IjoxNjczNTQ4NDIxLjUxNjAwOSwibmJmIjoxNjczNTQ4NDIxLjUxNjAxMywiZXhwIjoxNjczNjM0ODIxLjQ5NjI0NSwic3ViIjoiMjAiLCJzY29wZXMiOltdfQ.mz0DFbyE75_QLf2wLBAxQVEpRjfjLW4dCl0c-M4cFTuWRfihxoIcfSbMADX_zgON-wdCjwMjQInVzG6Fkf_VaSi0UTTAFuFRaYGbuRj-N43a4YJ_8sAReOLRzJ_2ENKSMgq_BrTKHTuxQ6UukaGaMwx4cyczSZp04CTgCFEDOLdDAuTVsNQQwNkkQDdbJYEoPCoQEcH72sGj_m86Y2VXNi2PxhnKTPXcx0Zzbp_st5vlHHrn5rWkgSoQkobo_EhMdT2ryQKyHHXC6p905FYHj3a8ZNfpRllOzHYQlTOlYPluDZUPC7LBpF9JIsLVVUo3Qp9KTmBNB_aoJK1i9u0WjGzVF3lhCTP_hVL2FBsYu4zObFt-s364qW1yNOly7gn7lcfiXd1yV1tT3TdnaI-Mt0pZ8Xzl44yWlFlXIzhz_XmtjGjTO8rwH4WhjdDBlLUpHcLdkMP2DB_5bfUCjKIETj9XdbOmPVm_PsTBEgw---RvasdC__Egk8B6ARp1NDJZO4BAHVNczL2-KC022GNt5yBi34lBLMweNQd8g6yXVxtEpA0-N31nSy--XoHpTUYl9zmRyEkXecFYWwf88ttXVA-_pukAkT3V2XhTI_kR8EnfVH0xN3VAIt7DhG1o5U1ptGXLchPeDvHf2E_ycwEe1RDJ-jCjgUYnbhDD31seTOM' \\\n     --header 'Content-Type: application/json'",
              "name": "200 - OK"
            }
          ],
          "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,
  "_id": "639b9eee56a9f8002b83200b:63c0611c33c2a108d0e604f9"
}
```