{
  "info": {
    "name": "CIGAM — mcp.ai",
    "description": "REST API for the CIGAM MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/cigam",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "cigam_historico_nf",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/historico/nf",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "historico",
            "nf"
          ]
        },
        "description": "Histórico de uma nota fiscal (retornarHistoricoNF). `filtros` (JSON) com o identificador da NF.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filtros\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cigam_list_accounts",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/accounts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "accounts"
          ]
        },
        "description": "Lista as contas CIGAM conectadas a este install — id, label (instância/usuário).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cigam_obter_nfces",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/obter/nfces",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "obter",
            "nfces"
          ]
        },
        "description": "Obtém NFC-e (obternfces). `filtros` (JSON) pra período/loja.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filtros\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cigam_obter_notas_devolucao",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/obter/notas/devolucao",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "obter",
            "notas",
            "devolucao"
          ]
        },
        "description": "Obtém notas fiscais de devolução (obternotasfiscaisdevolucao). `filtros` (JSON).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filtros\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cigam_obter_notas_fiscais",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/obter/notas/fiscais",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "obter",
            "notas",
            "fiscais"
          ]
        },
        "description": "Obtém notas fiscais (obternotasfiscais). Use `filtros` (JSON) pra período/loja quando souber.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filtros\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cigam_obter_produto_estoque",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/obter/produto/estoque",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "obter",
            "produto",
            "estoque"
          ]
        },
        "description": "Consulta produto + saldo de estoque (ObterProdutoEstoque). `filtros` (JSON) pra código/loja.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filtros\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cigam_obter_produtos_reposicao",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/obter/produtos/reposicao",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "obter",
            "produtos",
            "reposicao"
          ]
        },
        "description": "Produtos para reposição de estoque (ObterProdutosParaReposicaoEstoque). `filtros` (JSON).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filtros\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cigam_pesquisar_fornecedor",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/pesquisar/fornecedor",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "pesquisar",
            "fornecedor"
          ]
        },
        "description": "Pesquisa fornecedores (fornecedor/pesquisar). `filtros` (JSON) com o termo/critério de busca.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"filtros\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}