Skip to content

Getting a token ​

A camera token is issued when you create the camera in Prusa Connect or in the Prusa app.

Prusa Connect ​

  1. Open your printer in Prusa Connect.
  2. Go to Camera.
  3. Choose Add new camera with type other camera.
  4. Copy the camera token.

Prusa app ​

Follow the same flow in the Prusa app: Printer, Camera, Add new wifi camera (wifi can be fake), then copy the camera token.

Registration flow ​

Token format ​

The token is exactly 20 characters long and contains only [A-Za-z0-9]. Example shape: T0nSPU2v05v0pJeKYFYV.

You send it in the Token header on every request. See authentication.

Registration window

The first authenticated call must arrive within 15 minutes of creating the camera. This applies to the first call to any of GET /v1/camera-info, PUT /v1/camera-info and PUT /v1/snapshot.

After 15 minutes an unused token stops working. Requests get a 403 with the same message as for an invalid token, and the camera disappears. To recover, create a new camera and use its new token.

Printer-attached cameras ​

Internal cameras connected directly to the printer by cable are registered by the printer itself, not through the steps above. See printer-attached cameras.

Keep the token secret ​

Anyone who has both the token and the fingerprint can upload as your camera.

Next ​