Im trying to add contacts to apollo.io sequence i have correctly followed the api reference here is the reference :curl -X POST -H “Content-Type: application/json” -H “Cache-Control: no-cache” -H “X-Api-Key: YOUR API KEY HERE” -d ‘{
“async”: false,
“contact_ids”: [“contact id 1”, “contact id 2”],
“emailer_campaign_id”: REPLACE_WITH_SEQUENCE_ID,
“send_email_from_email_account_id”: “email_account_id”,
“sequence_active_in_other_campaigns”: false,
“sequence_no_email”: false,
“sequence_finished_in_other_campaigns”: false,
“sequence_unverified_email”: false,
“sequence_job_change”: false,
“sequence_same_company_in_same_campaign”: false,
“user_id”: “5cc77dXXXXXXXXXXXXXXXXXX”
}’ “https://api.apollo.io/v1/emailer_campaigns/REPLACE_WITH_SEQUENCE_ID/add_contact_ids”
i constantly get this error : [422] Something’s wrong with your API request. undefined method `team_id’ for nil
here is the workflow JSON : {
“name”: “Integration Apollo”,
“flow”: [
{
“id”: 1,
“module”: “apollo:makeApiCall”,
“version”: 1,
“parameters”: {
“IMTCONN”: 2342405
},
“mapper”: {
“url”: “/v1/email_accounts”,
“method”: “GET”,
“headers”: [
{
“key”: “Content-Type”,
“value”: “application/json”
},
{
“key”: “Cache-Control”,
“value”: “no-cache”
},
{
“key”: “X-Api-Key”,
“value”: “9sbmywnWlLih5z_Vbs0kNA”
}
]
},
“metadata”: {
“designer”: {
“x”: 0,
“y”: 0
},
“restore”: {
“parameters”: {
“IMTCONN”: {
“label”: “Lead Generation_Ed_Axe”,
“data”: {
“scoped”: “true”,
“connection”: “apollo”
}
}
},
“expect”: {
“method”: {
“mode”: “chose”,
“label”: “GET”
},
“headers”: {
“mode”: “chose”,
“items”: [
null,
null,
null
]
},
“qs”: {
“mode”: “chose”
}
}
},
“parameters”: [
{
“name”: “IMTCONN”,
“type”: “account:apollo”,
“label”: “Connection”,
“required”: true
}
],
“expect”: [
{
“name”: “url”,
“type”: “text”,
“label”: “URL”,
“required”: true
},
{
“name”: “method”,
“type”: “select”,
“label”: “Method”,
“required”: true,
“validate”: {
“enum”: [
“GET”,
“POST”,
“PUT”,
“PATCH”,
“DELETE”
]
}
},
{
“name”: “headers”,
“type”: “array”,
“label”: “Headers”,
“spec”: [
{
“name”: “key”,
“type”: “text”,
“label”: “Key”
},
{
“name”: “value”,
“type”: “text”,
“label”: “Value”
}
]
},
{
“name”: “qs”,
“type”: “array”,
“label”: “Query String”,
“spec”: [
{
“name”: “key”,
“type”: “text”,
“label”: “Key”
},
{
“name”: “value”,
“type”: “text”,
“label”: “Value”
}
]
},
{
“name”: “body”,
“type”: “any”,
“label”: “Body”
}
]
}
},
{
“id”: 2,
“module”: “apollo:makeApiCall”,
“version”: 1,
“parameters”: {
“IMTCONN”: 2342405
},
“mapper”: {
“url”: “/v1/emailer_campaigns/{{1.body.email_accounts.id}}/add_contact_ids”,
“method”: “POST”,
“headers”: [
{
“key”: “Content-Type”,
“value”: “application/json”
},
{
“key”: “Content-Type”,
“value”: “application/json”
},
{
“key”: “Cache-Control”,
“value”: “no-cache”
},
{
“key”: “X-Api-Key”,
“value”: “9sbmywnWlLih5z_Vbs0kNA”
},
{
“key”: “team_id”,
“value”: “61a48e0adb8bcc00f66c6f03”
}
],
“body”: “{\n "async": false,\n "contact_ids": ["61138f3dce200b00017bcc40"],\n "emailer_campaign_id": "66f518a6b541d105419914a5", \n "send_email_from_email_account_id": "66f518a6b541d105419914a5",\n "sequence_active_in_other_campaigns": false,\n "sequence_no_email": false,\n "sequence_finished_in_other_campaigns": false,\n "sequence_unverified_email": false,\n "sequence_job_change": false,\n "sequence_same_company_in_same_campaign": false,\n "user_id": "61a48e0bdb8bcc00f66c6f7d",\n "team_id": "61a48e0adb8bcc00f66c6f03"\n}”
},
“metadata”: {
“designer”: {
“x”: 300,
“y”: 0
},
“restore”: {
“parameters”: {
“IMTCONN”: {
“label”: “Lead Generation_Ed_Axe”,
“data”: {
“scoped”: “true”,
“connection”: “apollo”
}
}
},
“expect”: {
“method”: {
“mode”: “chose”,
“label”: “POST”
},
“headers”: {
“mode”: “chose”,
“items”: [
null,
null,
null,
null,
null
]
},
“qs”: {
“mode”: “chose”
}
}
},
“parameters”: [
{
“name”: “IMTCONN”,
“type”: “account:apollo”,
“label”: “Connection”,
“required”: true
}
],
“expect”: [
{
“name”: “url”,
“type”: “text”,
“label”: “URL”,
“required”: true
},
{
“name”: “method”,
“type”: “select”,
“label”: “Method”,
“required”: true,
“validate”: {
“enum”: [
“GET”,
“POST”,
“PUT”,
“PATCH”,
“DELETE”
]
}
},
{
“name”: “headers”,
“type”: “array”,
“label”: “Headers”,
“spec”: [
{
“name”: “key”,
“type”: “text”,
“label”: “Key”
},
{
“name”: “value”,
“type”: “text”,
“label”: “Value”
}
]
},
{
“name”: “qs”,
“type”: “array”,
“label”: “Query String”,
“spec”: [
{
“name”: “key”,
“type”: “text”,
“label”: “Key”
},
{
“name”: “value”,
“type”: “text”,
“label”: “Value”
}
]
},
{
“name”: “body”,
“type”: “any”,
“label”: “Body”
}
]
}
}
],
“metadata”: {
“instant”: false,
“version”: 1,
“scenario”: {
“roundtrips”: 1,
“maxErrors”: 3,
“autoCommit”: true,
“autoCommitTriggerLast”: true,
“sequential”: false,
“slots”: null,
“confidential”: false,
“dataloss”: false,
“dlq”: false,
“freshVariables”: false
},
“designer”: {
“orphans”:
},
“zone”: “eu1.make.com”
}
}