# API for gift subscription to any user

**URL:** <https://discuss.dev.twitch.com/t/api-for-gift-subscription-to-any-user/33013>\
**Category:** API\
**Created:** [August 9, 2021, 6:32am UTC](https://discuss.dev.twitch.com/t/api-for-gift-subscription-to-any-user/33013 "2021-08-09T06:32:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Payal\_Vasyani](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/payal_vasyani/32/11272_2.png) [@Payal\_Vasyani](https://discuss.dev.twitch.com/u/Payal_Vasyani)\
**Post date:** [August 9, 2021, 6:32am UTC](https://discuss.dev.twitch.com/t/api-for-gift-subscription-to-any-user/33013/1 "2021-08-09T06:32:42Z")

</div>

I want to gift a subscription to twitch programmatically. I want to do it with angular.

There will be a button named “Get gift” in my angular app, on the click of that button the user should get the gift of a twitch subscription.

I have a twitch channel URL for which users should get a subscription gift. Also, I have an admin twitch account through which users will receive a twitch subscription gift. This means the admin will gift a user a twitch subscription.

But I want all the above flow with a single click of a button. This means the user should receive a subscription gift when he clicks on the “Get gift” button.

So, is there any API or SDK in angular through which subscription can be gifted directly?

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [August 9, 2021, 7:53am UTC](https://discuss.dev.twitch.com/t/api-for-gift-subscription-to-any-user/33013/2 "2021-08-09T07:53:36Z")

</div>

It is not possible to subscribe, or gift subscriptions, through the API. It can only be done by an actual user on the Twitch site/app themselves.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [September 8, 2021, 7:54am UTC](https://discuss.dev.twitch.com/t/api-for-gift-subscription-to-any-user/33013/3 "2021-09-08T07:54:13Z")

</div>

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