{
  "info": {
    "name": "Tiny (Olist Tiny) — mcp.ai",
    "description": "REST API for the Tiny (Olist Tiny) 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/tiny",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "tiny_create_contact",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/contact",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "contact"
          ]
        },
        "description": "Cadastra um contato (cliente/fornecedor) — contato.incluir.php. `data` é um JSON string com os campos do contato conforme a doc oficial (comuns: nome, tipoPessoa 'F'|'J', cpf_cnpj, email, fone, endere",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"data\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_get_contact",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/contact",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "contact"
          ]
        },
        "description": "Detalha um contato pelo `id` (contato.obter.php).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"account\": \"\",\n  \"ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_get_invoice",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/invoice",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "invoice"
          ]
        },
        "description": "Detalha uma nota fiscal pelo `id` (nota.fiscal.obter.php).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"account\": \"\",\n  \"ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_get_order",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/order",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "order"
          ]
        },
        "description": "Detalha um pedido pelo `id` (pedido.obter.php).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"account\": \"\",\n  \"ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_get_product",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/product",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "product"
          ]
        },
        "description": "Detalha um produto pelo `id` (produto.obter.php).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"account\": \"\",\n  \"ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_get_product_stock",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/product/stock",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "product",
            "stock"
          ]
        },
        "description": "Saldo de estoque de um produto pelo `id` (produto.obter.estoque.php).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"account\": \"\",\n  \"ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_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 empresas (CNPJ) Tiny conectadas a este install — id, label.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_list_contacts",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/contacts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "contacts"
          ]
        },
        "description": "Pesquisa contatos (contatos.pesquisa.php). Paginado. `search` busca por nome; `filters` (JSON) aceita cpf_cnpj, situacao, idVendedor etc.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"page\": 0,\n  \"filters\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_list_invoices",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/invoices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "invoices"
          ]
        },
        "description": "Pesquisa notas fiscais (notas.fiscais.pesquisa.php). Paginado. `filters` (JSON) aceita dataInicial/dataFinal (DD/MM/AAAA), situacao, numeroNota, cpf_cnpj etc.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"page\": 0,\n  \"filters\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_list_orders",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/orders",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "orders"
          ]
        },
        "description": "Pesquisa pedidos de venda (pedidos.pesquisa.php). Paginado. `filters` (JSON) aceita dataInicial/dataFinal (DD/MM/AAAA), situacao, numeroPedido, nomeCliente, cpf_cnpj etc.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"page\": 0,\n  \"filters\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_list_payables",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/payables",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "payables"
          ]
        },
        "description": "Lista contas a pagar (contas.pagar.pesquisa.php). Paginado. `filters` (JSON) aceita dataInicial/dataFinal (DD/MM/AAAA), situacao (aberto/pago), nomeCliente etc. Pareia com o Banco MCP na conciliação.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"page\": 0,\n  \"filters\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_list_products",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/products",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "products"
          ]
        },
        "description": "Pesquisa produtos (produtos.pesquisa.php). Paginado. Use `search` pra buscar por nome/código e `filters` (JSON) pra situacao, idCategoria, etc.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"page\": 0,\n  \"filters\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_list_receivables",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/receivables",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "receivables"
          ]
        },
        "description": "Lista contas a receber (contas.receber.pesquisa.php). Paginado. `filters` (JSON) aceita dataInicial/dataFinal (DD/MM/AAAA), situacao (aberto/recebido), nomeCliente etc.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"page\": 0,\n  \"filters\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tiny_list_sellers",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/sellers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "sellers"
          ]
        },
        "description": "Pesquisa vendedores (vendedores.pesquisa.php). Paginado. `search` busca por nome.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"page\": 0,\n  \"filters\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}