Hi @Willson ,
The API for creating custom workflow action is not working . It is a kind of bug in the HUBSPOT.
Our team which is working on the integration app for the hubspot is not able to create a custom workflow action. We have tried many times but every we are getting the same error “HTTP 404 error Resource not found”.
Can you please pass this message to the hubspot developer team?
It will be a big help.
We are using php code for the workflow action creation:
<?php
$url = ‘https://api.hubapi.com/automationextensions/v1/definitions?hapikey=eu1-e63e-276d-46f7-8079-47bbdc7b5…’;
$data = ‘{
“integrationAppId”:407547,
“extensionName”: “Kaleyra SMS1”,
“webhookUrl”: “https://kaleyra-webhooks.free.beeceptor.com”,
“dataUrl”:“https://mocki.io/v1/86500b02-73e6-4c04-abad-d1fc4f926ce9”,
“fieldMetadata”: [
{
“label”: “Email”,
“key”: “email”,
“fieldType”: “TEXT”,
“values”: [
{
“type”: “STATIC_VALUE”,
“allowsMergeTags”: true
}
]
},
{
“label”: “Mobile Number”,
“key”: “phone_number”,
“fieldType”: “TEXT”,
“values”: [
{
“type”: “STATIC_VALUE”,
“allowsMergeTags”: true
}
]
},
{
“label”: “DLT ID”,
“key”: “DLT_key”,
“fieldType”: “TEXT”,
“values”: [
{
“type”: “STATIC_VALUE”,
“allowsMergeTags”: true
}
]
},
{
“label”: “Message”,
“key”: “message”,
“fieldType”: “TEXTAREA”,
“values”: [
{
“type”: “STATIC_VALUE”,
“allowsMergeTags”: true
}
]
}
]
}’;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_ENCODING, “”);
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$headers = array();
$headers[] = ‘Content-Type: application/json’;
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch))
{
echo ‘Error:’ . curl_error($ch);
}
curl_close($ch);
echo $result;
Thanks for the help