Skip to main content
POST
/
extensions
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const response = await client.extensions.upload({ file: fs.createReadStream('path/to/file') });

console.log(response.id);
{
  "id": "<string>",
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "size_bytes": 123,
  "last_used_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

ZIP file containing the browser extension.

name
string

Optional unique name within the organization to reference this extension.

Response

Extension uploaded successfully

A browser extension uploaded to Kernel.

id
string
required

Unique identifier for the extension

created_at
string<date-time>
required

Timestamp when the extension was created

size_bytes
integer
required

Size of the extension archive in bytes

name
string | null

Optional, easier-to-reference name for the extension. Must be unique within the organization.

last_used_at
string<date-time> | null

Timestamp when the extension was last used

I