---
title: "Topup"
method: POST
path: "/keys/{key_id}/topup"
tags: ["portal"]
---

# Topup

`POST /keys/{key_id}/topup`

## Request

- Base URL: `https://api.relayxapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.relayxapi.com/keys/{key_id}/topup`
- Auth: none declared

Add credits to the account (the key only identifies the account). Disabled in production, where credits are added only by a settled payment.

## Path parameters

- `key_id` integer, required

## Headers

- `authorization` string, nullable

## Request body

- TopUp
  - `amount` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/relayxapi/apis/relayx-x-data-api.md) · [All operations](https://skmtc.dev/relayxapi/apis/relayx-x-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/relayxapi/apis/relayx-x-data-api/revisions/6c9acb520594?raw)
