# api security issue

**URL:** <https://community.shopify.dev/t/api-security-issue/14688>\
**Category:** GraphQL Admin API Troubleshooting\
**Tags:** general-gql-troubles\
**Created:** [May 5, 2025, 7:36am UTC](https://community.shopify.dev/t/api-security-issue/14688 "2025-05-05T07:36:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_Thakkar](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sachin\_Thakkar](https://community.shopify.dev/u/Sachin_Thakkar)\
**Post date:** [May 5, 2025, 7:36am UTC](https://community.shopify.dev/t/api-security-issue/14688/1 "2025-05-05T07:36:03Z")

</div>

i have devloped shopify app in which shopid and subscription plan is going to backend { nodejs } , how to secure that api means how my backend is going to known that these api request is coming from shopify only not by any other third party .

---

<div class="post-metadata">

**Author:** ![Dylan](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/dylan/32/90_2.png) [@Dylan](https://community.shopify.dev/u/Dylan)\
**Post date:** [May 5, 2025, 2:36pm UTC](https://community.shopify.dev/t/api-security-issue/14688/2 "2025-05-05T14:36:05Z")

</div>

You can use the Session Tokens provided through the Shopify AppBridge to authenticate that the API request is through an authenticated and valid Shopify Admin session.

> **[About session tokens](https://shopify.dev/docs/apps/build/authentication-authorization/session-tokens)**
>
> Learn about session tokens and how they fit into the authentication flow for an embedded Shopify app.

Your app’s API endpoints should be verifying this session token before performing any logic.
