# Connect an App in Workflows

**URL:** <https://community.hubspot.com/t/connect-an-app-in-workflows/14428>\
**Category:** APIs & Integrations\
**Tags:** workflows\
**Created:** [May 17, 2019, 3:59pm UTC](https://community.hubspot.com/t/connect-an-app-in-workflows/14428 "2019-05-17T15:59:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [May 17, 2019, 3:59pm UTC](https://community.hubspot.com/t/connect-an-app-in-workflows/14428/1 "2019-05-17T15:59:04Z")

</div>

In the API documentation, the only reference to adding application actions to workflows is under “workflow extensions,” where it says this can only be done for contact-based workflows. However, in my demo instance I see that all other workflow types also have the option to “connect an app” when creating an action - how do we make actions from our application accessible in all workflow types?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [May 20, 2019, 3:23pm UTC](https://community.hubspot.com/t/connect-an-app-in-workflows/14428/2 "2019-05-20T15:23:43Z")

</div>

Hi, there.

At this time, the public [Workflow Extensions API](https://developers.hubspot.com/docs/methods/workflow-extensions/workflow-extensions-overview) can only create actions for _contact-based_ flows.

The [Asana task actions](https://knowledge.hubspot.com/articles/kcs_article/workflows/create-asana-tasks-with-workflows) you see in company, deal, ticket, and quote-based flows are the first “platform flows” we have experimented with, but they will not be the last.

At some point in the future, I would expect platform flows to support webhook extensions as well, however I can’t offer a concrete timeline.

Follow the [HubSpot Developer Changelog](https://developers.hubspot.com/changelog) for all relevant news!

---

<div class="post-metadata">

**Author:** ![rajnishpatel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rajnishpatel/32/44643_2.png) [@rajnishpatel](https://community.hubspot.com/u/rajnishpatel)\
**Post date:** [September 24, 2021, 11:32am UTC](https://community.hubspot.com/t/connect-an-app-in-workflows/14428/3 "2021-09-24T11:32:06Z")

</div>

Hi @IsaacTakushi ,

Our team is working on an Integration app for the HUBSPOT. We are getting an error while creating custom workflow action. We have followed the exact process as mentioned in this documentation:

> **[HubSpot Developer Documentation - HubSpot docs](https://developers.hubspot.com/docs)**

But we are continuously getting “HTTP 404 ERROR Resource not found”.

we are using this php code:

\<?php

$url = ‘[https://api.hubapi.com/automationextensions/v1/definitions?hapikey=eu1-e63e-276d-46f7-8079-47bbdc7b5675&applicationId=407547](https://api.hubapi.com/automationextensions/v1/definitions?hapikey=eu1-e63e-276d-46f7-8079-47bbdc7b5675&applicationId=407547)’;  
$data = ‘{  
“integrationAppId”:407547,  
“extensionName”: “Kaleyra SMS1”,  
“webhookUrl”: “[https://kaleyra-webhooks.free.beeceptor.com](https://kaleyra-webhooks.free.beeceptor.com)”,  
“dataUrl”:“[https://mocki.io/v1/86500b02-73e6-4c04-abad-d1fc4f926ce9](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;

Thank you for the help

---

<div class="post-metadata">

**Author:** ![IP8](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ip8/32/52558_2.png) [@IP8](https://community.hubspot.com/u/IP8)\
**Post date:** [February 16, 2022, 1:35pm UTC](https://community.hubspot.com/t/connect-an-app-in-workflows/14428/4 "2022-02-16T13:35:25Z")

</div>

Do you have an update on adding a custom workflow action for non-contact based flows? We need to add a custom action to Deal and Ticket workflows. Do you have a procedure to allow us to list our app in “connect an app” list?
