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

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

Query Parameters

query
string

Search query string to match against template fields.

select_filters
object

Filters to apply on the search results.

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.