Get an extension version
Returns one version, by its id or version string, with the manifest it was published with.
GET
Returns one version, by its id or version string, with the manifest it was published with.
apiKeyheader
x-api-key<token>id*stringThe extension's id (ext_…) or its name.
Length
1 <= length <= 64versionId*stringThe version's id (extver_…) or its version string, such as 1.0.0.
Length
1 <= length <= 85ExtensionVersion
application/json- response
id*ExtensionVersionIdMatch
^extver_[0-9a-hjkmnp-tv-z]{16,24}$version*stringruntime*stringValue in
"hosted""webhook"bundle*|nullpublishedAt*stringmanifest*import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.extensions.getVersion({
"id": "example",
"versionId": "example"
});Example Response
{
"id": "string",
"version": "string",
"runtime": "hosted",
"bundle": {
"sha256": "string",
"sizeBytes": -9007199254740991
},
"publishedAt": "string",
"manifest": {
"name": "string",
"displayName": "string",
"description": "string",
"version": "string",
"runtime": "hosted",
"events": [
"mailbox.message.received"
],
"permissions": [
"read"
]
}
}