Skip to main content

Hi all,

I would like to export datapools as json using content-cli in the ML workbench in order to backup them in Git. I have created an API key in my profile and used it in a python script with content-cli pull data-pool --id data-pool-id, which successfully generated a json of the datapool.

However, I don't want to do this with a user-based API key but with an Application key (created under admin&settings).

When I run the same command using the Application key, I get the error "error: The provided team or api key is wrong."

With get_celonis(api_token=“applicationkey”, key_type="APP_KEY") however, I can see the Application key and all its permissions.

Is content-cli possible with an Application key and if so, how can I use it?

Hi ​@carmen.kaluz 

I am no expert in this, but if you are going to specify the api_token in the get_celonis command, I think the way to go is to set the key_type to “USER_KEY”.
At least this works for me.
Though, according to Index - PyCelonis this method is going to be depreciated and replaced by “BEARER”

Hope this helps!


Hi ​@carmen.kaluz

As far as I know, Content-CLI only works with a user key with role ‘Admin’. It is correct that this therefore doesn’t work with application keys. 

Best regards,

Jan-peter


Reply