# API 422 error

**URL:** <https://community.glideapps.com/t/api-422-error/78490>\
**Category:** Ask for Help\
**Tags:** api\
**Created:** [December 10, 2024, 4:04am UTC](https://community.glideapps.com/t/api-422-error/78490 "2024-12-10T04:04:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [December 10, 2024, 4:04am UTC](https://community.glideapps.com/t/api-422-error/78490/1 "2024-12-10T04:04:56Z")

</div>

I’m using this API endpoint:

> **[Organization Enrichment](https://docs.apollo.io/reference/organization-enrichment)**
>
> Use the Oganization Enrichment endpoint to enrich data for 1 company. To enrich data for up to 10 companies with a single API call, use the Bulk Organization Enrichment endpoint instead. Enriched data potentially includes industry information,...

Here is the API call in Glide:

 ![Screenshot 2024-12-10 at 15.03.17](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/9/a92c1d1ee4b968b49e9a5811b4dd5f5c9bb72be7.png)

I really want to use a column value for the domain param, but hard coding a domain or using column value both don’t work.

I get a 422 error and no response body.

The API provider says there is nothing at their end indicating a problem with their API or my usage limits (I’ve only called it twice).

And it works from their API docs site:

 ![Screenshot 2024-12-10 at 14.12.51](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/2/6206a43ca93d31017089b7fc5c047d033a30db96.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 10, 2024, 4:32am UTC](https://community.glideapps.com/t/api-422-error/78490/2 "2024-12-10T04:32:21Z")

</div>

You are passing the `x-api-key` as a query parameter. According to the example shown from their website, it should be passed in the HTTP header.

By the way, your key has been exposed. You should change it.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [December 10, 2024, 5:05am UTC](https://community.glideapps.com/t/api-422-error/78490/3 "2024-12-10T05:05:39Z")

</div>

ah thanks, easy one!

Yeah that key is just one I created to test. Appreciate it.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [December 17, 2024, 5:06am UTC](https://community.glideapps.com/t/api-422-error/78490/4 "2024-12-17T05:06:02Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
