---
title: "Train all 25+ ML models (admin only, takes 2-5 min)"
method: POST
path: "/api/v1/pews/train-all-models"
tags: ["PEWS - Planetary Early Warning"]
---

# Train all 25+ ML models (admin only, takes 2-5 min)

`POST /api/v1/pews/train-all-models`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/pews/train-all-models`
- Auth: none declared

Train all ML models or a specific group (sinkhole, landslide,
earthquake, structural, environmental). Creates model files on
Railway so extended forecasts can produce predictions.
Requires X-Admin-Token header.

## Query parameters

- `group` string

## Headers

- `X-Admin-Token` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deepmapai/apis/deepmap-ai.md) · [All operations](https://skmtc.dev/deepmapai/apis/deepmap-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/deepmapai/apis/deepmap-ai/revisions/dab995d977d0?raw)
