---
title: "Deposit"
method: POST
path: "/v1/earn/deposit"
tags: ["earn"]
---

# Deposit

`POST /v1/earn/deposit`

## Request

- Base URL: `https://api.fereai.xyz`
- URL: `https://api.fereai.xyz/v1/earn/deposit`
- Auth: none declared

Deposit USDC to earn yield.

## Query parameters

- `wait` boolean
- `timeout` integer: Seconds to block when wait=true (max 90; the ~100s edge cuts longer waits — use wait=false + poll for longer).

## Request body

- DepositRequest
  - `amount_usdc` number, required: Amount of USDC to deposit.
  - `position_id` string, nullable: Existing position ID to deposit into. Omit to create a new position.

## Response `200`

Successful Response

- TaskResponse
  - `task_id` string, required: Celery task ID for tracking the async operation.
  - `status` string: Current task status: queued, pending, started.
  - `poll_url` string, nullable: Relative URL to poll for task status.
  - `notification_stream` string, nullable: SSE stream URL for real-time task updates.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fereai/apis/fereai-gateway.md) - [All operations](https://skmtc.dev/fereai/apis/fereai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/fereai/apis/fereai-gateway/revisions/ad211f8e2f30?raw)
