Light Logo
Model versions

List model versions

Retrieve a paginated list of a model's versions. The versions are sorted by creation time, newest to oldest.

GET
/models/{model_owner}/{model_name}/versions
AuthorizationBearer <token>

In: header

Path Parameters

model_ownerModel Owner

The username of the user that owns the model.

model_nameModel Name

The name of the model.

Query Parameters

cursor?Cursor

The starting point to fetch the next set of items.

page_size?Page Size

The number of results per page.

Default25
Range5 <= value <= 50

Response Body

curl -X GET "https://api.wrift.ai/v1/models/string/string/versions?cursor=string&page_size=25"
{
  "items": [
    {
      "number": 0,
      "release_notes": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "container_image_digest": "string"
    }
  ],
  "next_cursor": "string",
  "previous_cursor": "string",
  "next_url": "http://example.com",
  "previous_url": "http://example.com"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}