Skip to main content
POST
/
api
/
v0
/
volumes
Create volumes
curl --request POST \
  --url https://console.vast.ai/api/v0/volumes/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hidden_listing": "<string>",
  "machine": "<string>",
  "machines": "<string>",
  "apikey_id": "<string>",
  "machine_id": "<string>",
  "machine_ids": "<string>"
}
'
{
  "success": true,
  "msg": "Operation completed successfully"
}

Documentation Index

Fetch the complete documentation index at: https://vastai-80aa3a82-auto-openapi-preview-pr-4175.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
hidden_listing
string

The hidden listing

machine
string

The machine

machines
string

The machines

apikey_id
string

The apikey id

machine_id
string

The machine id

machine_ids
string

The machine ids

Response

Successful response

success
boolean
Example:

true

msg
string
Example:

"Operation completed successfully"