---
title: "Configure auto top up"
method: POST
path: "/api/credits/auto-top-up"
tags: ["v1", "credits"]
---

# Configure auto top up

`POST /api/credits/auto-top-up`

Configure auto top-up settings and perform an immediate top-up if needed.

Raises HTTPException(422) if the request parameters are invalid or if
the credit top-up fails.

## Request body

- AutoTopUpConfig
  - `amount` integer, required
  - `threshold` integer, required

## Response `200`

Successful Response

- string

## Other responses

- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
