v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Accounts

transfer credit

Transfers specified amount of credits from the authenticated user's account to another user's account.

The recipient can be specified by either email address or user ID.

CLI Usage: vastai transfer credit <recipient_email> <amount>

put/api/v0/commands/transfer_credit/

Request body

recipientstring required

Email address or user ID of the recipient

amountnumber float required

Amount of credits to transfer (must be positive)

client_idstring

Client identifier (usually "me")

apikey_idstring

Optional API key identifier for audit logging

Example request

{
  "recipient": "user@example.com",
  "amount": 100,
  "client_id": "me"
}

Response

Transfer completed successfully

successboolean

Example response

{
  "success": true
}