{
  "info": {
    "name": "resumAI Public API",
    "description": "Starter Postman collection for the resumAI Developer API. Set the `baseUrl` and `apiKey` collection variables before running. Docs: https://resumai.eu/developers",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_postman_id": "resumai-collection-001"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://resumai.eu", "type": "string" },
    { "key": "apiKey", "value": "rsm_live_REPLACE_ME", "type": "string" },
    { "key": "assetId", "value": "00000000-0000-0000-0000-000000000000", "type": "string" }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      { "key": "token", "value": "{{apiKey}}", "type": "string" }
    ]
  },
  "item": [
    {
      "name": "Files",
      "item": [
        {
          "name": "Upload CV",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/files/upload",
              "host": ["{{baseUrl}}"],
              "path": ["api", "v1", "files", "upload"]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                { "key": "file", "type": "file", "src": [] },
                { "key": "tags", "value": "engineering", "type": "text" },
                { "key": "locale", "value": "en_US", "type": "text" }
              ]
            },
            "description": "Upload a CV (PDF / DOCX / image). Costs 1 credit. Returns the asset id and parent task id."
          }
        },
        {
          "name": "List assets",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/files/assets",
              "host": ["{{baseUrl}}"],
              "path": ["api", "v1", "files", "assets"]
            }
          }
        },
        {
          "name": "Get asset status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/files/assets/{{assetId}}/status",
              "host": ["{{baseUrl}}"],
              "path": ["api", "v1", "files", "assets", "{{assetId}}", "status"]
            }
          }
        }
      ]
    },
    {
      "name": "Data",
      "item": [
        {
          "name": "Get master data (parsed CV)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/data/master/{{assetId}}",
              "host": ["{{baseUrl}}"],
              "path": ["api", "v1", "data", "master", "{{assetId}}"]
            },
            "description": "Returns the normalized structured payload: contact, experience, education, skills, languages."
          }
        },
        {
          "name": "List display rows (paginated)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/data/display?page=1&page_size=25&mode=flat",
              "host": ["{{baseUrl}}"],
              "path": ["api", "v1", "data", "display"],
              "query": [
                { "key": "page", "value": "1" },
                { "key": "page_size", "value": "25" },
                { "key": "mode", "value": "flat" }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Demo (no auth)",
      "auth": { "type": "noauth" },
      "item": [
        {
          "name": "Parse CV (public, rate-limited)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/demo/parse",
              "host": ["{{baseUrl}}"],
              "path": ["api", "v1", "demo", "parse"]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                { "key": "file", "type": "file", "src": [] }
              ]
            },
            "description": "5 calls/hour per IP. No account required."
          }
        }
      ]
    }
  ]
}
