{
  "info": {
    "name": "facilita.tools API v1",
    "description": "Coleção completa da API REST facilita.tools — CPF, CNPJ, CEP, PIX, NFe, Moedas, Calculadoras e Utilitários.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      { "key": "key", "value": "X-Api-Key", "type": "string" },
      { "key": "value", "value": "{{api_key}}", "type": "string" },
      { "key": "in", "value": "header", "type": "string" }
    ]
  },
  "variable": [
    { "key": "base_url", "value": "https://facilita.tools", "type": "string" },
    { "key": "api_key", "value": "YOUR_API_KEY_HERE", "type": "string" }
  ],
  "item": [
    {
      "name": "CPF",
      "item": [
        {
          "name": "Validate CPF",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"cpf\": \"12345678909\" }" },
            "url": { "raw": "{{base_url}}/api/v1/cpf/validate", "host": ["{{base_url}}"], "path": ["api", "v1", "cpf", "validate"] }
          }
        },
        {
          "name": "Generate CPFs",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/cpf/generate?quantity=5&formatted=true", "host": ["{{base_url}}"], "path": ["api", "v1", "cpf", "generate"], "query": [{ "key": "quantity", "value": "5" }, { "key": "formatted", "value": "true" }] }
          }
        }
      ]
    },
    {
      "name": "CNPJ",
      "item": [
        {
          "name": "Validate CNPJ",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"cnpj\": \"11222333000181\" }" },
            "url": { "raw": "{{base_url}}/api/v1/cnpj/validate", "host": ["{{base_url}}"], "path": ["api", "v1", "cnpj", "validate"] }
          }
        },
        {
          "name": "Generate CNPJs",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/cnpj/generate?quantity=5&formatted=true", "host": ["{{base_url}}"], "path": ["api", "v1", "cnpj", "generate"], "query": [{ "key": "quantity", "value": "5" }, { "key": "formatted", "value": "true" }] }
          }
        }
      ]
    },
    {
      "name": "CNPJ Alphanumeric",
      "item": [
        {
          "name": "Validate Alphanumeric CNPJ",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"cnpj\": \"12ABC34501DE35\" }" },
            "url": { "raw": "{{base_url}}/api/v1/cnpj-alphanumeric/validate", "host": ["{{base_url}}"], "path": ["api", "v1", "cnpj-alphanumeric", "validate"] }
          }
        },
        {
          "name": "Generate Alphanumeric CNPJs",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/cnpj-alphanumeric/generate?quantity=3", "host": ["{{base_url}}"], "path": ["api", "v1", "cnpj-alphanumeric", "generate"], "query": [{ "key": "quantity", "value": "3" }] }
          }
        }
      ]
    },
    {
      "name": "CNPJ Lookup",
      "item": [
        {
          "name": "Lookup CNPJ",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/cnpj/lookup/11222333000181", "host": ["{{base_url}}"], "path": ["api", "v1", "cnpj", "lookup", "11222333000181"] }
          }
        }
      ]
    },
    {
      "name": "CEP",
      "item": [
        {
          "name": "Lookup CEP",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/cep/01001000", "host": ["{{base_url}}"], "path": ["api", "v1", "cep", "01001000"] }
          }
        }
      ]
    },
    {
      "name": "Currency",
      "item": [
        {
          "name": "Convert Currency",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/currency/convert?from=USD&to=BRL&amount=100", "host": ["{{base_url}}"], "path": ["api", "v1", "currency", "convert"], "query": [{ "key": "from", "value": "USD" }, { "key": "to", "value": "BRL" }, { "key": "amount", "value": "100" }] }
          }
        },
        {
          "name": "List Currencies",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/currency/currencies", "host": ["{{base_url}}"], "path": ["api", "v1", "currency", "currencies"] }
          }
        }
      ]
    },
    {
      "name": "PIX",
      "item": [
        {
          "name": "Validate PIX Key",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"key\": \"12345678909\" }" },
            "url": { "raw": "{{base_url}}/api/v1/pix/validate", "host": ["{{base_url}}"], "path": ["api", "v1", "pix", "validate"] }
          }
        },
        {
          "name": "Generate PIX Key (EVP)",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/pix/generate/evp?quantity=3", "host": ["{{base_url}}"], "path": ["api", "v1", "pix", "generate", "evp"], "query": [{ "key": "quantity", "value": "3" }] }
          }
        }
      ]
    },
    {
      "name": "NFe",
      "item": [
        {
          "name": "Validate NFe Key",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"key\": \"35240612345678000195550010000000011000000017\" }" },
            "url": { "raw": "{{base_url}}/api/v1/nfe/validate", "host": ["{{base_url}}"], "path": ["api", "v1", "nfe", "validate"] }
          }
        },
        {
          "name": "Generate NFe Key",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"uf\": 35, \"yearMonth\": \"2406\", \"cnpj\": \"12345678000195\", \"model\": 55, \"series\": 1, \"number\": 1, \"emissionType\": 1 }" },
            "url": { "raw": "{{base_url}}/api/v1/nfe/generate", "host": ["{{base_url}}"], "path": ["api", "v1", "nfe", "generate"] }
          }
        }
      ]
    },
    {
      "name": "Utils",
      "item": [
        {
          "name": "Generate Password",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"length\": 16, \"quantity\": 3, \"uppercase\": true, \"lowercase\": true, \"numbers\": true, \"symbols\": true }" },
            "url": { "raw": "{{base_url}}/api/v1/utils/password/generate", "host": ["{{base_url}}"], "path": ["api", "v1", "utils", "password", "generate"] }
          }
        },
        {
          "name": "Count Text",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"text\": \"The quick brown fox jumps over the lazy dog.\" }" },
            "url": { "raw": "{{base_url}}/api/v1/utils/text/count", "host": ["{{base_url}}"], "path": ["api", "v1", "utils", "text", "count"] }
          }
        },
        {
          "name": "Convert Text Case",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"text\": \"the quick brown fox\", \"mode\": \"upper\" }" },
            "url": { "raw": "{{base_url}}/api/v1/utils/text/convert", "host": ["{{base_url}}"], "path": ["api", "v1", "utils", "text", "convert"] }
          }
        },
        {
          "name": "Convert Number Base",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"value\": \"255\", \"fromBase\": 10, \"toBase\": 16 }" },
            "url": { "raw": "{{base_url}}/api/v1/utils/number-base/convert", "host": ["{{base_url}}"], "path": ["api", "v1", "utils", "number-base", "convert"] }
          }
        },
        {
          "name": "Roman Numerals",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/utils/roman?number=42", "host": ["{{base_url}}"], "path": ["api", "v1", "utils", "roman"], "query": [{ "key": "number", "value": "42" }] }
          }
        }
      ]
    },
    {
      "name": "Calculators",
      "item": [
        {
          "name": "Calculate BMI",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"weight\": 75, \"height\": 1.75 }" },
            "url": { "raw": "{{base_url}}/api/v1/calc/bmi", "host": ["{{base_url}}"], "path": ["api", "v1", "calc", "bmi"] }
          }
        },
        {
          "name": "Percentage (X% of Y)",
          "request": {
            "method": "GET",
            "url": { "raw": "{{base_url}}/api/v1/calc/percentage?percent=15&of=200", "host": ["{{base_url}}"], "path": ["api", "v1", "calc", "percentage"], "query": [{ "key": "percent", "value": "15" }, { "key": "of", "value": "200" }] }
          }
        },
        {
          "name": "Calculate Hours",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"startTime\": \"08:00\", \"endTime\": \"17:00\", \"lunchMinutes\": 60 }" },
            "url": { "raw": "{{base_url}}/api/v1/calc/hours", "host": ["{{base_url}}"], "path": ["api", "v1", "calc", "hours"] }
          }
        },
        {
          "name": "Calculate Net Salary",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"grossSalary\": 5000, \"dependents\": 1 }" },
            "url": { "raw": "{{base_url}}/api/v1/calc/net-salary", "host": ["{{base_url}}"], "path": ["api", "v1", "calc", "net-salary"] }
          }
        },
        {
          "name": "Calculate DAS MEI",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{ \"activityType\": \"commerce\" }" },
            "url": { "raw": "{{base_url}}/api/v1/calc/das-mei", "host": ["{{base_url}}"], "path": ["api", "v1", "calc", "das-mei"] }
          }
        }
      ]
    }
  ]
}
