Python Login in IBC

Hi team,
Our group has been recently migrated to IBC. Now i am trying to access the analysis and datamodels of IBC via python from my local system. But i am unable to login . I was using python in the old environment , and i was using API_ID and API_token, now which API_ID isnt availble for me.
Is API_ID required to login? or is just API_token along with the URL is enough?
Please suggest
Code that i have tried:
from pycelonis import get_celonis
login = {“celonis_url”: ‘my_url’, “api_token”: ‘my_api_token’}
c_source = get_celonis(**login)

Thank you.

Hi Rahul,

Did you create new API Key in IBC after migrating to IBC? If so, what error are you getting?

As an additional note, you can also use ML Workbench, now that you are in IBC to connect to celonis via python and work with it.

Hi @Noor
Thank you for your fast reply.
Yes i have created a new API key after migration.
I am trying to access this cloud from local system. Is it not possible to do that as there is a separate "Machine Learning " tab present in the cloud?
Please find below the error.

ConnectionError: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: /api/cloud (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x0000025E3F208F48>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’))

Thank you

What url are you using?

Can you try

celonis = get_celonis('','your_api_key') ?

Could this be that you have some vpn or firewall that is blocking the connection?


Hi @Noor
I am trying the URL with which im accessing the IBC and im getting the same error when i tried the above code.

I dont think there is any VPN or firewall issue from my system, because im able to access the old Celonis environment from here with the same get_celonis.

Thank you
Rahul Bhat T R

Hi Rahul,

Correct me if I am wrong, but the old celonis environment is on prem ?

Hi @Noor

Yes. sorry for not specifying that. Its the On Prem celonis.

Hi Rahul,

I think we need some IP whitelisting here either on the IBC side or on the on prem side where you are using python environment. Can you open a service desk ticket if you need further guidance on ip whitelisting?


Hi @Noor ,
Sure okay. Il check and open a ticket. Thank you