Matomo 5 secure token via API

Problem:
Since matomo 5 you can have auth token with “Secure only” flag.
Via the UI you can create those secure only tokens but via the API currently not.

Link to FAQ: https://matomo.org/faq/general/faq_114/

Current API:
UsersManager.createAppSpecificTokenAuth (userLogin, passwordConfirmation, description, expireDate = ‘’, expireHours = ‘0’) [ No example available ]

No option for a secure_only token to pass, I tried but it did nothing.

Am I missing something or is this still in development?.

Thanks.

Hi @MickyJaggy
Which API do you use? (HTTP, PHP, etc?)

Hey,

we are using the HTTP API.

Cheers

Hi @MickyJaggy
Maybe try to listen in the browser (via F12) how the request is done. There is probably some missing points. For example, through an authentication cookie?