Skip to main content
GET
/
api
/
v0
/
template
search templates
curl --request GET \
  --url https://console.vast.ai/api/v0/template/ \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "templates_found": 5,
  "templates": [
    {
      "id": 123,
      "name": "<string>",
      "image": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Query Parameters

select_filters
string

JSON-encoded filter object. Format: {"field": {"op": value}}. Example: {"use_ssh": {"eq": true}, "recommended": {"eq": true}} or {"count_created": {"gt": 100}}

select_cols
string

JSON-encoded array of columns to return. Example: ["*"] for all columns or ["id", "name", "hash_id"] for specific columns.

order_by
string

Column to order the results by.

Response

Successfully retrieved templates

success
boolean
required
Example:

true

templates_found
integer
required

Number of templates found.

Example:

5

templates
object[]
required

List of templates matching the search criteria.