[#1266] Get Token by API key for RestAPI

Migrated from Redmine #1266 | Author: Viacheslav Yepancha
Status: Feedback | Priority: Normal | Created: 2024-08-27


Do you have the way how to get the token by API key if I am using RestAPI? I found that I can do it for gRPC, but not for RestAPI

Dmytro Bondarev wrote:

Hi, at the moment REST API is available only for admin side, hence you can get token only by user credentials.

Viacheslav Yepancha wrote:

Do you have the plan to make it available in future?

Dmytro Bondarev wrote:

Yes, it is under development stage.

Viacheslav Yepancha wrote:

Thank you!
I don’t want to create one more issue
What is the token TTL? Because I don’t see any “expires” in token.

Dmytro Bondarev wrote:

Basicaly 30 minutes, but you should rely on specific error code.
HTTP status 419. (Token expired).