# Issue in API connector GET Request - Dynamic Variables

**URL:** <https://community.feathery.io/t/issue-in-api-connector-get-request-dynamic-variables/1015>\
**Category:** Support\
**Created:** [August 28, 2024, 9:28am UTC](https://community.feathery.io/t/issue-in-api-connector-get-request-dynamic-variables/1015 "2024-08-28T09:28:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sricharan](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@Sricharan](https://community.feathery.io/u/Sricharan)\
**Post date:** [August 28, 2024, 9:28am UTC](https://community.feathery.io/t/issue-in-api-connector-get-request-dynamic-variables/1015/1 "2024-08-28T09:28:38Z")

</div>

![Screenshot 2024-08-28 at 2.49.24 PM](https://canada1.discourse-cdn.com/flex030/uploads/feathery/original/1X/afc1e9ebbcfaffafc454fdada5703b44baa99391.png)

I have screenshot of API connector of GET request to fetch hubspot tickets.  
I need to dynamically fetch the tickets using the {{feathery\_user\_id}} user id or any other input value. And in the Rule JS i’m using the code on form step loaded.

```auto
try{
    response = await feathery.http.get(`https://api.hubapi.com/crm/v3/objects/tickets/${ticketId}?properties=hubspot_owner_id%2Ccontent%2Chs_pipeline%2Chs_pipeline_stage&associations=email%2Cnotes%2Ctasks`, {}, {
      Authorization: 'Bearer ****************************'
    });
  } catch(e){
   console.log(e, 'error'); 
  }

```

For some reason, on this POST request [https://api-static-2.feathery.io/api/custom\_request/](https://api-static-2.feathery.io/api/custom_request/) i’m always getting 404 and error response {  
“message”: “Not found.”,  
“code”: “default-error”  
}

Is there anything wrong on the way dynamic variables used. If i hardcode the values, both API connector and feathery.http.get request is matching, then it’s working.

Please help me on this.

---

<div class="post-metadata">

**Author:** ![eri](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@eri](https://community.feathery.io/u/eri)\
**Post date:** [August 28, 2024, 11:41pm UTC](https://community.feathery.io/t/issue-in-api-connector-get-request-dynamic-variables/1015/2 "2024-08-28T23:41:23Z")

</div>

As long as the variable you are using is properly set up (it exists, either form field or hidden field), then your API connector should be good. You can test a response in the API connector pop up.

You can then simply utilize the one liner code here (#4 - [Connect to API Action | External Docs](https://docs.feathery.io/platform/build-forms/logic/advanced/visual-rule-builder/connect-to-api-action) ) to do the API call.
