Feed the correct ApiKey to the Stories-API

1
I am trying to consume the stories API to read the sprint and stories,  but, allthough $MendixApp/ProjectId does have the correct value, I keep getting the errormessage ‘Unknown API key’ in the latestError:   In the doc https://docs.mendix.com/apidocs-mxsdk/apidocs/stories-api it say at every operation: Parameter Name Parameter Type Description ApiKey String The API Key the application uses to access the Stories API for this project. I tried at first to add an API key to the project itself: Apps → <ProjectName> → API Keys and then I tried to use the API key from my personal Mendix-account. Both gave the same response.   What am I missing here? Which API key should I use?
asked
2 answers
2

Hi Tim,

documentation is not very clear on this, but based on the documentation on the DeployApi page, I would say it is your user API. https://docs.mendix.com/apidocs-mxsdk/apidocs/deploy-api#2-authentication

However if using this, your user should have the rights to use the API functionality in the project. Boolean can be set in the security → node permissions tab.

answered
1

Hi,

I’ve been building a sprint portal using these APIs. 

This is where you want to go to create an right API key for this web service. 

Could it be a read issue to where you’re keeping your API Key attribute? I’ve got it set as a constant, that’s the only difference I can see at a glance between yours and what’s in my working local copy.

answered