Library Api Tokens do not work

Hey

I created an API Token for a single library, set it to read-write but whenever i wanna access the API i get the

“detail”: “Invalid token”

response. No Matter what API endpoint i query.

Is this supposed to work? Are there special endpoints for the lib api token to query?

Getting the token for the whole account and querying the API with that works fine, just not if i create a token for a single library.

I started using the API. It seems you can only use a limited set of endpoints with the library API token, as described here in the api docs at

/web-api/v2.1/library-api-tokens.md

Other endpoints, like /dir/details or /file/details are not working yet, looking at the source in

seahub/api2/endpoints/via_repo_token.py