API Connector + Brevo Setup Trouble

Hello,

I’m trying to set up an API connection with Brevo to update a user attribute in Brevo to “Yes.” Currently, the call is initializing but it isn’t doing anything. When I previously had the data type as JSON I was being told I couldn’t have an empty body. Here is the API Documentation: Update a contact

Did you check in Brevo and is the field APP_DOWNLOADED value is yes?
If yes, everything is fine. There’s no body returned. Only a 204 code (successful request). So Data type return is empty is fine.

I made the field myself as a text field, the same as for email or name. It didn’t have a place to specify exact text. See the screenshot taken from Brevo.

It doesn’t matter. Is your field updated after the call yes or no?

It isn’t. It is black in Brevo.

blank*

Just checked doc and you need to modify the request because the field need to be sent in attributes
Add header
content-type: application/json

And use Body (delete parameters you have actually).

{
  "attributes": {
    "APP_DOWNLOADED": "<APP_DOWNLOADED>"
  }
}

Set yes for the value in app_download parameter

2 Likes

Ahh yes that worked perfectly! Thank you so much!

1 Like

Hmm, randomly started getting this error despite the API working correctly:

The service Add Contact - Brevo - Get contact info just returned an error (HTTP 400). Please consult their documentation to ensure your call is setup properly. Raw error:

{“code”:“duplicate_parameter”,“message”:“Contact already exist”}

Any thoughts on this?

You have the answer already in the error message. The contact already exist so you cant add it again.

The issue is I get this message before I even run the call. For context it just appears on the index page before I even get to input the users information and actually run it.

For some additional context the error happens immediately when loading the index page, see image below. However, the call is not initiated until you select Get started and sign up, creating your own credentials. Once you hit the submit button that is when the call should be initiated.

Are you sure you don’t have anything under a WF page is load? Or a Get data from API?
Can you set your app in public view mode and share url?

Smh, there was a workflow buried that I hadn’t found - THANK YOU!

1 Like