Extensions

List an extension's versions

Returns summaries of an extension's published versions, newest first.

GET
/v1/extensions/{id}/versions

Returns summaries of an extension's published versions, newest first. Pass nextCursor back as cursor for the next page; it is null on the last page. Read a version's manifest with GET /v1/extensions/{id}/versions/{versionId}.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string

The extension's id (ext_…) or its name.

Length1 <= length <= 64

Query Parameters

limit?|null
cursor?string

Response Body

ExtensionVersionPage

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.extensions.listVersions({  "id": "example"});
Example Response
{  "items": [    {      "id": "string",      "version": "string",      "runtime": "hosted",      "bundle": {        "sha256": "string",        "sizeBytes": -9007199254740991      },      "publishedAt": "string"    }  ],  "nextCursor": "string"}

Related documentation