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

# Listar instâncias

Endpoint utilizado para listar instâncias

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Gestão das Instâncias",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.chatpro.com.br/painel/ws/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "token_de_acesso"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/endpoint.php?action=instancias": {
      "get": {
        "summary": "Listar instâncias",
        "description": "Endpoint utilizado para listar instâncias",
        "operationId": "listar-instâncias",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"success\": false,\n    \"message\": \"JWT inválido\"\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string",
                          "example": "contato@wlib.com.br"
                        }
                      }
                    },
                    "instances": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "example": "Carboss"
                          },
                          "code": {
                            "type": "string",
                            "example": "chatpro-7562ak2l6r"
                          },
                          "token": {
                            "type": "string",
                            "example": "df6f7375e0bc9fff5e7c1e9341713cd6d8cbd2be"
                          },
                          "webhook": {
                            "type": "string",
                            "example": "https://webhook.site/c5085799-447b-4c4c-97e2-7d2141a3a5a7"
                          },
                          "endpoint": {
                            "type": "string",
                            "example": "https://kosmos.chatpro.com.br/chatpro-7562ak2l6r"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "636eaad36d47360012717d91:636eac6c41cf6d00aed74071"
}
```