Need to upload my users email to HubSpot via API

I have an issue with this https://api.hubapi.com/contacts/v1/lists/3/add API

In the attached SS you can see my request payload and the error.

I have done the same as the given documentation https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list

My end goal is to upload my users email to HubSpot so I can send them marketing emails.

Hey, @Zaidwithdkg :waving_hand: Thanks for your question.

Did you make any progress? If not, I have a question and a request:

Question – is this an existing contact?

Request – can you make a request to this endpoint, please? Using the listId from your example? And post the full response body here.
Get a contact list by its unique ID

Thanks! — Jaycee

Here is the response of your given https://api.hubapi.com/contacts/v1/lists/3 API
{
“portalId”: 143728744,
“listId”: 3,
“internalListId”: 0,
“createdAt”: 1701409780960,
“updatedAt”: 1701409792009,
“name”: “All customers”,
“listType”: “DYNAMIC”,
“authorId”: 62203707,
“filters”: [],
“metaData”: {
“size”: 0,
“lastSizeChangeAt”: 1701409792385,
“processing”: “DONE”,
“lastProcessingStateChangeAt”: 1701409780960,
“error”: “”,
“listReferencesCount”: null,
“parentFolderId”: null
},
“archived”: false,
“teamIds”: [],
“ilsFilterBranch”: “{\“filterBranchOperator\”:\“OR\”,\“filters\”:[],\“filterBranches\”:[{\“filterBranchOperator\”:\“AND\”,\“filters\”:[{\“filterType\”:\“PROPERTY\”,\“property\”:\“lifecyclestage\”,\“operation\”:{\“propertyType\”:\“enumeration\”,\“operator\”:\“IS_ANY_OF\”,\“values\”:[\“customer\”],\“defaultValue\”:null,\“includeObjectsWithNoValueSet\”:false,\“operationType\”:\“enumeration\”,\“operatorName\”:\“IS_ANY_OF\”},\“frameworkFilterId\”:null}],\“filterBranches\”:[],\“associationCategory\”:\“HUBSPOT_DEFINED\”,\“associationTypeId\”:449,\“objectType\”:\“CONTACT\”,\“objectTypeId\”:\“0-1\”,\“operator\”:\“IN_LIST\”,\“coalescingRefineBy\”:{\“setType\”:\“ANY\”,\“type\”:\“SetOccurrencesRefineBy\”},\“associationListId\”:7,\“filterBranchType\”:\“ASSOCIATION\”}],\“filterBranchType\”:\“OR\”}”,
“readOnly”: false,
“deleted”: false,
“internal”: false,
“limitExempt”: false,
“dynamic”: true
}