you will need to create an API Key from the admin panel
I have searched/looked in the admin panel, but I cannot find where I can generate this API key.
Unfortunately I have lost quite a bit of time already looking how to generate a key I can use as the Api-Key header. Should be simple? Where can I generate it?
Ok turns out I am not a real admin, even though I can visit the admin panel over at /admin/ I cannot visit /admin/api/keys, I asked the hoster who setup the forum and he was able to create me a key at this location.
Seems to be a distinction between ‘admin’ (like a moderator) and ‘admin’ (like a system admin).
Ah yes. Moderator and Admin are distinct roles in Discourse. A Moderator has quite a lot of high level functions for user and content moderation, but an Admin (or Sysadmin) has access to far more settings and functions to do with setting up the forum itself. You can read more info about those roles in Description of various user states in Discourse (Admin / Moderator / Staff / Developer / Other)