# My API Question

**URL:** <https://connective.celigo.com/t/my-api-question/3783>\
**Category:** API Management\
**Tags:** myapi\
**Created:** [March 12, 2025, 5:48pm UTC](https://connective.celigo.com/t/my-api-question/3783 "2025-03-12T17:48:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [March 12, 2025, 5:48pm UTC](https://connective.celigo.com/t/my-api-question/3783/1 "2025-03-12T17:48:05Z")

</div>

What are the options for altering the request URL in My API dependent on the endpoint?

For example, I would love to be able to do the following, but not sure if its possible:

Base URL:  
[https://api.integrator.io/v1/apis/123ABC/request](https://api.integrator.io/v1/apis/123ABC/request)

Can I do this?  
[https://api.integrator.io/v1/apis/123ABC/request/health](https://api.integrator.io/v1/apis/123ABC/request/health)  
[https://api.integrator.io/v1/apis/123ABC/request/invoices](https://api.integrator.io/v1/apis/123ABC/request/invoices)  
[https://api.integrator.io/v1/apis/123ABC/request/payables](https://api.integrator.io/v1/apis/123ABC/request/payables)  
[https://api.integrator.io/v1/apis/123ABC/request/cashreceipts](https://api.integrator.io/v1/apis/123ABC/request/cashreceipts)

I don't believe I can do this since the base URL cannot be altered, but wanted to make sure.

---

<div class="post-metadata">

**Author:** ![tonycurcio](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tonycurcio/32/8202_2.png) [@tonycurcio](https://connective.celigo.com/u/tonycurcio)\
**Post date:** [March 12, 2025, 6:04pm UTC](https://connective.celigo.com/t/my-api-question/3783/2 "2025-03-12T18:04:19Z")

</div>

Hi @daveguderian .... the options you have are:

- **add Celigo API Management** : that would allow you full control over the endpoints as well as extend the set of authentication types and governance policies

- **upcoming API Builder** : covered in our [March release notes](https://docs.celigo.com/hc/en-us/articles/34159688165403-Celigo-platform-2025-3-1-release-notes) you will have control over the endpoint naming (it works with the base URL differently). The full set of doc for that will be coming out in the next day or so and then it will be in product shortly thereafter.

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [March 12, 2025, 6:58pm UTC](https://connective.celigo.com/t/my-api-question/3783/3 "2025-03-12T18:58:58Z")

</div>

Perfect! Can't wait for the upcoming March release!

Thanks @tonycurcio

---

<div class="post-metadata">

**Author:** ![kaustavroy](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kaustavroy/32/6640_2.png) [@kaustavroy](https://connective.celigo.com/u/kaustavroy)\
**Post date:** [March 18, 2025, 6:40am UTC](https://connective.celigo.com/t/my-api-question/3783/4 "2025-03-18T06:40:46Z")

</div>

Hi @daveguderian - the low code API builder is live now. It is accessible by account owner and admins with developer mode option enabled. Also, here's the doc [link](https://docs.celigo.com/hc/en-us/articles/33739111045787-Configure-an-API-request-using-API-builder#define-your-api-request-3) which talks about configuring the relative URI for the API.

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [March 19, 2025, 1:40pm UTC](https://connective.celigo.com/t/my-api-question/3783/5 "2025-03-19T13:40:17Z")

</div>

Thank you so much Kaustav! I have built several calls already and am finding the new functionality intuitive and easy to use.

One question I did have was around error handling. Lets say for a GET request where a couple of identifiers are required in the call (lets say zip code and account number).

What would be the best way to handle erroring if the GET request didnt contain one of these fields? For example maybe I sent the account number but left the zip code blank in the GET call. Can I return a custom error message like "Zip code is a required field"? Would I have to build branches for each possible error, or could I configure the listener to check for these data points before sending through the rest of the flow?

Thanks again and great work on this!

---

<div class="post-metadata">

**Author:** ![kathyanaqueeman](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kathyanaqueeman/32/9122_2.png) [@kathyanaqueeman](https://connective.celigo.com/u/kathyanaqueeman)\
**Post date:** [March 19, 2025, 2:23pm UTC](https://connective.celigo.com/t/my-api-question/3783/6 "2025-03-19T14:23:42Z")

</div>

Hi Dave,

You can [return custom errors](https://docs.celigo.com/hc/en-us/articles/33739081260443-Error-handling-in-API-builder#create-custom-error-handling-2) in API builder. I'm not sure if you can configure the listener to check for those data points, but I'm sure @kaustavroy can chime in here. Is there a reason you wouldn't want to build a response picker branch for the error?

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [March 19, 2025, 2:38pm UTC](https://connective.celigo.com/t/my-api-question/3783/7 "2025-03-19T14:38:06Z")

</div>

Hi Kathyana-

I will have a response picker in the flow, but wanted a quicker way to return an error if basic information wasn't submitted in the original request (i.e. zip code was missing).

Does that make sense?

---

<div class="post-metadata">

**Author:** ![kathyanaqueeman](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kathyanaqueeman/32/9122_2.png) [@kathyanaqueeman](https://connective.celigo.com/u/kathyanaqueeman)\
**Post date:** [March 19, 2025, 3:01pm UTC](https://connective.celigo.com/t/my-api-question/3783/8 "2025-03-19T15:01:58Z")

</div>

Hi Dave,

That makes sense! Unfortunately, I don't have a clear answer for you, but I'm sure Kaustav can clarify. Some errors, such as `400 (Bad Request)`, `401 (Unauthorized)`, `404 (Not Found)`, `413 (Payload Too Large)`, and `415 (Unsupported Media Type)`, are returned to the API consumer even before the API starts running. I'm unsure if any of these would be returned for missing information.

---

<div class="post-metadata">

**Author:** ![kathyanaqueeman](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kathyanaqueeman/32/9122_2.png) [@kathyanaqueeman](https://connective.celigo.com/u/kathyanaqueeman)\
**Post date:** [March 19, 2025, 3:15pm UTC](https://connective.celigo.com/t/my-api-question/3783/9 "2025-03-19T15:15:01Z")

</div>

@daveguderian We do have a list of the [common error codes](https://docs.celigo.com/hc/en-us/articles/33739081260443-Error-handling-in-API-builder#common-error-codes-5) and none include missing information, but this is a scenario I'm not sure about. I'm sure Kaustav will be able to help!

---

<div class="post-metadata">

**Author:** ![kaustavroy](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kaustavroy/32/6640_2.png) [@kaustavroy](https://connective.celigo.com/u/kaustavroy)\
**Post date:** [March 19, 2025, 3:26pm UTC](https://connective.celigo.com/t/my-api-question/3783/10 "2025-03-19T15:26:14Z")

</div>

Hi Dave,

To validate the incoming request you can add a custom script in the input filter of the first downstream step, as shown below. Ideally it's best to add the validation at the Transformation step in the API request node, but that's not supported yet, and is planned for an upcoming release.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/8/827db9f1b7974001215223846d6f62b2cd92d952.jpeg)

This is a sample API I have used to test this scenario:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/9/97053582d6a81bbb85bb1a3331a0e896647def98.png)

Here's the API request configuration, which has 3 query params, out of which there's validation added for itemid and status in the input filter step (mentioned above).

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/1/1176b221a464e66266f338e0e51e13c2e96e62ff.png)

And, in the error response node, you can configure the status as 400 - Bad Request, or any other code of your choice. You may also customize the error response body if needed.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/c/c53426a3339edfd4a2707f44cd275120dd17ce29.png)

When I don't pass the query param in the API request, I get the error

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/9/9e7f63fee0c0131783439b99d8237653c101ba64.png)

and when I add the query param, it is successful

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/4/4d14b95ca0aab257cfd5fb20127d58ef7370671d.png)

Hope this helps!

Thanks,  
Kaustav

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [March 19, 2025, 5:47pm UTC](https://connective.celigo.com/t/my-api-question/3783/11 "2025-03-19T17:47:33Z")

</div>

Thanks @kaustavroy. This is very helpful.

Is there an ETA on when this will be available in the transformation layer that you mentioned?

---

<div class="post-metadata">

**Author:** ![kaustavroy](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kaustavroy/32/6640_2.png) [@kaustavroy](https://connective.celigo.com/u/kaustavroy)\
**Post date:** [March 20, 2025, 11:12am UTC](https://connective.celigo.com/t/my-api-question/3783/12 "2025-03-20T11:12:14Z")

</div>

Thanks @daveguderian. It will be available soon but the release is not confirmed yet. We'll let you know as soon as it's confirmed.

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [March 21, 2025, 1:33pm UTC](https://connective.celigo.com/t/my-api-question/3783/13 "2025-03-21T13:33:31Z")

</div>

Sounds good! Thanks @kaustavroy & @tonycurcio!

On a sidenote, I'll be using response code 418 for all failures moving foreward! 🤣

 ![The image shows a dropdown menu for configuring an API response, listing various HTTP status codes including "418 - I'm a Teapot (RFC 2324)." (Captioned by AI)](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/c/c5d5bcdbecdebadf8f6e35135fa6ca5e8686a052.png)
