{
  "info": {
    "name": "Atlas Protect : opérations et exemples",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{api_key}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://dkovytuwmoktujoggkjx.supabase.co/functions/v1"
    },
    {
      "key": "api_key",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Liste des pays (1 crédit par appel)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-countries",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-countries"
          ],
          "query": []
        }
      }
    },
    {
      "name": "Fiche risque pays (10 crédits par appel)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-country-risk?country=TH",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-country-risk"
          ],
          "query": [
            {
              "key": "country",
              "value": "TH"
            }
          ]
        }
      }
    },
    {
      "name": "Niveau de sûreté (3 crédits par appel)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-security-score?country=TH",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-security-score"
          ],
          "query": [
            {
              "key": "country",
              "value": "TH"
            }
          ]
        }
      }
    },
    {
      "name": "entry_requirements",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-entry-requirements?country=TH&nationality=FR",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-entry-requirements"
          ],
          "query": [
            {
              "key": "country",
              "value": "TH"
            },
            {
              "key": "nationality",
              "value": "FR"
            }
          ]
        }
      }
    },
    {
      "name": "entry_changes",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-entry-requirements?changes_since=2026-10-01T00:00:00Z&limit=100",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-entry-requirements"
          ],
          "query": [
            {
              "key": "changes_since",
              "value": "2026-10-01T00:00:00Z"
            },
            {
              "key": "limit",
              "value": "100"
            }
          ]
        }
      }
    },
    {
      "name": "entry_health",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-entry-requirements?health=TH",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-entry-requirements"
          ],
          "query": [
            {
              "key": "health",
              "value": "TH"
            }
          ]
        }
      }
    },
    {
      "name": "Alertes des destinations suivies (2 crédits par alerte retournée, minimum 2)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-alerts-portfolio?since=2026-10-01T00:00:00Z&min_severity=high&limit=50",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-alerts-portfolio"
          ],
          "query": [
            {
              "key": "since",
              "value": "2026-10-01T00:00:00Z"
            },
            {
              "key": "min_severity",
              "value": "high"
            },
            {
              "key": "limit",
              "value": "50"
            }
          ]
        }
      }
    },
    {
      "name": "Événements anticipés Predict 45 (5 crédits par appel)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-predictive-events?country=TH&horizon_days=45",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-predictive-events"
          ],
          "query": [
            {
              "key": "country",
              "value": "TH"
            },
            {
              "key": "horizon_days",
              "value": "45"
            }
          ]
        }
      }
    },
    {
      "name": "Événements en cours (3 crédits par appel)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-live-events?country=TH&types=climate,transport&since=2026-10-01T00:00:00Z&limit=50",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-live-events"
          ],
          "query": [
            {
              "key": "country",
              "value": "TH"
            },
            {
              "key": "types",
              "value": "climate,transport"
            },
            {
              "key": "since",
              "value": "2026-10-01T00:00:00Z"
            },
            {
              "key": "limit",
              "value": "50"
            }
          ]
        }
      }
    },
    {
      "name": "Destinations suivies (1 crédit par appel)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/api-v1-portfolio-destinations",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-portfolio-destinations"
          ],
          "query": []
        }
      }
    },
    {
      "name": "Synchroniser les dossiers anonymisés Ezus, Viaxoft, Hera ou MB3M",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api-v1-dossiers-sync",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api-v1-dossiers-sync"
          ],
          "query": []
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"erp\": \"ezus\",\n  \"dossiers\": [\n    {\n      \"ref_dossier\": \"EZUS-EXEMPLE-001\",\n      \"nationalite_passeport\": \"FR\",\n      \"motif\": \"loisirs\",\n      \"pays_depart\": \"FR\",\n      \"etapes\": [\n        {\n          \"pays\": \"TH\",\n          \"date_arrivee\": \"2026-12-05\",\n          \"date_depart\": \"2026-12-19\",\n          \"city_ids\": [],\n          \"transit\": false,\n          \"immigration\": true\n        }\n      ]\n    }\n  ]\n}"
        }
      }
    }
  ]
}