# How to pass x-api-key to Appsync api

**URL:** <https://community.apollographql.com/t/how-to-pass-x-api-key-to-appsync-api/6865>\
**Category:** Other Apollo Topics\
**Created:** [October 20, 2023, 7:20am UTC](https://community.apollographql.com/t/how-to-pass-x-api-key-to-appsync-api/6865 "2023-10-20T07:20:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haisrig](https://avatars.discourse-cdn.com/v4/letter/h/0ea827/32.png) [@haisrig](https://community.apollographql.com/u/haisrig)\
**Post date:** [October 20, 2023, 7:20am UTC](https://community.apollographql.com/t/how-to-pass-x-api-key-to-appsync-api/6865/1 "2023-10-20T07:20:45Z")

</div>

Hi,

I have a Supergraph successfully running with two apollo subgraphs.  
Now i’m trying to add my Appsync API as a subgraph. I have done the required changes in my appsync graphql schema and published to supergraph. I can see the schema in supergraph, but when i try to perform operation i’m getting the error “ **You are not authorized to make this call** ”. I’m getting this error as i’m not passing the x-api-key to appsync API.

Can you please help me with how to pass the x-api-key header in this scenario. I tried adding the header while performing the operation from supergraph, but no luck.

Thanks,  
Srikanth.

---

<div class="post-metadata">

**Author:** ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)\
**Post date:** [February 6, 2025, 8:48pm UTC](https://community.apollographql.com/t/how-to-pass-x-api-key-to-appsync-api/6865/2 "2025-02-06T20:48:13Z")

</div>

Archived on February 6, 2025, 8:48pm UTC


