{
  "info": {
    "name": "EventJobs Partner API",
    "description": "ATS / job-board collection. Set apiKey and apiSecret. Guide: {{baseUrl}}/developers",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://event.jobs" },
    { "key": "apiBase", "value": "{{baseUrl}}/api/partner/v1" },
    { "key": "apiKey", "value": "" },
    { "key": "apiSecret", "value": "" },
    { "key": "externalId", "value": "ATS-DEMO-1" },
    { "key": "applicationId", "value": "1" }
  ],
  "item": [
    {
      "name": "Upsert job (native apply)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "X-Api-Key", "value": "{{apiKey}}" },
          { "key": "X-Api-Secret", "value": "{{apiSecret}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": "{{apiBase}}/jobs",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"@type\": \"JobPosting\",\n  \"identifier\": { \"value\": \"{{externalId}}\" },\n  \"title\": \"Régisseur plateau\",\n  \"description\": \"<p>Description HTML</p>\",\n  \"employmentType\": \"FULL_TIME\",\n  \"validThrough\": \"2026-12-31T23:59:59+01:00\",\n  \"hiringOrganization\": {\n    \"name\": \"Prod Events\",\n    \"sameAs\": \"https://prodevents.fr\",\n    \"email\": \"rh@prodevents.fr\"\n  },\n  \"jobLocation\": {\n    \"address\": {\n      \"addressLocality\": \"Lyon\",\n      \"postalCode\": \"69001\",\n      \"addressCountry\": \"FR\"\n    }\n  },\n  \"extensions\": {\n    \"applyMode\": \"native\",\n    \"romeCode\": \"L1509\",\n    \"contractCode\": \"CDD\",\n    \"jobStart\": \"2026-10-01\",\n    \"jobEnd\": \"2026-10-15\"\n  }\n}"
        }
      }
    },
    {
      "name": "Upsert job (redirect apply)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "X-Api-Key", "value": "{{apiKey}}" },
          { "key": "X-Api-Secret", "value": "{{apiSecret}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": "{{apiBase}}/jobs",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"@type\": \"JobPosting\",\n  \"identifier\": { \"value\": \"{{externalId}}-redirect\" },\n  \"title\": \"Hôte(sse) d'accueil\",\n  \"description\": \"<p>Description HTML</p>\",\n  \"employmentType\": \"TEMPORARY\",\n  \"validThrough\": \"2026-12-31T23:59:59+01:00\",\n  \"hiringOrganization\": {\n    \"name\": \"Prod Events\",\n    \"sameAs\": \"https://prodevents.fr\"\n  },\n  \"jobLocation\": {\n    \"address\": {\n      \"addressLocality\": \"Paris\",\n      \"postalCode\": \"75008\",\n      \"addressCountry\": \"FR\"\n    }\n  },\n  \"extensions\": {\n    \"applyMode\": \"redirect\",\n    \"applyUrl\": \"https://ats.example/apply/JOB-42\"\n  }\n}"
        }
      }
    },
    {
      "name": "Get job",
      "request": {
        "method": "GET",
        "header": [
          { "key": "X-Api-Key", "value": "{{apiKey}}" },
          { "key": "X-Api-Secret", "value": "{{apiSecret}}" }
        ],
        "url": "{{apiBase}}/jobs/{{externalId}}"
      }
    },
    {
      "name": "List applications",
      "request": {
        "method": "GET",
        "header": [
          { "key": "X-Api-Key", "value": "{{apiKey}}" },
          { "key": "X-Api-Secret", "value": "{{apiSecret}}" }
        ],
        "url": "{{apiBase}}/applications?external_id={{externalId}}"
      }
    },
    {
      "name": "Download application resume",
      "request": {
        "method": "GET",
        "header": [
          { "key": "X-Api-Key", "value": "{{apiKey}}" },
          { "key": "X-Api-Secret", "value": "{{apiSecret}}" }
        ],
        "url": "{{apiBase}}/applications/{{applicationId}}/resume"
      }
    }
  ]
}
