Skip to main content
POST
/
extensions
Upload a browser extension
curl --request POST \
  --url https://api.onkernel.com/extensions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'name=<string>'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "size_bytes": 123,
  "name": "<string>",
  "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.

Example:

"@path/to/extension.zip"

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