{
  "info": {
    "name": "Lekha API",
    "description": "Indian bank statement PDF to JSON. Set the collection variable apiKey to your key from https://lekhaapi.com/dashboard. Docs: https://lekhaapi.com/api-docs",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://lekhaapi.com"
    },
    {
      "key": "apiKey",
      "value": ""
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-API-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Parse a statement",
      "request": {
        "method": "POST",
        "url": "{{baseUrl}}/v1/statements",
        "description": "Upload a bank statement PDF. One credit per page, charged only on success. Leave password disabled unless the PDF is encrypted.",
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "file",
              "type": "file",
              "src": [],
              "description": "The statement PDF"
            },
            {
              "key": "password",
              "type": "text",
              "value": "",
              "disabled": true,
              "description": "Only for password-protected PDFs"
            }
          ]
        }
      }
    }
  ]
}
