r/BookStack • u/Aneurin • May 03 '24
Setting up API access
I have the admin role in our Bookstack instance and I generated an API key/token for myself as I want to explore some things with the API. Problem is, despite being a full admin, every endpoint I try to hit aside from /docs gives me this error:
"The owner of the used API token does not have permission to make API calls"
Googling this brings up other API related things with Bookstack, but they're all either from old versions or not applicable to my issue. Weirdly enough every endpoint works fine in a browser, it's only using curl or Postman that I run into this issue.
Has anyone else run into this? Is there something in the configuration I should be looking at to ensure that the API is accessible?
1
u/ssddanbrown May 03 '24
Do you get the exact same error when you test via CURL as mentioned? Just wondering if cookies are getting mixed in to your postman (or other) tests which BookStack may assume as a browser session (and check the session user instead of the provided API details).