# \[Workflow Extensions API\] 500 Server Error: Internal Server Error

**URL:** <https://community.hubspot.com/t/workflow-extensions-api-500-server-error-internal-server-error/29792>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [January 6, 2021, 4:03pm UTC](https://community.hubspot.com/t/workflow-extensions-api-500-server-error-internal-server-error/29792 "2021-01-06T16:03:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bragg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bragg/32/63860_2.png) [@Bragg](https://community.hubspot.com/u/Bragg)\
**Post date:** [January 6, 2021, 4:03pm UTC](https://community.hubspot.com/t/workflow-extensions-api-500-server-error-internal-server-error/29792/1 "2021-01-06T16:03:06Z")

</div>

Hi, I’m trying to create a workflow extension and I keep getting a 500 error. Here is the request:

```lia-code-sample
url = 'https://api.hubapi.com/automationextensions/v1/definitions?hapikey=<<redacted>>&applicationId=<<redacted>>'

headers = {'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '735', 'Content-Type': 'application/json'}

data = {
 "integrationAppId": HUBSPOT_APP_ID,
 "extensionName": "Create Hub User (dev) TEST",
 "webhookUrl": "<<redacted>>/#/signup",
 "fieldMetadata": [
 {
 "label": "Email Address",
 "key": "pemail",
 "fieldType": "TEXT",
 "values": [
 {
 "type": "OBJECT_PROPERTY"
 }
 ]
 },
 {
 "label": "First Name",
 "key": "firstname",
 "fieldType": "TEXT",
 "values": [
 {
 "type": "OBJECT_PROPERTY"
 }
 ]
 },
 {
 "label": "Last Name",
 "key": "lastname",
 "fieldType": "TEXT",
 "values": [
 {
 "type": "OBJECT_PROPERTY"
 }
 ]
 },
 {
 "label": "Patient ID",
 "key": "ppatientId",
 "fieldType": "TEXT",
 "values": [
 {
 "type": "OBJECT_PROPERTY"
 }
 ]
 },
 {
 "label": "Chosen Site",
 "key": "psitecode",
 "fieldType": "TEXT",
 "values": [
 {
 "type": "OBJECT_PROPERTY"
 }
 ]
 }
 ]
}

```

---

<div class="post-metadata">

**Author:** ![Bragg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bragg/32/63860_2.png) [@Bragg](https://community.hubspot.com/u/Bragg)\
**Post date:** [January 7, 2021, 11:01am UTC](https://community.hubspot.com/t/workflow-extensions-api-500-server-error-internal-server-error/29792/2 "2021-01-07T11:01:58Z")

</div>

OK I have managed to resolve the issue in my previous post and received a 201 response:

```lia-code-sample
{
 "integrationAppId":237506,
 "extensionName":"Create Hub User (dev) TEST",
 "latestVersion":0,
 "webhookUrl":"https://<<redacted>>/Prod/api/users/signup",
 "dataUrl":"None",
 "fieldMetadata":[
 {
 "key":"pemail",
 "label":"Email Address",
 "values":[
 {
 "type":"OBJECT_PROPERTY"
 }
 ],
 "fieldType":"TEXT",
 "required":true
 },
 {
 "key":"firstname",
 "label":"First Name",
 "values":[
 {
 "type":"OBJECT_PROPERTY"
 }
 ],
 "fieldType":"TEXT",
 "required":true
 },
 {
 "key":"lastname",
 "label":"Last Name",
 "values":[
 {
 "type":"OBJECT_PROPERTY"
 }
 ],
 "fieldType":"TEXT",
 "required":true
 },
 {
 "key":"ppatientId",
 "label":"Patient ID",
 "values":[
 {
 "type":"OBJECT_PROPERTY"
 }
 ],
 "fieldType":"TEXT",
 "required":true
 },
 {
 "key":"psitecode",
 "label":"Chosen Site",
 "values":[
 {
 "type":"OBJECT_PROPERTY"
 }
 ],
 "fieldType":"TEXT",
 "required":true
 }
 ],
 "lambdas":{

 },
 "id":2417,
 "version":0
}

```

My next question is, where do I find the extension in the workflows front end?

---

<div class="post-metadata">

**Author:** ![Bragg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bragg/32/63860_2.png) [@Bragg](https://community.hubspot.com/u/Bragg)\
**Post date:** [January 7, 2021, 1:54pm UTC](https://community.hubspot.com/t/workflow-extensions-api-500-server-error-internal-server-error/29792/3 "2021-01-07T13:54:35Z")

</div>

I’ve managed to solve this issue now so no further action is needed.

I’m a bit disappointed with the lack of response to this thread, considering the forum is the only way to get dev support!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 7, 2021, 9:00pm UTC](https://community.hubspot.com/t/workflow-extensions-api-500-server-error-internal-server-error/29792/4 "2021-01-07T21:00:25Z")

</div>

Hey @Bragg !

I apologize for missing this! Won’t let it happen again.

What was your solution?

---

<div class="post-metadata">

**Author:** ![tominal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tominal/32/73018_2.png) [@tominal](https://community.hubspot.com/u/tominal)\
**Post date:** [January 7, 2021, 9:01pm UTC](https://community.hubspot.com/t/workflow-extensions-api-500-server-error-internal-server-error/29792/5 "2021-01-07T21:01:00Z")

</div>

Hey Bragg, have you tried the HubSpot developers slack channel? Sometimes it’s easier to reply there.

---

<div class="post-metadata">

**Author:** ![ABania](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abania/32/75439_2.png) [@ABania](https://community.hubspot.com/u/ABania)\
**Post date:** [August 2, 2021, 5:30am UTC](https://community.hubspot.com/t/workflow-extensions-api-500-server-error-internal-server-error/29792/6 "2021-08-02T05:30:44Z")

</div>

@Bragg , Can you share the solution? I am facing same issue.
