curl --request POST \
--url https://api.anchorbrowser.io/v1/extensions \
--header 'Content-Type: multipart/form-data' \
--header 'anchor-api-key: <api-key>' \
--form 'name=My Custom Extension' \
--form file=@example-file
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Custom Extension",
"manifest": {
"name": "Extension Name",
"version": "1.0.0",
"manifest_version": 3,
"description": "Extension description",
"permissions": [
"activeTab",
"storage"
]
},
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
}
Upload a new browser extension as a ZIP file. The extension will be validated and stored for use in browser sessions.
curl --request POST \
--url https://api.anchorbrowser.io/v1/extensions \
--header 'Content-Type: multipart/form-data' \
--header 'anchor-api-key: <api-key>' \
--form 'name=My Custom Extension' \
--form file=@example-file
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Custom Extension",
"manifest": {
"name": "Extension Name",
"version": "1.0.0",
"manifest_version": 3,
"description": "Extension description",
"permissions": [
"activeTab",
"storage"
]
},
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
}
API key passed in the header
Extension uploaded successfully
The response is of type object
.