# Python - API - Error when trying to retrieve the list of attributes

**URL:** <https://community.brevo.com/t/python-api-error-when-trying-to-retrieve-the-list-of-attributes/2995>\
**Category:** Contacts\
**Tags:** api\
**Created:** [Janvier 30, 2025, 8:14 UTC](https://community.brevo.com/t/python-api-error-when-trying-to-retrieve-the-list-of-attributes/2995 "2025-01-30T20:14:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasF](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@ThomasF](https://community.brevo.com/u/ThomasF)\
**Post date:** [Janvier 30, 2025, 8:14 UTC](https://community.brevo.com/t/python-api-error-when-trying-to-retrieve-the-list-of-attributes/2995/1 "2025-01-30T20:14:38Z")

</div>

When using the **[brevo-python](https://github.com/getbrevo/brevo-python)** library, I get an error when I try to retrieve the list of existing attributes.

`ValueError: Invalid value for `type` (multiple-choice), must be one of ['text', 'date', 'float', 'id', 'boolean']`

If I delete the multiple choices attributes then the API call is working.

Could someone tell me how to get the list of attributes?

Thanks,  
Thomas.

---

<div class="post-metadata">

**Author:** ![ahudavert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.brevo.com/ahudavert/32/14_2.png) [@ahudavert](https://community.brevo.com/u/ahudavert)\
**Post date:** [Février 5, 2025, 1:27 UTC](https://community.brevo.com/t/python-api-error-when-trying-to-retrieve-the-list-of-attributes/2995/2 "2025-02-05T13:27:14Z")

</div>

Hi @ThomasF , thanks for your post.

If I get it well, you’re trying to list the contact attributes, right? Have you tried with this endpoint: [List all attributes](https://developers.brevo.com/reference/getattributes-1) ?

---

<div class="post-metadata">

**Author:** ![ThomasF](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@ThomasF](https://community.brevo.com/u/ThomasF)\
**Post date:** [Février 5, 2025, 2:31 UTC](https://community.brevo.com/t/python-api-error-when-trying-to-retrieve-the-list-of-attributes/2995/3 "2025-02-05T14:31:31Z")

</div>

Hi, thanks for reverting back.

Actually I’ve tried that through the brevo\_python package and when I have a multichoice attribute the function crashes with the error above.

I’ve used directly the API using «&nbsp;requests&nbsp;» without the package and this works fine.

So I’m good but you still have an issue within the brevo\_python package.

Best,
