Unauthorized request 401

  • 18 July 2023
  • 1 reply


I am trying to update user attributes by using cio.identify(id=‘b1323111’, email=’’) (id and email here are just for example)

but I am getting this error

Error executing function: Failed to receive valid response after 3 retries.
Check system status at
Last caught exception -- <class 'customerio.client_base.CustomerIOException'>: 401: {'email': ''}

{ "meta": { "error": "Unauthorized request" } }

I am using EU data center and using the correct api 

cio = CustomerIO(site_id, api_key, region=Regions.EU)


using the same api key for post customers api to get the customers from customer io that one is working but cio.identify is not working, 

I am using python sdk 

would really appreciate any help from the community.



Best answer by Mau 18 July 2023, 12:17

View original

1 reply

Userlevel 2

Hi there, this error code means the request is unauthorized.

Here are a few factors to consider:

Please let us know if you were able to troubleshoot your issue with these articles. If you need any further assistance, feel free to reach out and we'll be more than happy to help!