---
title: "Ingest"
method: POST
path: "/api/v1/space-weather/leo-drag/ingest"
tags: ["LeoDrag"]
---

# Ingest

`POST /api/v1/space-weather/leo-drag/ingest`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/space-weather/leo-drag/ingest`
- Auth: none declared

Bulk-pull recent TLEs from Space-Track into the local cache.

Intended for a nightly cron.  Expensive + hits Space-Track's rate
limit -- gate this behind admin auth in server.py if exposing
publicly.  Returns `status: unavailable` cleanly if creds are not
set, so a cron can safely no-op before Space-Track is configured.

## Request body

- IngestRequest
  - `max_objects` integer
  - `max_altitude_km` number
  - `epoch_window_days` integer

## Response `200`

Successful Response

- object

## 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)
