Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

Run scenario using REST API

Solved!
Srini_E
Level 3
Run scenario using REST API

Hi,

 

I'm trying to run a scenario using rest API, I'm getting an error - "Unknown API key". could anyone please help?

 

{"errorType":"com.dataiku.dip.exceptions.NotAuthenticatedException","message":"Unknown API Key","detailedMessage":"Unknown API Key","detailedMessageHTML":"\u003cspan\u003e\u003cspan class\u003d\"err-msg\"\u003eUnknown API Key\u003c/span\u003e\u003c/span\u003e","stackTrace":[]}

0 Kudos
1 Solution
ZachM
Dataiker

Hi @Srini_E ,

Please make sure that you're passing the API key as the username. As documented here, the username is the API key secret, and the password should remain blank.

If this doesn't solve your issue, please show me how you're connecting to the REST API. Don't forget to censor the API key when you post it.

 

Additionally, you may want to consider using the Python API instead of using the REST API directly because it's easier to use. See Scenarios for how to run scenarios, and see Python APIs for general information on how to use it.

 

Thanks,

Zach

 

View solution in original post

2 Replies
ZachM
Dataiker

Hi @Srini_E ,

Please make sure that you're passing the API key as the username. As documented here, the username is the API key secret, and the password should remain blank.

If this doesn't solve your issue, please show me how you're connecting to the REST API. Don't forget to censor the API key when you post it.

 

Additionally, you may want to consider using the Python API instead of using the REST API directly because it's easier to use. See Scenarios for how to run scenarios, and see Python APIs for general information on how to use it.

 

Thanks,

Zach

 

Srini_E
Level 3
Author

@ZachM , It worked like a charm. You are awesome Zach!!. Thanks a lot!!