PUT
/
api
/
v0
/
commands
/
transfer_credit
/
transfer credit
curl --request PUT \
  --url https://console.vast.ai/api/v0/commands/transfer_credit/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "recipient": "user@example.com",
  "amount": 100,
  "client_id": "me",
  "apikey_id": "<string>"
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
recipient
string
required

Email address or user ID of the recipient

Example:

"user@example.com"

amount
number
required

Amount of credits to transfer (must be positive)

Required range: x >= 0.01
Example:

100

client_id
string

Client identifier (usually "me")

Example:

"me"

apikey_id
string

Optional API key identifier for audit logging

Response

Transfer completed successfully

success
boolean
Example:

true