PEPINO ZAPdocs
Referência da APIFluxos

Lista os fluxos

Ver como Markdown
GET
/v1/flows

Lista os fluxos de chatbot do Projeto (no modo da API key). Cada item traz a instancia vinculada, o gatilho e se esta ativo. So 1 fluxo pode ficar ATIVO por instancia.

Authorization

bearerAuth
AuthorizationBearer <token>

API key enviada como Authorization Bearer pzk_live_... ou pzk_test_...

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/flows"
{
  "items": [
    {
      "id": "string",
      "instanceId": "string",
      "name": "string",
      "triggerType": "any",
      "triggerValue": "string",
      "active": true
    }
  ]
}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "API key ausente ou invalida"
  }
}
{
  "error": {
    "code": "FORBIDDEN",
    "message": "Projeto inativo ou sem permissao"
  }
}