# How to add a parameter to the the base endpoint?

**URL:** <https://community.parabola.io/t/how-to-add-a-parameter-to-the-the-base-endpoint/2704>\
**Category:** Ask a question\
**Created:** [March 30, 2023, 10:33am UTC](https://community.parabola.io/t/how-to-add-a-parameter-to-the-the-base-endpoint/2704 "2023-03-30T10:33:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bruno](https://community.parabola.io/u/Bruno)\
**Post date:** [March 30, 2023, 10:33am UTC](https://community.parabola.io/t/how-to-add-a-parameter-to-the-the-base-endpoint/2704/1 "2023-03-30T10:33:32Z")

</div>

Hi there,

I have a rest API that I want to use but the parameter needs to be added to the base url (before the ?).

It’s a PATCH request type and should be something like this:  
[https://abc.com/rest/object/MY\_VARIABLE?api\_key=YYY](https://abc.com/rest/object/MY_VARIABLE?api_key=YYY)

I know how to add the variables like api\_key and for the request body, but the same principle doesn’t seem to work for the base endpoint.

Is anyone facing the same issue or is just me missing something?

---

<div class="post-metadata">

**Author:** ![Ayana\_Usui](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/ayana_usui/32/1985_2.png) [@Ayana\_Usui](https://community.parabola.io/u/Ayana_Usui)\
**Post date:** [March 30, 2023, 4:22pm UTC](https://community.parabola.io/t/how-to-add-a-parameter-to-the-the-base-endpoint/2704/2 "2023-03-30T16:22:52Z")

</div>

Hey @Bruno, Welcome to Parabola’s community!

Is the API endpoint you’re trying to connect to an expiring access token auth or OAuth2.0? If so, you should be able to [set those up as an auth](https://parabola.io/integration/api#using-oauth-2-0-in-parabola) instead of inputting the parameters in the URL directly! If you aren’t sure which type of auth method your endpoint is, feel free to share with us the API Docs and we’ll be happy to take a look. You can email it to [help@parabola.io](mailto:help@parabola.io) if you’d like.

If the variable needs to be fed in from another source (ex Google Sheets), you’ll want to use an [Enrich with API step](https://parabola.io/integration/api#enrich-with-an-api). This step currently only processes requests as GET and POST. If those methods work, in the step settings, the `Variable Column` name will be inputted inside curly brackets `{}` as such into the url:  
[https://abc.com/rest/object/](https://abc.com/rest/object/){Variable Column}?api\_key=YYY

Let us know if you have any other questions!  
Ayana

---

<div class="post-metadata">

**Author:** ![Bruno](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bruno](https://community.parabola.io/u/Bruno)\
**Post date:** [March 31, 2023, 6:46am UTC](https://community.parabola.io/t/how-to-add-a-parameter-to-the-the-base-endpoint/2704/3 "2023-03-31T06:46:16Z")

</div>

Thanks @Ayana_Usui for your quick reply.

The API endpoint I am trying to connect to is using username and password authentication. “Enrich with API” is not a solution because as you said, it supports only GET and POST requests and I am dealing with a PATCH.

---

<div class="post-metadata">

**Author:** ![Ayana\_Usui](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/ayana_usui/32/1985_2.png) [@Ayana\_Usui](https://community.parabola.io/u/Ayana_Usui)\
**Post date:** [March 31, 2023, 10:03pm UTC](https://community.parabola.io/t/how-to-add-a-parameter-to-the-the-base-endpoint/2704/4 "2023-03-31T22:03:48Z")

</div>

Would you mind sharing with us the endpoint you’re hoping to connect to so we can take a further look? If you’d prefer, feel free to email us those docs at [help@parabola.io](mailto:help@parabola.io)

Thanks!  
Ayana
