Publishing an effect to the Fentra camera
Declare the package, upload its files, submit it. The gateway validates it, the Fentra team reviews it, and approved effects join the catalogue the Fentra app reads.
The path
- Declare the package: its kind, its parsed manifest and a list of every file.
- Upload each file to the URL the gateway gives you.
- Submit. The gateway validates the whole package: it is
pending(waiting for review) orinvalid, with the errors. - Review. The Fentra team approves or rejects it.
- Published. An approved effect joins the catalogue, and the app can download it.
submit.mjs does steps 1 to 3 for you. Every request to the gateway carries a Fentra user access token as a bearer token.
The submissions API
| Request | What it does |
|---|---|
POST /api/v1/effects/submissions | Declares a package and returns where to upload its files. |
PUT /api/v1/effects/submissions/{id}/files/{path} | Uploads one file's raw bytes. |
POST /api/v1/effects/submissions/{id}/submit | Validates the package and sends it for review. |
GET /api/v1/effects/submissions?mine=1 | Lists your submissions and their status. |
DELETE /api/v1/effects/submissions/{id} | Removes a submission. |
1. Declare
POST /api/v1/effects/submissions
Authorization: Bearer <token>
{
"kind": "lens",
"manifest": { "id": "puppy", "name": "Puppy", "formatVersion": 1, "layers": [] },
"files": [
{ "path": "lens.json", "bytes": 1234, "sha256": "<64 hex>", "contentType": "application/json" },
{ "path": "thumbnail.png", "bytes": 48210, "sha256": "<64 hex>", "contentType": "image/png" }
]
}kindislens,filterorgame.manifestis the package'slens.json,filter.jsonorgame.json, parsed.fileslists every file in the package, the manifest included, each with its exact byte count, lower-case hex SHA-256 and type:image/png,image/jpeg,application/json,text/plainfor a.cube,model/gltf-binaryfor a.glb. The stored package is then byte for byte what was validated.- A lens's content version is not sent; the gateway assigns it on approval.
The gateway answers with the submission's id and an upload URL for each file.
2. Upload
PUT each file's raw bytes to its URL. An upload URL can point somewhere other than the gateway, so send your token only to the gateway itself (submit.mjs does exactly this).
3. Submit
POST /api/v1/effects/submissions/{id}/submit
{ "submission": { "status": "invalid",
"validation": { "ok": false,
"errors": [ { "code": "out_of_range", "path": "lens.json.layers[2].opacity", "message": "…" } ],
"warnings": [] } } }The gateway checks the uploaded files against the declaration and the whole package against its format (lens, filter, game). It answers pending or invalid. Run validate.py first and an invalid here should never surprise you: it applies the same rules and reports the same codes.
Review
The Fentra team reviews every pending submission and approves or rejects it. Make sure every third-party picture, model and sound is credited with its licence: review refuses work that uses another company's logo, mark or character without permission, and a 3D lens without credits never gets this far.
Versions
When a submission is approved, the effect gets a version number: the first approved submission of an id is version 1, and each later approved submission of the same id is the next. A published version never changes. To change an effect, submit the same id again; when it is approved, it becomes the next version. A filter also carries its own version in filter.json, which should go up with each re-submission.
The catalogue
The app reads approved effects from the catalogue:
GET /api/v1/effects/catalogue?kind=lens&lensFormat=3
GET /api/v1/effects/catalogue?kind=filter
GET /api/v1/effects/catalogue?kind=game&templates=quiz:1,thisOrThat:1- Lenses are listed only to an app that reads their format, so a format 3 lens never reaches an app that can't draw it. An app that says nothing is taken to read format 1.
- Games are listed only to an app that names their template, at a version at least the game's
templateVersion. - Each entry carries the effect's id, kind, name, version, category, author, thumbnail, files and when it was published. The app compares the version and the package's digest to decide whether to download it again, and checks every file's hash when it does.
Rewards
Creator rewards for effects are planned. For what's available to creators today, see the Creator Center.
Checked against the specs on 4 November 2026.