---
title: "Scan for direct deposits to CDP wallets (admin/cron)"
method: POST
path: "/v1/admin/scan_direct_deposits"
tags: ["maintenance"]
---

# Scan for direct deposits to CDP wallets (admin/cron)

`POST /v1/admin/scan_direct_deposits`

Scan CDP wallets for direct deposits that bypassed /fund endpoint.

This endpoint:
1. Fetches transaction history for each account's CDP wallet
2. Identifies inbound transfers that don't have a matching fund_event
3. Creates fund_events with deposit_source='direct' for new deposits
4. Syncs account balances after processing

Should be run periodically (e.g., every 5-15 minutes) via cron.

## Query parameters

- `limit` integer — Optional cap on number of accounts to scan (default: all accounts).
- `token_filter` string — Token symbol to scan for (default: USDC).

## Headers

- `X-MAINTENANCE-KEY` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/grove/apis/grove-api.md) · [All operations](https://skmtc.net/grove/apis/grove-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/grove/grove-api/versions/f286b48a8105/schema)
